|
|||||||||
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.BLMLocalSubjectGroupManager
Manages all operations on subject groups, including creation, deletion and profile operations.
Group names are specified in a qualified format which includes the identity directory
which they belong to. The format is //sgrp/dirName/groupName/
. The groupName
portion may include whitespace and any printable english character. You may make use of the
com.wles.util.SubjectBuilder
to construct and parse group names from Java objects rather then
directly dealing the above format.
Directory name, as parameter of methods should also be specified in a qualified format with prefix //dir/, Example: //dir/myDir
Use a BLMContextManager
to obtain an instance of a
BLMLocalSubjectGroupManager
.
BLMContextManager
,
SubjectBuilder
Field Summary | |
static int |
ATTRIBUTE_QUERY_TYPE_DIRECT
Attribute query type specifiying the attribute value assinged directly to the group. |
static int |
ATTRIBUTE_QUERY_TYPE_ENFORCED
Attribute query type specifiying the attribute value based on the attribute inheritance logic. |
static int |
ATTRIBUTE_QUERY_TYPE_ENFORCED_FROM_CHILDREN
Attribute query type specifiying the attribute value based on the RBAC attribute aggragation logic, ie, from the children to the parent. |
static int |
ATTRIBUTE_QUERY_TYPE_INHERITED
Attribute query type specifiying the attribute value inherited by the group, from a group membership. |
static int |
ATTRIBUTE_QUERY_TYPE_INHERITED_FROM_CHILDREN
Attribute query type specifiying the attribute value inheried by the group, from children. |
Method Summary | |
void |
addSubjectGroupToSubjectGroup(java.lang.String aChildSubjectGroupName,
java.lang.String aParentSubjectGroupName)
Adds a one group (child) as a member of another group (parent). |
void |
addUserToSubjectGroup(java.lang.String aLocalUserName,
java.lang.String aLocalSubjectGroupName)
Adds a user to a group. |
void |
create(java.lang.String name)
Create a new group. |
java.lang.String |
filter(java.lang.String findPattern)
Find all groups matching the specified filter pattern. |
boolean |
find(java.lang.String cID,
java.lang.String name)
Checks for a group within a group collection. |
java.lang.String |
getAllAncestorsSubjectGroups(java.lang.String aLocalSubjectGroupName,
java.lang.String filterString)
Get all the groups that the specified group is a member of. |
java.lang.String |
getAllDescendantsSubjectGroups(java.lang.String aLocalSubjectGroupName,
java.lang.String filterString)
Get all groups which are a member of the specified group. |
java.lang.String |
getAllMembers(java.lang.String aLocalSubjectGroupName,
java.lang.String filterString)
Get a list of all users and groups who are a member of the specified group. |
int |
getCount(java.lang.String cID)
getCount Gets the size of the group or group attribute collection. |
java.lang.String |
getDirectAncestorsSubjectGroups(java.lang.String aLocalSubjectGroupName,
java.lang.String filterString)
Gets all groups the specified group is directly a member of. |
java.lang.String |
getDirectDescendantsSubjectGroups(java.lang.String aLocalSubjectGroupName,
java.lang.String filterString)
Get all groups which are directly (not via inheritance) a member of the specified group. |
java.lang.String |
getDirectUsers(java.lang.String aLocalSubjectGroupName,
java.lang.String filterString)
Gets all users who are directly members of the specified group. |
java.lang.String |
getEligibleSubjectGroupMembers(java.lang.String aLocalSubjectGroupName,
java.lang.String filterString)
Gets all groups who are not currently a member of the specified group. |
java.lang.String |
getEligibleUserMembers(java.lang.String aLocalSubjectGroupName,
java.lang.String filterString)
Gets all users who are not currently a member of the specified group. |
java.lang.String[] |
getReport(java.lang.String cID)
Returns a report on a group collection. |
java.lang.String[] |
getReport(java.lang.String cID,
int iStart,
int iCount)
Returns a report of a subset of a group collection. |
AttributeElement[] |
getReportOnSubjectGroupAttributes(java.lang.String cID)
Returns the report of a group attribute collection. |
AttributeElement[] |
getReportOnSubjectGroupAttributes(java.lang.String cID,
int iStart,
int iCount)
Returns the report of a subset of a group attribute collection. |
AttributeElement |
getSubjectGroupAttribute(java.lang.String aLocalSubjectGroupName,
java.lang.String attrName,
int attrQueryType)
Gets the value of an attribute associated with the group. |
java.lang.String |
getSubjectGroupAttributes(java.lang.String aLocalSubjectGroupName,
int attrQueryType)
Finds attributes associated with a group. |
java.lang.String |
getSubjectGroupsWithAttribute(java.lang.String aDirName,
AttributeElement attrElem)
Finds all groups with the specified attribute value. |
java.lang.String |
getUserClosure(java.lang.String aLocalSubjectGroupName,
java.lang.String filterString)
Get all users who are a member of the specified group. |
void |
release(java.lang.String cID)
Releases a group or group attribute collection. |
void |
remove(java.lang.String name)
Remove a group from the system. |
void |
removeCascade(java.lang.String name)
Remove a group from the system, including all rules referencing it. |
void |
removeSubjectGroupAttribute(java.lang.String name,
java.lang.String attrName)
Removes the value of a group's attribute. |
void |
removeSubjectGroupFromSubjectGroup(java.lang.String aChildSubjectGroupName,
java.lang.String aParentSubjectGroupName)
Removes a group (child) from another group's (parent) membership. |
void |
removeUserFromSubjectGroup(java.lang.String aLocalUserName,
java.lang.String aLocalSubjectGroupName)
Removes a user from a group. |
void |
rename(java.lang.String oldName,
java.lang.String newName)
Rename a group within the system. |
void |
setSubjectGroupAttribute(java.lang.String aLocalSubjectGroupName,
AttributeElement attrElem)
Sets the value of a group attribute. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ATTRIBUTE_QUERY_TYPE_DIRECT
public static final int ATTRIBUTE_QUERY_TYPE_ENFORCED
public static final int ATTRIBUTE_QUERY_TYPE_ENFORCED_FROM_CHILDREN
public static final int ATTRIBUTE_QUERY_TYPE_INHERITED
public static final int ATTRIBUTE_QUERY_TYPE_INHERITED_FROM_CHILDREN
Method Detail |
public void addSubjectGroupToSubjectGroup(java.lang.String aChildSubjectGroupName, java.lang.String aParentSubjectGroupName) throws BLMException
aChildSubjectGroupName
- child group name, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroupaParentSubjectGroupName
- parent group name, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroup
BLMException
public void addUserToSubjectGroup(java.lang.String aLocalUserName, java.lang.String aLocalSubjectGroupName) throws BLMException
aLocalUserName
- user nameaLocalSubjectGroupName
- group name, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroup
BLMException
public void create(java.lang.String name) throws BLMException
create
in class BLMComponentManager
name
- name of the group to be created, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroup
BLMException
public java.lang.String filter(java.lang.String findPattern) throws BLMException
filter
in class BLMComponentManager
findPattern
- pattern for the filter
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 BLMException
find
in class BLMComponentManager
cID
- collection ID of the group collectionname
- name of the group, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroup
BLMException
public java.lang.String getAllAncestorsSubjectGroups(java.lang.String aLocalSubjectGroupName, java.lang.String filterString) throws BLMException
aLocalSubjectGroupName
- a group to be reported on, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroupfilterString
- a pattern to filter the collection
BLMException
getReport(String cID)
,
getReport(String cID, int iStart, int iCount)
,
getCount(String CID)
,
release(String cID)
,
find(String cID, String name)
public java.lang.String getAllDescendantsSubjectGroups(java.lang.String aLocalSubjectGroupName, java.lang.String filterString) throws BLMException
aLocalSubjectGroupName
- a group to be reported on, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroupfilterString
- a pattern to filter the collection
BLMException
getReport(String cID)
,
getReport(String cID, int iStart, int iCount)
,
getCount(String CID)
,
release(String cID)
,
find(String cID, String name)
public java.lang.String getAllMembers(java.lang.String aLocalSubjectGroupName, java.lang.String filterString) throws BLMException
aLocalSubjectGroupName
- a group to be reported on, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroupfilterString
- a pattern to filter the collection
BLMException
getReport(String cID)
,
getReport(String cID, int iStart, int iCount)
,
getCount(String CID)
,
release(String cID)
,
find(String cID, String name)
public int getCount(java.lang.String cID) throws BLMException
getCount
in class BLMComponentManager
cID
- ID of the collection
BLMException
public java.lang.String getDirectAncestorsSubjectGroups(java.lang.String aLocalSubjectGroupName, java.lang.String filterString) throws BLMException
aLocalSubjectGroupName
- a group to be reported on, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroupfilterString
- a pattern to filter the collection
BLMException
getReport(String cID)
,
getReport(String cID, int iStart, int iCount)
,
getCount(String CID)
,
release(String cID)
,
find(String cID, String name)
public java.lang.String getDirectDescendantsSubjectGroups(java.lang.String aLocalSubjectGroupName, java.lang.String filterString) throws BLMException
aLocalSubjectGroupName
- a group to be reported on, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroupfilterString
- a pattern to filter the collection
BLMException
getReport(String cID)
,
getReport(String cID, int iStart, int iCount)
,
getCount(String CID)
,
release(String cID)
,
find(String cID, String name)
public java.lang.String getDirectUsers(java.lang.String aLocalSubjectGroupName, java.lang.String filterString) throws BLMException
BLMLocalUserManager
collection methods
to access the conents of this collection.
aLocalSubjectGroupName
- a group to be reported on, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroupfilterString
- a pattern to filter the collection
BLMException
BLMLocalUserManager.getReport(String cID)
,
BLMLocalUserManager.getReport(String cID, int iStart, int iCount)
,
BLMLocalUserManager.getCount(String CID)
,
BLMLocalUserManager.release(String cID)
,
BLMLocalUserManager.find(String cID, String name)
public java.lang.String getEligibleSubjectGroupMembers(java.lang.String aLocalSubjectGroupName, java.lang.String filterString) throws BLMException
aLocalSubjectGroupName
- a group to be reported on, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroupfilterString
- a pattern to filter the collection
BLMException
getReport(String cID)
,
getReport(String cID, int iStart, int iCount)
,
getCount(String CID)
,
release(String cID)
,
find(String cID, String name)
public java.lang.String getEligibleUserMembers(java.lang.String aLocalSubjectGroupName, java.lang.String filterString) throws BLMException
BLMLocalUserManager
collection methods
to access the conents of this collection.
aLocalSubjectGroupName
- a group to be reported on, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroupfilterString
- a pattern to filter the collection
BLMException
BLMLocalUserManager.getReport(String cID)
,
BLMLocalUserManager.getReport(String cID, int iStart, int iCount)
,
BLMLocalUserManager.getCount(String CID)
,
BLMLocalUserManager.release(String cID)
,
BLMLocalUserManager.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
- index of the start of the subsetiCount
- size of the subset
BLMException
public AttributeElement[] getReportOnSubjectGroupAttributes(java.lang.String cID) throws BLMException, BadParameterException
cID
- ID of the collection
AttributeElement
objects from the collection.
BLMException
BadParameterException
public AttributeElement[] getReportOnSubjectGroupAttributes(java.lang.String cID, int iStart, int iCount) throws BLMException, BadParameterException
cID
- ID of the collectioniStart
- index of start of subsetiCount
- size of subset
AttributeElement
objects from the collection.
BLMException
BadParameterException
public AttributeElement getSubjectGroupAttribute(java.lang.String aLocalSubjectGroupName, java.lang.String attrName, int attrQueryType) throws BLMException, BadParameterException
aLocalSubjectGroupName
- the group name, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroupattrName
- the attribute nameattrQueryType
- ATTRIBUTE_QUERY_TYPE_DIRECT, ATTRIBUTE_QUERY_TYPE_INHERITED, ATTRIBUTE_QUERY_TYPE_ENFORCED
AttributeElement
containing the value of the group's attribute, or null
if this attribute is not defined for the specified group.
BLMException
BadParameterException
ATTRIBUTE_QUERY_TYPE_DIRECT
,
ATTRIBUTE_QUERY_TYPE_INHERITED
,
ATTRIBUTE_QUERY_TYPE_ENFORCED
public java.lang.String getSubjectGroupAttributes(java.lang.String aLocalSubjectGroupName, int attrQueryType) throws BLMException
aLocalSubjectGroupName
- group name, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroupattrQueryType
- ATTRIBUTE_QUERY_TYPE_DIRECT, ATTRIBUTE_QUERY_TYPE_INHERITED, ATTRIBUTE_QUERY_TYPE_ENFORCED
BLMException
getReportOnSubjectGroupAttributes(String cID)
,
getReportOnSubjectGroupAttributes(String cID, int iStart, int iCount)
,
getCount(String cID)
,
release(String cID)
,
ATTRIBUTE_QUERY_TYPE_DIRECT
,
ATTRIBUTE_QUERY_TYPE_INHERITED
,
ATTRIBUTE_QUERY_TYPE_ENFORCED
,
ATTRIBUTE_QUERY_TYPE_INHERITED_FROM_CHILDREN
,
ATTRIBUTE_QUERY_TYPE_ENFORCED_FROM_CHILDREN
public java.lang.String getSubjectGroupsWithAttribute(java.lang.String aDirName, AttributeElement attrElem) throws BLMException, BadParameterException
aDirName
- directory name, should be specified in a qualified format with prefix //dir/, Example: //dir/myDirattrElem
- attribute element containing name and value
BLMException
BadParameterException
getReport(String cID)
,
getReport(String cID, int iStart, int iCount)
,
getCount(String CID)
,
release(String cID)
,
find(String cID, String name)
public java.lang.String getUserClosure(java.lang.String aLocalSubjectGroupName, java.lang.String filterString) throws BLMException
BLMLocalUserManager
collection methods
to access the conents of this collection.
aLocalSubjectGroupName
- a group to be reported on, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroupfilterString
- a pattern to filter the collection
BLMException
BLMLocalUserManager.getReport(String cID)
,
BLMLocalUserManager.getReport(String cID, int iStart, int iCount)
,
BLMLocalUserManager.getCount(String CID)
,
BLMLocalUserManager.release(String cID)
,
BLMLocalUserManager.find(String cID, String name)
public void release(java.lang.String cID) throws 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 BLMException
remove
in class BLMComponentManager
name
- name of the group to be removed, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroup
BLMException
public void removeCascade(java.lang.String name) throws BLMException
name
- name of the group to be removed, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroup
BLMException
public void removeSubjectGroupAttribute(java.lang.String name, java.lang.String attrName) throws BLMException, BadParameterException
name
- fully qualified name of the group, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroupattrName
- the name of the attribute to remove
BLMException
BadParameterException
public void removeSubjectGroupFromSubjectGroup(java.lang.String aChildSubjectGroupName, java.lang.String aParentSubjectGroupName) throws BLMException
aChildSubjectGroupName
- child group name, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroupaParentSubjectGroupName
- parent group name, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroup
BLMException
public void removeUserFromSubjectGroup(java.lang.String aLocalUserName, java.lang.String aLocalSubjectGroupName) throws BLMException
aLocalUserName
- user name to be removedaLocalSubjectGroupName
- group name of which the user is a member of, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroup
BLMException
public void rename(java.lang.String oldName, java.lang.String newName) throws BLMException
rename
in class BLMComponentManager
oldName
- old name of the group, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroupnewName
- new name of the group, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroup
BLMException
public void setSubjectGroupAttribute(java.lang.String aLocalSubjectGroupName, AttributeElement attrElem) throws BLMException, BadParameterException
null
value will unset the user's attribute.
aLocalSubjectGroupName
- subjectgroup name, should be specified in a qualified format with prefix //sgrp/dir/, Example: //sgrp/dir/myGroupattrElem
- contains the attribute name and value
BLMException
BadParameterException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |