|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.business.rbac.RBAC
public class RBAC
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 | |
---|---|
static java.lang.String |
WILDCARD_PERMISSIONS_KEY
|
static java.lang.String |
WILDCARD_RESOURCES_ID
|
Constructor Summary | |
---|---|
RBAC()
|
Method Summary | |
---|---|
java.lang.String |
getPermissionKey()
|
java.lang.String |
getPermissionLabel()
Retrieve the label of the permission from the permission key |
int |
getRBACId()
|
java.lang.String |
getResourceId()
|
java.lang.String |
getResourceIdLabel()
Retrieve the label of the resource from the resource id |
java.lang.String |
getResourceTypeKey()
|
java.lang.String |
getResourceTypeLabel()
Retrieve the label of the resource type from the resource type key |
java.lang.String |
getRoleKey()
|
void |
setLocale(java.util.Locale locale)
Implements Localizable |
void |
setPermissionKey(java.lang.String strPermissionKey)
|
void |
setRBACId(int nRBACId)
|
void |
setResourceId(java.lang.String strResourceId)
|
void |
setResourceTypeKey(java.lang.String strResourceTypeKey)
|
void |
setRoleKey(java.lang.String strRoleKey)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String WILDCARD_RESOURCES_ID
public static final java.lang.String WILDCARD_PERMISSIONS_KEY
Constructor Detail |
---|
public RBAC()
Method Detail |
---|
public void setLocale(java.util.Locale locale)
setLocale
in interface Localizable
locale
- The current localepublic int getRBACId()
public void setRBACId(int nRBACId)
nRBACId
- The RBAC Id to setpublic java.lang.String getPermissionKey()
public void setPermissionKey(java.lang.String strPermissionKey)
strPermissionKey
- The Permission Key to setpublic java.lang.String getResourceId()
public void setResourceId(java.lang.String strResourceId)
strResourceId
- The Resource Id to setpublic java.lang.String getResourceTypeKey()
public void setResourceTypeKey(java.lang.String strResourceTypeKey)
strResourceTypeKey
- The Resource Type Key to set.public java.lang.String getRoleKey()
public void setRoleKey(java.lang.String strRoleKey)
strRoleKey
- The Role Key to set.public java.lang.String getResourceTypeLabel()
public java.lang.String getResourceIdLabel()
public java.lang.String getPermissionLabel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |