Class ContentWatchesResource
java.lang.Object
com.atlassian.confluence.plugins.rest.jackson2.resources.ContentWatchesResource
@Path("/content/{contentId}/watches")
@Produces("application/json;charset=UTF-8")
public class ContentWatchesResource
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionContentWatchesResource
(NotificationManager notificationManager, ContentEntityManager contentEntityManager) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
addContentWatch
(long contentId) javax.ws.rs.core.Response
getContentWatches
(long contentId) getResult
(List<Notification> notifications) javax.ws.rs.core.Response
removeContentWatch
(long contentId)
-
Constructor Details
-
ContentWatchesResource
@Inject public ContentWatchesResource(NotificationManager notificationManager, @Named("contentEntityManager") ContentEntityManager contentEntityManager)
-
-
Method Details
-
getContentWatches
@GET @Produces("application/json") public javax.ws.rs.core.Response getContentWatches(@PathParam("contentId") long contentId) -
getResult
-
addContentWatch
@POST @Produces("application/json") public javax.ws.rs.core.Response addContentWatch(@PathParam("contentId") long contentId) -
removeContentWatch
@DELETE @Produces("application/json") public javax.ws.rs.core.Response removeContentWatch(@PathParam("contentId") long contentId)
-