Class SimpleDocumentAccessController
- java.lang.Object
-
- org.silverpeas.core.security.authorization.AbstractAccessController<SimpleDocument>
-
- org.silverpeas.core.security.authorization.SimpleDocumentAccessController
-
- All Implemented Interfaces:
AccessController<SimpleDocument>
,SimpleDocumentAccessControl
@Service @Singleton public class SimpleDocumentAccessController extends AbstractAccessController<SimpleDocument> implements SimpleDocumentAccessControl
- Author:
- ehugonnet
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isUserAuthorized(String userId, SimpleDocument object, AccessControlContext context)
Checks if the specified user may access the specified object.boolean
isUserAuthorized(String userId, ResourceIdentifier id)
Checks if the specified user may access the object with the specified identifier.-
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
-
-
-
-
Method Detail
-
isUserAuthorized
public 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<SimpleDocument>
- 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.
-
isUserAuthorized
public boolean isUserAuthorized(String userId, SimpleDocument object, AccessControlContext context)
Description copied from interface:AccessController
Checks if the specified user may access the specified object.- Specified by:
isUserAuthorized
in interfaceAccessController<SimpleDocument>
- Parameters:
userId
- the unique identifier of the user.object
- the object to be accessed.context
- the context in which the object is accessed.- Returns:
- true if access is granted - false otherwise.
-
-