fr.paris.lutece.portal.business.rbac
Class RBAC

java.lang.Object
  extended by fr.paris.lutece.portal.business.rbac.RBAC
All Implemented Interfaces:
Localizable

public class RBAC
extends java.lang.Object
implements 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
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

WILDCARD_RESOURCES_ID

public static final java.lang.String WILDCARD_RESOURCES_ID
See Also:
Constant Field Values

WILDCARD_PERMISSIONS_KEY

public static final java.lang.String WILDCARD_PERMISSIONS_KEY
See Also:
Constant Field Values
Constructor Detail

RBAC

public RBAC()
Method Detail

setLocale

public void setLocale(java.util.Locale locale)
Implements Localizable

Specified by:
setLocale in interface Localizable
Parameters:
locale - The current locale

getRBACId

public int getRBACId()
Returns:

setRBACId

public void setRBACId(int nRBACId)
Parameters:
nRBACId - The RBAC Id to set

getPermissionKey

public java.lang.String getPermissionKey()
Returns:
Returns the Permission Key

setPermissionKey

public void setPermissionKey(java.lang.String strPermissionKey)
Parameters:
strPermissionKey - The Permission Key to set

getResourceId

public java.lang.String getResourceId()
Returns:
Returns the Resource Id

setResourceId

public void setResourceId(java.lang.String strResourceId)
Parameters:
strResourceId - The Resource Id to set

getResourceTypeKey

public java.lang.String getResourceTypeKey()
Returns:
Returns the Resource Type Key.

setResourceTypeKey

public void setResourceTypeKey(java.lang.String strResourceTypeKey)
Parameters:
strResourceTypeKey - The Resource Type Key to set.

getRoleKey

public java.lang.String getRoleKey()
Returns:
Returns the Role Key.

setRoleKey

public void setRoleKey(java.lang.String strRoleKey)
Parameters:
strRoleKey - The Role Key to set.

getResourceTypeLabel

public java.lang.String getResourceTypeLabel()
Retrieve the label of the resource type from the resource type key

Returns:
the label of the resource type

getResourceIdLabel

public java.lang.String getResourceIdLabel()
Retrieve the label of the resource from the resource id

Returns:
the label of the resource

getPermissionLabel

public java.lang.String getPermissionLabel()
Retrieve the label of the permission from the permission key

Returns:
the label of the permission


Copyright © 2007 Mairie de Paris. All Rights Reserved.