com.silverpeas.accesscontrol
Class PublicationAccessController
java.lang.Object
com.silverpeas.accesscontrol.AbstractAccessController<PublicationPK>
com.silverpeas.accesscontrol.PublicationAccessController
- All Implemented Interfaces:
- AccessController<PublicationPK>
@Named
public class PublicationAccessController
- extends AbstractAccessController<PublicationPK>
Check the access to a publication for a user.
- Author:
- neysseric
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PUBLICATION_DETAIL_KEY
public static final String PUBLICATION_DETAIL_KEY
- See Also:
- Constant Field Values
PublicationAccessController
public PublicationAccessController()
isUserAuthorized
public boolean isUserAuthorized(String userId,
PublicationPK pubPk,
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.pubPk
- the object to be accessed.context
- the context in which the object is accessed.
- Returns:
- true if access is granted - false otherwise.
fillUserRoles
protected void fillUserRoles(Set<SilverpeasRole> userRoles,
AccessControlContext context,
String userId,
PublicationPK publicationPK)
- Description copied from class:
AbstractAccessController
- This method must fill user roles into the given container by taking in account the other
parameters.
- Overrides:
fillUserRoles
in class AbstractAccessController<PublicationPK>
getPublicationBm
protected PublicationBm getPublicationBm()
throws Exception
- Throws:
Exception
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.
Copyright © 2016 Silverpeas. All Rights Reserved.