|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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. |
java.lang.String |
queryWithoutPrefix(java.lang.String findPattern)
|
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 com.wles.blm.BLMException
create
in class BLMComponentManager
name
- name of the role to be created
BLMException
public java.lang.String filter(java.lang.String findPattern) throws com.wles.blm.BLMException
filter
in class BLMComponentManager
findPattern
- filter pattern
BLMException
getReport(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 com.wles.blm.BLMException
find
in class BLMComponentManager
cID
- collection IDname
- name of the role
BLMException
public int getCount(java.lang.String cID) throws com.wles.blm.BLMException
getCount
in class BLMComponentManager
cID
- collection ID
BLMException
public java.lang.String[] getReport(java.lang.String cID) throws com.wles.blm.BLMException
cID
- collection ID
BLMException
public java.lang.String[] getReport(java.lang.String cID, int iStart, int iCount) throws com.wles.blm.BLMException
cID
- collection IDiStart
- start index of the subsetiCount
- size of the subset
BLMException
public java.lang.String queryWithoutPrefix(java.lang.String findPattern) throws com.wles.blm.BLMException
com.wles.blm.BLMException
public void release(java.lang.String cID) throws com.wles.blm.BLMException
null
collection id will cause all held collections to be released.
release
in class BLMComponentManager
cID
- collection ID
BLMException
public void remove(java.lang.String name) throws com.wles.blm.BLMException
remove
in class BLMComponentManager
name
- name of the role
BLMException
public void rename(java.lang.String oldName, java.lang.String newName) throws com.wles.blm.BLMException
rename
in class BLMComponentManager
oldName
- 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 |