Class ResourceIdService
java.lang.Object
fr.paris.lutece.portal.service.rbac.ResourceIdService
- Direct Known Subclasses:
AdminUserResourceIdService,InsertResourceIdService,PageResourceIdService,PortletResourceIdService,PortletTemplateResourceIdService,SearchResourceIdService
This class gives the methods to implement in order to allow the restitution of the ids and labels for a given resource type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the plugin associatedabstract ReferenceListgetResourceIdList(Locale locale) Provide the list of all resources (id - label)abstract StringProvide the title of a resource given its idabstract voidregister()This method should register permissions and resource typevoidsetPluginName(String strPluginName) Sets the name of the plugin associated
-
Constructor Details
-
ResourceIdService
public ResourceIdService()
-
-
Method Details
-
register
public abstract void register()This method should register permissions and resource type -
getResourceIdList
Provide the list of all resources (id - label)- Parameters:
locale- The locale- Returns:
- the list of all resources available for restricted access
-
getTitle
Provide the title of a resource given its id- Parameters:
locale- The localestrId- the id of the resource- Returns:
- the title the corresponding label
-
setPluginName
Sets the name of the plugin associated- Parameters:
strPluginName- the plugin name
-
getPluginName
Gets the name of the plugin associated- Returns:
- the plugin name
-