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 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 String WILDCARD_PERMISSIONS_KEY
           
static String WILDCARD_RESOURCES_ID
           
 
Constructor Summary
RBAC()
           
 
Method Summary
 String getPermissionKey()
          Returns the Permission Key
 String getPermissionLabel()
          Retrieve the label of the permission from the permission key
 int getRBACId()
          Returns the RBAC ID
 String getResourceId()
          Returns the Resource Id
 String getResourceIdLabel()
          Retrieve the label of the resource from the resource id
 String getResourceTypeKey()
          Returns the Resource Type Key
 String getResourceTypeLabel()
          Retrieve the label of the resource type from the resource type key
 String getRoleKey()
          Returns the Role Key.
 void setLocale(Locale locale)
          Implements Localizable
 void setPermissionKey(String strPermissionKey)
          Sets the Permission Key
 void setRBACId(int nRBACId)
          Sets the RBAC ID
 void setResourceId(String strResourceId)
          Sets the Resource Id
 void setResourceTypeKey(String strResourceTypeKey)
          Sets the Resource Type Key
 void setRoleKey(String strRoleKey)
          Sets the Role Key
 
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 String WILDCARD_RESOURCES_ID
See Also:
Constant Field Values

WILDCARD_PERMISSIONS_KEY

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

RBAC

public RBAC()
Method Detail

setLocale

public void setLocale(Locale locale)
Implements Localizable

Specified by:
setLocale in interface Localizable
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

public String getPermissionKey()
Returns the Permission Key

Returns:
The Permission Key

setPermissionKey

public void setPermissionKey(String strPermissionKey)
Sets the Permission Key

Parameters:
strPermissionKey - The Permission Key to set

getResourceId

public String getResourceId()
Returns the Resource Id

Returns:
The Resource Id

setResourceId

public void setResourceId(String strResourceId)
Sets the Resource Id

Parameters:
strResourceId - The Resource Id to set

getResourceTypeKey

public String getResourceTypeKey()
Returns the Resource Type Key

Returns:
The Resource Type Key.

setResourceTypeKey

public void setResourceTypeKey(String strResourceTypeKey)
Sets the Resource Type Key

Parameters:
strResourceTypeKey - The Resource Type Key to set.

getRoleKey

public String getRoleKey()
Returns the Role Key.

Returns:
The Role Key.

setRoleKey

public void setRoleKey(String strRoleKey)
Sets the Role Key

Parameters:
strRoleKey - The Role Key to set.

getResourceTypeLabel

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

Returns:
the label of the resource type

getResourceIdLabel

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

Returns:
the label of the resource

getPermissionLabel

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

Returns:
the label of the permission


Copyright © 2014 Mairie de Paris. All Rights Reserved.