com.silverpeas.accesscontrol
Interface AccessController<T>

Type Parameters:
T - The type of object we are checking the access on.
All Known Implementing Classes:
AbstractAccessController, AccessControllerMock, AttachmentAccessController, ComponentAccessController, DocumentAccessController, NodeAccessController, PublicationAccessController, SimpleDocumentAccessController, SimpleDocumentAccessControllerMock, SpaceAccessController, SpaceAccessControllerMock, WorkspaceAccessController

public interface AccessController<T>

A controller of accesses on the Silverpeas resources by a user..

Author:
ehugonnet

Method Summary
 boolean isUserAuthorized(String userId, T object)
          Checks if the specified user may access the specified object.
 boolean isUserAuthorized(String userId, T object, AccessControlContext context)
          Checks if the specified user may access the specified object.
 

Method Detail

isUserAuthorized

boolean isUserAuthorized(String userId,
                         T object)
Checks if the specified user may access the specified object.

Parameters:
userId - the unique identifier of the user.
object - the object to be accessed.
Returns:
true if access is granted - false otherwise.

isUserAuthorized

boolean isUserAuthorized(String userId,
                         T object,
                         AccessControlContext context)
Checks if the specified user may access the specified object.

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.


Copyright © 2016 Silverpeas. All Rights Reserved.