fr.paris.lutece.portal.service.rbac
Class ResourceTypeManager

java.lang.Object
  extended by fr.paris.lutece.portal.service.rbac.ResourceTypeManager

public final class ResourceTypeManager
extends Object

Manager of the ResourceType. Responsible for (un)registering them.


Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 list
strPluginName - 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 type
locale - The Locale
Returns:
A list of permission


Copyright © 2014 Mairie de Paris. All Rights Reserved.