Class RBAC
java.lang.Object
fr.paris.lutece.portal.business.rbac.RBAC
- All Implemented Interfaces:
Localizable
This class is used for rbac control configuration. A role is associated to controls (given by the permission key) on resources (identified by a resource type
and a resource id). Wilcards can be used for resource ids and permission keys.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Permission KeyRetrieve the label of the permission from the permission keyintReturns the RBAC IDReturns the Resource IdRetrieve the label of the resource from the resource idReturns the Resource Type KeyRetrieve the label of the resource type from the resource type keyReturns the Role Key.voidImplements LocalizablevoidsetPermissionKey(String strPermissionKey) Sets the Permission KeyvoidsetRBACId(int nRBACId) Sets the RBAC IDvoidsetResourceId(String strResourceId) Sets the Resource IdvoidsetResourceTypeKey(String strResourceTypeKey) Sets the Resource Type KeyvoidsetRoleKey(String strRoleKey) Sets the Role Key
-
Field Details
-
WILDCARD_RESOURCES_ID
- See Also:
-
WILDCARD_PERMISSIONS_KEY
- See Also:
-
-
Constructor Details
-
RBAC
public RBAC()
-
-
Method Details
-
setLocale
Implements Localizable- Specified by:
setLocalein interfaceLocalizable- Parameters:
locale- The current locale
-
getRBACId
public int getRBACId()Returns the RBAC ID- Returns:
- The RBAC ID
-
setRBACId
public void setRBACId(int nRBACId) Sets the RBAC ID- Parameters:
nRBACId- The RBAC Id to set
-
getPermissionKey
Returns the Permission Key- Returns:
- The Permission Key
-
setPermissionKey
Sets the Permission Key- Parameters:
strPermissionKey- The Permission Key to set
-
getResourceId
Returns the Resource Id- Returns:
- The Resource Id
-
setResourceId
Sets the Resource Id- Parameters:
strResourceId- The Resource Id to set
-
getResourceTypeKey
Returns the Resource Type Key- Returns:
- The Resource Type Key.
-
setResourceTypeKey
Sets the Resource Type Key- Parameters:
strResourceTypeKey- The Resource Type Key to set.
-
getRoleKey
Returns the Role Key.- Returns:
- The Role Key.
-
setRoleKey
Sets the Role Key- Parameters:
strRoleKey- The Role Key to set.
-
getResourceTypeLabel
Retrieve the label of the resource type from the resource type key- Returns:
- the label of the resource type
-
getResourceIdLabel
Retrieve the label of the resource from the resource id- Returns:
- the label of the resource
-
getPermissionLabel
Retrieve the label of the permission from the permission key- Returns:
- the label of the permission
-