public class ResourceType extends Object implements Localizable
Constructor and Description |
---|
ResourceType() |
Modifier and Type | Method and Description |
---|---|
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
|
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 permissionpublic 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()
Copyright © 2020 City of Paris. All rights reserved.