Class ContentRestrictionResource

java.lang.Object
com.atlassian.confluence.plugins.restapi.resources.ContentRestrictionResource

@Consumes("application/json") @Produces("application/json") @Path("/content/{id}/restriction") public class ContentRestrictionResource extends Object
  • Constructor Details

  • Method Details

    • relevantViewRestrictions

      @PublicApi @GET @Path("relevantViewRestrictions") public RelevantViewRestrictions relevantViewRestrictions(@PathParam("id") ContentId id, @QueryParam("expand") @DefaultValue("relevantViewRestrictions") String expand, @QueryParam("start") int start, @QueryParam("limit") @DefaultValue("50") int limit)
    • byOperation

      @PublicApi @GET @Path("byOperation") public Map<OperationKey,ContentRestriction> byOperation(@PathParam("id") ContentId id, @QueryParam("expand") @DefaultValue("update.restrictions.user,read.restrictions.group,read.restrictions.user,update.restrictions.group") String expand)
    • forOperation

      @PublicApi @GET @Path("byOperation/{operationKey}") public ContentRestriction forOperation(@PathParam("id") ContentId id, @PathParam("operationKey") OperationKey opKey, @QueryParam("expand") @DefaultValue("restrictions.user,restrictions.group") String expand, @QueryParam("start") int start, @QueryParam("limit") @DefaultValue("100") int limit)
    • updateRestrictions

      @PublicApi @PUT public PageResponse<ContentRestriction> updateRestrictions(@PathParam("id") ContentId contentId, @QueryParam("expand") @DefaultValue("restrictions.user,restrictions.group") String expand, List<ContentRestriction> contentRestrictions)