|
|||||||||
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.BLMPrivilegeManager
Manages operations on privileges. Privilege names are specified in the qualified form //priv/privName
.
Privileges represent actions which can be performed on resources.
Subjects are granted the ability to perform these actions via rules using the BLMRuleManager
.
Use a BLMContextManager
to obtain an instance of a
BLMPrivilegeManager
.
BLMContextManager
Method Summary | |
void |
create(java.lang.String name)
Creates a new privilege. |
java.lang.String |
filter(java.lang.String findPattern)
Finds all privileges matching the specified filter pattern. |
boolean |
find(java.lang.String cID,
java.lang.String name)
Checks for a privilege within a privilege collection. |
int |
getCount(java.lang.String cID)
Returns the size of a privilege collection. |
java.lang.String[] |
getMemberOfPrivgrps(java.lang.String privName)
Returns a list of privilege groups that this privilege belongs to. |
java.lang.String[] |
getReport(java.lang.String cID)
Returns the report of a privilege collection. |
java.lang.String[] |
getReport(java.lang.String cID,
int iStart,
int iCount)
Returns the report of a subset of a privilege collection. |
java.lang.String |
queryWithoutPrefix(java.lang.String findPattern)
|
void |
release(java.lang.String cID)
Release a privilege collection. |
void |
remove(java.lang.String name)
Removes a privilege from the system. |
void |
rename(java.lang.String oldName,
java.lang.String newName)
Renames a privilege 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 Privilege 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
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[] getMemberOfPrivgrps(java.lang.String privName) throws com.wles.blm.BLMException
privName
- Fully qualified name of the privilege.
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
- the start index of the subsetiCount
- the 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 to be removed
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 |