|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.wles.blm.BLMComponentManager
com.wles.blm.BLMRoleManager
Manages operations on roles. Roles are used to represent a set of capabilities a subject may hold
on a resource. Role membership is scoped to a particular resource, i.e. Bob has the Admin role on application foo.
Role memberships are specified by role rules using the BLMRuleManager. Role names are specified
in the qualified form //role/roleName. You may make use of the
com.wles.util.SubjectBuilder to construct and parse role names from Java objects rather then
directly dealing the above format.
Use a BLMContextManager to obtain an instance of a
BLMRoleManager.
BLMContextManager,
SubjectBuilder| Method Summary | |
void |
create(java.lang.String name)
Creates a new role. |
java.lang.String |
filter(java.lang.String findPattern)
Finds roles matching a filter pattern. |
boolean |
find(java.lang.String cID,
java.lang.String name)
Checks for a role within a role collection. |
int |
getCount(java.lang.String cID)
Returns the size of a role collection. |
java.lang.String[] |
getReport(java.lang.String cID)
Returns a report for on a role collection. |
java.lang.String[] |
getReport(java.lang.String cID,
int iStart,
int iCount)
Returns a report on a subset of a role collection. |
void |
release(java.lang.String cID)
Releases a role collection. |
void |
remove(java.lang.String name)
Removes a role from the system. |
void |
rename(java.lang.String oldName,
java.lang.String newName)
Renames a role in the system. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void create(java.lang.String name)
throws BLMException
create in class BLMComponentManagername - name of the role to be created
BLMException
public java.lang.String filter(java.lang.String findPattern)
throws BLMException
filter in class BLMComponentManagerfindPattern - filter pattern
BLMExceptiongetReport(String cID),
getReport(String cID, int iStart, int iCount),
getCount(String CID),
release(String cID),
find(String cID, String name)
public boolean find(java.lang.String cID,
java.lang.String name)
throws BLMException
find in class BLMComponentManagercID - collection IDname - name of the role
BLMException
public int getCount(java.lang.String cID)
throws BLMException
getCount in class BLMComponentManagercID - collection ID
BLMException
public java.lang.String[] getReport(java.lang.String cID)
throws BLMException
cID - collection ID
BLMException
public java.lang.String[] getReport(java.lang.String cID,
int iStart,
int iCount)
throws BLMException
cID - collection IDiStart - start index of the subsetiCount - size of the subset
BLMException
public void release(java.lang.String cID)
throws BLMException
null collection id will cause all held collections to be released.
release in class BLMComponentManagercID - collection ID
BLMException
public void remove(java.lang.String name)
throws BLMException
remove in class BLMComponentManagername - name of the role
BLMException
public void rename(java.lang.String oldName,
java.lang.String newName)
throws BLMException
rename in class BLMComponentManageroldName - old name of the rolenewName - new name of the role
BLMException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||