Class 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 of SilverpeasComponentInstance).
    • 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.