Class DocumentSharingRefusedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.ReflectiveOperationException
java.lang.IllegalAccessException
io.meeds.social.space.security.exception.SpaceSecurityRefusedException
org.exoplatform.documents.exception.DocumentSharingRefusedException
All Implemented Interfaces:
Serializable

public class DocumentSharingRefusedException extends io.meeds.social.space.security.exception.SpaceSecurityRefusedException
A change to a document's access the document's space refuses. Its message is the code naming the rule; it carries the space and the document so that the entry point which received the request logs the refusal with its channel.
See Also:
  • Field Details

    • ACCESS_MANAGEMENT_LIMITED

      public static final String ACCESS_MANAGEMENT_LIMITED
      The space limits who manages its documents' access.
      See Also:
    • KEPT_INSIDE_SHARE

      public static final String KEPT_INSIDE_SHARE
      The space keeps its documents inside: a share outside it is refused.
      See Also:
    • CHANGE_PERMISSIONS_ACTION

      public static final String CHANGE_PERMISSIONS_ACTION
      A change of the document's access list, a share included.
      See Also:
    • REST_CHANNEL

      public static final String REST_CHANNEL
      Channel of the documents REST endpoints.
      See Also:
    • MCP_CHANNEL

      public static final String MCP_CHANNEL
      Channel of the documents MCP tools.
      See Also:
  • Constructor Details

    • DocumentSharingRefusedException

      public DocumentSharingRefusedException(String messageCode, long spaceId, String documentId, String action)
  • Method Details

    • getSpaceId

      public long getSpaceId()
    • getDocumentId

      public String getDocumentId()
    • getAction

      public String getAction()
    • audit

      public void audit(String actor, String channel)
      Logs the refusal in the space security audit.
      Parameters:
      actor - the user whose request was refused
      channel - the channel the request came through