|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectXGTRBAC.Session
public class Session
This class contains methods and members for maintaining sessions. It is instantiated in RBACModule class (addSession method).
| Field Summary | |
|---|---|
private GTRBACModule |
gtrbacModule
|
private java.util.LinkedList |
RoleNames
|
private java.lang.String |
UserId
|
| Constructor Summary | |
|---|---|
Session(java.lang.String user_id)
Creates a new instance of Session |
|
| Method Summary | |
|---|---|
int |
addRole(Policy policy,
java.lang.String role_name)
Adds a new role name to the RoleList |
java.util.LinkedList |
getActivatedRoles(Policy policy)
Returns the activated roles for the user |
GTRBACModule |
getGTRBACModule()
Returns the gtrbac module object running this session |
int |
getRoleCount()
Returns the number of roles |
java.lang.String |
getRoleName(int index)
Returns the role name at the given index- used to fill combo box |
java.lang.String |
getUserId()
Returns the id of session user |
void |
setGTRBACModule(GTRBACModule gtrbac)
Sets the gtrbac module object running this session |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String UserId
private java.util.LinkedList RoleNames
private GTRBACModule gtrbacModule
| Constructor Detail |
|---|
public Session(java.lang.String user_id)
| Method Detail |
|---|
public java.lang.String getUserId()
public int getRoleCount()
public int addRole(Policy policy,
java.lang.String role_name)
policy - The reference to policy object supplied as Policyrole_name - The name of the role supplied as String
public java.lang.String getRoleName(int index)
index - The integer index of the role from the combo box
public java.util.LinkedList getActivatedRoles(Policy policy)
policy - The reference to policy object supplied as Policy
public GTRBACModule getGTRBACModule()
public void setGTRBACModule(GTRBACModule gtrbac)
gtrbac - The gtrbac module object supplied as GTRBACModule
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||