org.silverpeas.accesscontrol
Class SimpleDocumentAccessController

java.lang.Object
  extended by com.silverpeas.accesscontrol.AbstractAccessController<SimpleDocument>
      extended by org.silverpeas.accesscontrol.SimpleDocumentAccessController
All Implemented Interfaces:
AccessController<SimpleDocument>

@Named(value="simpleDocumentAccessController")
public class SimpleDocumentAccessController
extends AbstractAccessController<SimpleDocument>

Author:
ehugonnet

Constructor Summary
SimpleDocumentAccessController()
           
 
Method Summary
protected  ComponentAccessController getComponentAccessController()
          Gets a controller of access on the components of a publication.
protected  NodeAccessController getNodeAccessController()
          Gets a controller of access on the nodes of a publication.
protected  PublicationAccessController getPublicationAccessController()
          Gets a controller of access on publication.
 boolean isUserAuthorized(String userId, SimpleDocument object, AccessControlContext context)
          Checks if the specified user may access the specified object.
 
Methods inherited from class com.silverpeas.accesscontrol.AbstractAccessController
fillUserRoles, getUserRoles, isUserAuthorized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDocumentAccessController

public SimpleDocumentAccessController()
Method Detail

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.

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.

getComponentAccessController

protected ComponentAccessController getComponentAccessController()
Gets a controller of access on the components of a publication.

Returns:
a ComponentAccessController instance.

getNodeAccessController

protected NodeAccessController getNodeAccessController()
Gets a controller of access on the nodes of a publication.

Returns:
a NodeAccessController instance.

getPublicationAccessController

protected PublicationAccessController getPublicationAccessController()
Gets a controller of access on publication.

Returns:
a PublicationAccessController instance.


Copyright © 2016 Silverpeas. All Rights Reserved.