|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.accesscontrol.AbstractAccessController<String>
com.silverpeas.accesscontrol.ComponentAccessController
@Named public class ComponentAccessController
It controls the access of a user to a given Silverpeas component. A Silverpeas component can be either a Silverpeas application instance (like a KMelia instance for example) or a user personal tool or an administrative tool.
Constructor Summary | |
---|---|
ComponentAccessController()
|
Method Summary | |
---|---|
protected void |
fillUserRoles(Set<SilverpeasRole> userRoles,
AccessControlContext context,
String userId,
String componentId)
This method must fill user roles into the given container by taking in account the other parameters. |
boolean |
isCoWritingEnabled(String componentId)
Indicates that the rights are set on node as well as the component. |
boolean |
isFileSharingEnabled(String componentId)
Indicates if file sharing is enabled on the component instance represented by the given identifier. |
boolean |
isPublicationSharingEnabled(String componentId)
Indicates if publication sharing is enabled on the component instance represented by the given identifier. |
boolean |
isRightOnTopicsEnabled(String componentId)
Indicates that the rights are set on node as well as the component. |
boolean |
isUserAuthorized(Set<SilverpeasRole> componentUserRoles)
|
boolean |
isUserAuthorized(String userId,
String componentId,
AccessControlContext context)
Checks if the specified user may access the specified object. |
protected void |
setOrganizationController(OrganisationController controller)
For tests only. |
Methods inherited from class com.silverpeas.accesscontrol.AbstractAccessController |
---|
getUserRoles, isUserAuthorized |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentAccessController()
Method Detail |
---|
protected void setOrganizationController(OrganisationController controller)
controller
- the controller to set for tests.public boolean isRightOnTopicsEnabled(String componentId)
componentId
-
public boolean isCoWritingEnabled(String componentId)
componentId
-
public boolean isFileSharingEnabled(String componentId)
componentId
- the identifier of the component instance.
public boolean isPublicationSharingEnabled(String componentId)
componentId
- the identifier of the component instance.
public boolean isUserAuthorized(String userId, String componentId, AccessControlContext context)
AccessController
userId
- the unique identifier of the user.componentId
- the object to be accessed.context
- the context in which the object is accessed.
public boolean isUserAuthorized(Set<SilverpeasRole> componentUserRoles)
protected void fillUserRoles(Set<SilverpeasRole> userRoles, AccessControlContext context, String userId, String componentId)
AbstractAccessController
fillUserRoles
in class AbstractAccessController<String>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |