Class ContentRestrictionResource


  • public class ContentRestrictionResource
    extends Object
    • Method Detail

      • byOperation

        @PublicApi
        public Map<OperationKey,​ContentRestriction> byOperation​(ContentId id,
                                                                      String expand)

        Returns info about all restrictions by operation

        Parameters:
        id - the id of the content
        expand - a comma separated list of properties to expand on the content properties. Default value: group.
        Returns:
        a JSON representation of the restrictions group by operations
      • forOperation

        @PublicApi
        public ContentRestriction forOperation​(ContentId id,
                                               OperationKey opKey,
                                               String expand,
                                               int start,
                                               int limit)

        Returns info about all restrictions of given operation

        Parameters:
        id - the id of the content
        opKey - key of the operation
        expand - a comma separated list of properties to expand on the content properties. Default value: group.
        start - pagination start
        limit - pagination limit
        Returns:
        a JSON representation of the restrictions group by operations