Skip to content

Commit ab075f1

Browse files
authored
dotCMS#31381 deprecating stuff (dotCMS#31393)
Deprecating old stuff
1 parent 312b91e commit ab075f1

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

dotCMS/src/main/java/com/dotcms/rest/ContentResource.java

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,19 @@ public Response indexCount(@Context HttpServletRequest request,
322322
}
323323

324324

325+
/**
326+
* @Deprecated This method is deprecated and will be removed in future versions. Use {@link com.dotcms.rest.api.v1.content.ContentResource#lockContent(HttpServletRequest, HttpServletResponse, String, String)}
327+
* @param request
328+
* @param response
329+
* @param params
330+
* @return
331+
* @throws DotDataException
332+
* @throws JSONException
333+
*/
334+
@Deprecated
325335
@PUT
326336
@Path("/lock/{params:.*}")
327337
@Produces(MediaType.APPLICATION_JSON)
328-
329338
public Response lockContent(@Context HttpServletRequest request,
330339
@Context HttpServletResponse response, @PathParam("params") String params)
331340
throws DotDataException, JSONException {
@@ -394,6 +403,16 @@ public Response lockContent(@Context HttpServletRequest request,
394403
}
395404

396405

406+
/**
407+
* @Deprecated This method is deprecated and will be removed in future versions. Use {@link com.dotcms.rest.api.v1.content.ContentResource#canLockContent(HttpServletRequest, HttpServletResponse, String, String)}
408+
* @param request
409+
* @param response
410+
* @param params
411+
* @return
412+
* @throws DotDataException
413+
* @throws JSONException
414+
*/
415+
@Deprecated
397416
@PUT
398417
@Path("/canLock/{params:.*}")
399418
@Produces(MediaType.APPLICATION_JSON)
@@ -482,10 +501,19 @@ public Response canLockContent(@Context HttpServletRequest request, @Context fin
482501
}
483502
}
484503

504+
/**
505+
* @Deprecated This method is deprecated and will be removed in future versions. Use {@link com.dotcms.rest.api.v1.content.ContentResource#unlockContent(HttpServletRequest, HttpServletResponse, String, String)}
506+
* @param request
507+
* @param response
508+
* @param params
509+
* @return
510+
* @throws DotDataException
511+
* @throws JSONException
512+
*/
513+
@Deprecated
485514
@PUT
486515
@Path("/unlock/{params:.*}")
487516
@Produces(MediaType.APPLICATION_JSON)
488-
489517
public Response unlockContent(@Context HttpServletRequest request,
490518
@Context HttpServletResponse response, @PathParam("params") String params)
491519
throws DotDataException, JSONException {

0 commit comments

Comments
 (0)