|
|||||||||
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 |
getPrivilegesInGroupWithPrefix(java.lang.String group,
java.lang.String prefix)
|
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. |
java.lang.String |
queryWithoutPrefix(java.lang.String findPattern)
|
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 com.wles.blm.BLMException
group
- privilege group namepriv
- the privilege to add
com.wles.blm.BLMException
public void create(java.lang.String name) throws com.wles.blm.BLMException
create
in class BLMComponentManager
name
- name of the Privilege group to be created
BLMException
public java.lang.String filter(java.lang.String findPattern) throws com.wles.blm.BLMException
filter
in class BLMComponentManager
findPattern
- pattern for the filter
com.wles.blm.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 ID of the collectionname
- name of the Privilege group
BLMException
public int getCount(java.lang.String cID) throws com.wles.blm.BLMException
getCount
in class BLMComponentManager
cID
- ID of the collection
BLMException
public java.lang.String getPrivilegesInGroup(java.lang.String group) throws com.wles.blm.BLMException
BLMPrivilegeManager
class
to access the collection.
group
- privilege group name
com.wles.blm.BLMException
BLMPrivilegeManager.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 getPrivilegesInGroupWithPrefix(java.lang.String group, java.lang.String prefix) throws com.wles.blm.BLMException
com.wles.blm.BLMException
public java.lang.String[] getReport(java.lang.String cID) throws com.wles.blm.BLMException
cID
- ID of the collection
BLMException
public java.lang.String[] getReport(java.lang.String cID, int iStart, int iCount) throws com.wles.blm.BLMException
cID
- ID of the collectioniStart
- starting 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
- ID of the collection
BLMException
public void remove(java.lang.String name) throws com.wles.blm.BLMException
remove
in class BLMComponentManager
name
- name of the privilege group to be removed
BLMException
public void removePrivilegeFromGroup(java.lang.String group, java.lang.String priv) throws com.wles.blm.BLMException
group
- privilege group namepriv
- the privilege to remove
com.wles.blm.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 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 |