|
|||||||||
| 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.BLMPrivgrpManager
Manages operations on privilege groups. Privilege groups can be used to maintain associations between a set of related privileges.
For instance you may create a privilege group for all privileges which apply to a given resource or application.
Use a BLMContextManager to obtain an instance of a
BLMPrivgrpManager.
BLMContextManager| Method Summary | |
void |
addPrivilegeToGroup(java.lang.String group,
java.lang.String priv)
Adds a privilege to a privilege group. |
void |
create(java.lang.String name)
Creates a privilege group. |
java.lang.String |
filter(java.lang.String findPattern)
Finds privilege groups matching the specified filter pattern. |
boolean |
find(java.lang.String cID,
java.lang.String name)
Checks for a privilege group in a collection. |
int |
getCount(java.lang.String cID)
Gets the size of a privilege group collection. |
java.lang.String |
getPrivilegesInGroup(java.lang.String group)
Finds the privilegs in a privilege group. |
java.lang.String[] |
getReport(java.lang.String cID)
Returns a report on a privilege group collection. |
java.lang.String[] |
getReport(java.lang.String cID,
int iStart,
int iCount)
Returns a report on a subset of a privilege group collection. |
void |
release(java.lang.String cID)
Release the privilege group collection. |
void |
remove(java.lang.String name)
Removes a privilege group from the system. |
void |
removePrivilegeFromGroup(java.lang.String group,
java.lang.String priv)
Removes a privilege from a privilege group. |
void |
rename(java.lang.String oldName,
java.lang.String newName)
Renames a privilege group in the system. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void addPrivilegeToGroup(java.lang.String group,
java.lang.String priv)
throws BLMException
group - privilege group namepriv - the privilege to add
BLMException
public void create(java.lang.String name)
throws BLMException
create in class BLMComponentManagername - name of the Privilege group to be created
BLMException
public java.lang.String filter(java.lang.String findPattern)
throws BLMException
filter in class BLMComponentManagerfindPattern - pattern for the filter
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 ID of the collectionname - name of the Privilege group
BLMException
public int getCount(java.lang.String cID)
throws BLMException
getCount in class BLMComponentManagercID - ID of the collection
BLMException
public java.lang.String getPrivilegesInGroup(java.lang.String group)
throws BLMException
BLMPrivilegeManager class
to access the collection.
group - privilege group name
BLMExceptionBLMPrivilegeManager.getReport(String cID),
BLMPrivilegeManager.getReport(String cID, int iStart, int iCount),
BLMPrivilegeManager.getCount(String CID),
BLMPrivilegeManager.release(String cID),
BLMPrivilegeManager.find(String cID, String name)
public java.lang.String[] getReport(java.lang.String cID)
throws BLMException
cID - ID of the collection
BLMException
public java.lang.String[] getReport(java.lang.String cID,
int iStart,
int iCount)
throws BLMException
cID - ID of the collectioniStart - starting 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 - ID of the collection
BLMException
public void remove(java.lang.String name)
throws BLMException
remove in class BLMComponentManagername - name of the privilege group to be removed
BLMException
public void removePrivilegeFromGroup(java.lang.String group,
java.lang.String priv)
throws BLMException
group - privilege group namepriv - the privilege to remove
BLMException
public void rename(java.lang.String oldName,
java.lang.String newName)
throws BLMException
rename in class BLMComponentManageroldName - old name of the Privilege to be renamednewName - new name of the Privilege to be renamed
BLMException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||