Interface ComponentAccessControl
-
- All Superinterfaces:
AccessController<String>
- All Known Implementing Classes:
ComponentAccessController
public interface ComponentAccessControl extends AccessController<String>
This interface extends access controller interface for a Component resource.- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ComponentAccessControl
get()
boolean
isRightOnTopicsEnabled(String instanceId)
Indicates is the rights are set on node as well as the component.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 ComponentAccessControl 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.
-
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.
-
-