Interface ComponentAccessControl

    • Method Detail

      • isUserAuthorized

        default 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<String>
        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.
      • isRightOnTopicsEnabled

        boolean isRightOnTopicsEnabled​(String instanceId)
        Indicates is the rights are set on node as well as the component.
        Parameters:
        instanceId - the identifier of the component instance.
        Returns:
        true if rights are enabled at node level, false otherwise.