Class SpaceAccessController
- java.lang.Object
-
- org.silverpeas.core.security.authorization.AbstractAccessController<String>
-
- org.silverpeas.core.security.authorization.SpaceAccessController
-
- All Implemented Interfaces:
AccessController<String>
,SpaceAccessControl
@Service @Singleton public class SpaceAccessController extends AbstractAccessController<String> implements SpaceAccessControl
Check the access to a space for a user.- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isUserAuthorized(String userId, String spaceId, AccessControlContext context)
Checks if the specified user may access the specified object.-
Methods inherited from class org.silverpeas.core.security.authorization.AbstractAccessController
fillUserRoles, filterAuthorizedByUser, filterAuthorizedByUser, getUserRoles, isUserAuthorized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.security.authorization.AccessController
filterAuthorizedByUser, filterAuthorizedByUser, getUserRoles, isGroupAuthorized, isUserAuthorized, isUserAuthorized
-
Methods inherited from interface org.silverpeas.core.security.authorization.SpaceAccessControl
isUserAuthorized
-
-
-
-
Method Detail
-
isUserAuthorized
public boolean isUserAuthorized(String userId, String spaceId, AccessControlContext context)
Description copied from interface:AccessController
Checks if the specified user may access the specified object.- Specified by:
isUserAuthorized
in interfaceAccessController<String>
- Parameters:
userId
- the unique identifier of the user.spaceId
- the object to be accessed.context
- the context in which the object is accessed.- Returns:
- true if access is granted - false otherwise.
-
-