public final class ResourceTypeManager extends Object
Modifier and Type | Method and Description |
---|---|
static ReferenceList |
getPermissionsList(String strResourceType,
Locale locale)
Gets a localized list of permission for a given resource type
|
static ResourceType |
getResourceType(String strId)
Get a particular resource type
|
static Collection<ResourceType> |
getResourceTypeList()
Returns all registered resource types
|
static void |
registerList(Collection<ResourceType> resourceTypeList)
Registers a collection of resource type
|
static void |
registerList(Collection<ResourceType> listResourcesType,
String strPluginName)
Registers a collection of resource type
|
static void |
registerResourceType(ResourceType rt)
Registers a new resource type
|
public static void registerResourceType(ResourceType rt)
rt
- the resource type to registerpublic static Collection<ResourceType> getResourceTypeList()
public static ResourceType getResourceType(String strId)
strId
- Identifier of the seeked resource typepublic static void registerList(Collection<ResourceType> resourceTypeList)
resourceTypeList
- The resource type listpublic static void registerList(Collection<ResourceType> listResourcesType, String strPluginName)
listResourcesType
- The resource type liststrPluginName
- The plugin namepublic static ReferenceList getPermissionsList(String strResourceType, Locale locale)
strResourceType
- The resource typelocale
- The LocaleCopyright © 2020 City of Paris. All rights reserved.