Interface SpaceAccessControl
-
- All Superinterfaces:
AccessController<String>
- All Known Implementing Classes:
SpaceAccessController
public interface SpaceAccessControl extends AccessController<String>
This interface extends access controller for a Space resource.- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static SpaceAccessControl
get()
default boolean
hasUserSpaceManagementAuthorization(String userId, String spaceId)
Checks if the specified user may manage the specified space represented by its identifier.boolean
hasUserSpaceManagementAuthorization(String userId, String spaceId, AccessControlContext context)
Checks if the specified user may manage the specified space represented by its identifier.default boolean
isUserAuthorized(String userId, ResourceIdentifier id)
Checks if the specified user may access the object with the specified identifier.-
Methods inherited from interface org.silverpeas.core.security.authorization.AccessController
filterAuthorizedByUser, filterAuthorizedByUser, getUserRoles, isGroupAuthorized, isUserAuthorized, isUserAuthorized, isUserAuthorized
-
-
-
-
Method Detail
-
get
static SpaceAccessControl get()
-
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 interfaceAccessController<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.
-
-