Class ResourceType
java.lang.Object
fr.paris.lutece.portal.service.rbac.ResourceType
- All Implemented Interfaces:
Localizable
This class provides the methods for resource types. It gives the key and label of the resource type It allows to define and access to the permissions
available. It links with the resourceIdService class that retrieves specific data to be managed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPermission(String strPermissionId) Get a particular permissionReturns all registered permissionsReturns the plugin nameReturns an instance of the resourceIdService classReturns the name of the resourceIdService classReturns the resource type KeyReturns the resource type labelvoidregisterPermission(Permission permission) Registers a permissionvoidImplements LocalizablevoidsetPluginName(String strPluginName) Sets the plugin namevoidsetResourceIdServiceClass(String strResourceIdServiceClass) Sets the name of the resourceIdService classvoidsetResourceTypeKey(String strResourceTypeCode) Sets the resource type KeyvoidsetResourceTypeLabelKey(String strResourceTypeLabel) Sets the resource type label
-
Constructor Details
-
ResourceType
public ResourceType()
-
-
Method Details
-
setLocale
Implements Localizable- Specified by:
setLocalein interfaceLocalizable- Parameters:
locale- The current locale
-
registerPermission
Registers a permission- Parameters:
permission- the permission object to register
-
getPermissionList
Returns all registered permissions- Returns:
- A collection containing all registered permissions
-
getPermission
Get a particular permission- Parameters:
strPermissionId- Identifier of the seeked permission- Returns:
- the selected resource type
-
getResourceTypeKey
Returns the resource type Key- Returns:
- Returns the _strResourceTypeKey.
-
setResourceTypeKey
Sets the resource type Key- Parameters:
strResourceTypeCode- The _strResourceTypeKey to set.
-
getResourceTypeLabel
Returns the resource type label- Returns:
- Returns the _strResourceTypeLabel.
-
setResourceTypeLabelKey
Sets the resource type label- Parameters:
strResourceTypeLabel- The _strResourceTypeLabel to set.
-
getResourceIdServiceClass
Returns the name of the resourceIdService class- Returns:
- Returns the _strResourceIdServiceClass.
-
setResourceIdServiceClass
Sets the name of the resourceIdService class- Parameters:
strResourceIdServiceClass- The _strResourceIdServiceClass to set.
-
getResourceIdService
Returns an instance of the resourceIdService class- Returns:
- a ResourceIdService object with the plugin name initialised
-
setPluginName
Sets the plugin name- Parameters:
strPluginName- The __strPluginName to set.
-
getPluginName
Returns the plugin name- Returns:
- Returns the __strPluginName.
-