Interface SpaceAccessControl

    • 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.
      • hasUserSpaceManagementAuthorization

        default boolean hasUserSpaceManagementAuthorization​(String userId,
                                                            String spaceId)
        Checks if the specified user may manage the specified space represented by its identifier.
        Parameters:
        userId - the unique identifier of the user.
        spaceId - the full identifier of a space.
        Returns:
        true if space management is granted, false otherwise.
      • hasUserSpaceManagementAuthorization

        boolean hasUserSpaceManagementAuthorization​(String userId,
                                                    String spaceId,
                                                    AccessControlContext context)
        Checks if the specified user may manage the specified space represented by its identifier.
        Parameters:
        userId - the unique identifier of the user.
        spaceId - the full identifier of a space.
        context - the context in which the space is accessed.
        Returns:
        true if space management is granted, false otherwise.