Class ResourceTypeManager
- java.lang.Object
-
- fr.paris.lutece.portal.service.rbac.ResourceTypeManager
-
public final class ResourceTypeManager extends Object
Manager of the ResourceType. Responsible for (un)registering them.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReferenceListgetPermissionsList(String strResourceType, Locale locale)Gets a localized list of permission for a given resource typestatic ResourceTypegetResourceType(String strId)Get a particular resource typestatic Collection<ResourceType>getResourceTypeList()Returns all registered resource typesstatic voidregisterList(Collection<ResourceType> resourceTypeList)Registers a collection of resource typestatic voidregisterList(Collection<ResourceType> listResourcesType, String strPluginName)Registers a collection of resource typestatic voidregisterResourceType(ResourceType rt)Registers a new resource type
-
-
-
Method Detail
-
registerResourceType
public static void registerResourceType(ResourceType rt)
Registers a new resource type- Parameters:
rt- the resource type to register
-
getResourceTypeList
public static Collection<ResourceType> getResourceTypeList()
Returns all registered resource types- Returns:
- A collection containing all registered resource types
-
getResourceType
public static ResourceType getResourceType(String strId)
Get a particular resource type- Parameters:
strId- Identifier of the seeked resource type- Returns:
- the selected resource type
-
registerList
public static void registerList(Collection<ResourceType> resourceTypeList)
Registers a collection of resource type- Parameters:
resourceTypeList- The resource type list
-
registerList
public static void registerList(Collection<ResourceType> listResourcesType, String strPluginName)
Registers a collection of resource type- Parameters:
listResourcesType- The resource type liststrPluginName- The plugin name
-
getPermissionsList
public static ReferenceList getPermissionsList(String strResourceType, Locale locale)
Gets a localized list of permission for a given resource type- Parameters:
strResourceType- The resource typelocale- The Locale- Returns:
- A list of permission
-
-