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 java.lang.Object

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


Method Summary
static ReferenceList getPermissionsList(java.lang.String strResourceType, java.util.Locale locale)
          Gets a localized list of permission for a given resource type
static ResourceType getResourceType(java.lang.String strId)
          Get a particular resource type
static java.util.Collection<ResourceType> getResourceTypeList()
          Returns all registered resource types
static void registerList(java.util.Collection<ResourceType> resourceTypeList)
          Registers a collection of resource type
static void registerList(java.util.Collection<ResourceType> listResourcesType, java.lang.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 java.util.Collection<ResourceType> getResourceTypeList()
Returns all registered resource types

Returns:
A collection containing all registered resource types

getResourceType

public static ResourceType getResourceType(java.lang.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(java.util.Collection<ResourceType> resourceTypeList)
Registers a collection of resource type

Parameters:
resourceTypeList - The resource type list

registerList

public static void registerList(java.util.Collection<ResourceType> listResourcesType,
                                java.lang.String strPluginName)
Registers a collection of resource type

Parameters:
listResourcesType - The resource type list
strPluginName - The plugin name

getPermissionsList

public static ReferenceList getPermissionsList(java.lang.String strResourceType,
                                               java.util.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 © 2012 Mairie de Paris. All Rights Reserved.