Class SimpleDocumentAccessController

    • Method Detail

      • isUserAuthorized

        public boolean isUserAuthorized​(String userId,
                                        ResourceIdentifier id)
        Description copied from interface: AccessController
        Checks if the specified user may access the object with the specified identifier.
        Specified by:
        isUserAuthorized in interface AccessController<SimpleDocument>
        Parameters:
        userId - the unique identifier of the user.
        id - the unique identifier of the object to be accessed in Silverpeas.
        Returns:
        true if access is granted - false otherwise.
      • isUserAuthorized

        public boolean isUserAuthorized​(String userId,
                                        SimpleDocument object,
                                        AccessControlContext context)
        Description copied from interface: AccessController
        Checks if the specified user may access the specified object.
        Specified by:
        isUserAuthorized in interface AccessController<SimpleDocument>
        Parameters:
        userId - the unique identifier of the user.
        object - the object to be accessed.
        context - the context in which the object is accessed.
        Returns:
        true if access is granted - false otherwise.