|
|||||||||
| 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.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. |
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 BLMException
create in class BLMComponentManagername - name of the Privilege 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
BLMException
public int getCount(java.lang.String cID)
throws BLMException
getCount in class BLMComponentManagercID - ID of the collection
BLMException
public java.lang.String[] getMemberOfPrivgrps(java.lang.String privName)
throws BLMException
privName - Fully qualified name of the privilege.
BLMException
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 - the start index of the subsetiCount - the 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 to be removed
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 | ||||||||