Class SilverpeasComponentInstanceRoleProvider
- java.lang.Object
-
- org.silverpeas.core.webapi.admin.component.SilverpeasComponentInstanceRoleProvider
-
public class SilverpeasComponentInstanceRoleProvider extends Object
This class provides some methods to get easily user roles on all silverpeas component instances which implementation is one ofSilverpeasComponentInstance
).
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SilverpeasRole
getHighestOfCurrentUserOn(String componentInstanceId)
Gets the highest role on the component represented by the given identifier the current user has.
The result is put into request cache in order to improve performances in case of multiple access from a single HTTP request.
-
-
-
Method Detail
-
getHighestOfCurrentUserOn
public static SilverpeasRole getHighestOfCurrentUserOn(String componentInstanceId)
Gets the highest role on the component represented by the given identifier the current user has.
The result is put into request cache in order to improve performances in case of multiple access from a single HTTP request.- Parameters:
componentInstanceId
- a component instance identifier.- Returns:
- a
SilverpeasComponentInstanceRoleProvider
instance or null if none.
-
-