Class ResourceTypeManager
java.lang.Object
fr.paris.lutece.portal.service.rbac.ResourceTypeManager
Manager of the ResourceType. Responsible for (un)registering them.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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>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 voidRegisters a new resource type
-
Method Details
-
registerResourceType
Registers a new resource type- Parameters:
rt- the resource type to register
-
getResourceTypeList
Returns all registered resource types- Returns:
- A collection containing all registered resource types
-
getResourceType
Get a particular resource type- Parameters:
strId- Identifier of the seeked resource type- Returns:
- the selected resource type
-
registerList
Registers a collection of resource type- Parameters:
resourceTypeList- The resource type list
-
registerList
Registers a collection of resource type- Parameters:
listResourcesType- The resource type liststrPluginName- The plugin name
-
getPermissionsList
Gets a localized list of permission for a given resource type- Parameters:
strResourceType- The resource typelocale- The Locale- Returns:
- A list of permission
-