|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.service.rbac.ResourceType
public class ResourceType
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 | |
---|---|
ResourceType()
|
Method Summary | |
---|---|
Permission |
getPermission(String strPermissionId)
Get a particular permission |
Collection<Permission> |
getPermissionList()
Returns all registered permissions |
String |
getPluginName()
Returns the plugin name |
ResourceIdService |
getResourceIdService()
Returns an instance of the resourceIdService class |
String |
getResourceIdServiceClass()
Returns the name of the resourceIdService class |
String |
getResourceTypeKey()
Returns the resource type Key |
String |
getResourceTypeLabel()
Returns the resource type label |
void |
registerPermission(Permission permission)
Registers a permission |
void |
setLocale(Locale locale)
Implements Localizable |
void |
setPluginName(String strPluginName)
Sets the plugin name |
void |
setResourceIdServiceClass(String strResourceIdServiceClass)
Sets the name of the resourceIdService class |
void |
setResourceTypeKey(String strResourceTypeCode)
Sets the resource type Key |
void |
setResourceTypeLabelKey(String strResourceTypeLabel)
Sets the resource type label |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceType()
Method Detail |
---|
public void setLocale(Locale locale)
setLocale
in interface Localizable
locale
- The current localepublic void registerPermission(Permission permission)
permission
- the permission object to registerpublic Collection<Permission> getPermissionList()
public Permission getPermission(String strPermissionId)
strPermissionId
- Identifier of the seeked permission
public String getResourceTypeKey()
public void setResourceTypeKey(String strResourceTypeCode)
strResourceTypeCode
- The _strResourceTypeKey to set.public String getResourceTypeLabel()
public void setResourceTypeLabelKey(String strResourceTypeLabel)
strResourceTypeLabel
- The _strResourceTypeLabel to set.public String getResourceIdServiceClass()
public void setResourceIdServiceClass(String strResourceIdServiceClass)
strResourceIdServiceClass
- The _strResourceIdServiceClass to set.public ResourceIdService getResourceIdService()
public void setPluginName(String strPluginName)
strPluginName
- The __strPluginName to set.public String getPluginName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |