|
Java SDK r12.5 SP 8 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GroupProvider
Lets you create or retrieve group objects in the current Identity Manager environment.
This and all Identity Manager providers are retrieved throughProviderAccessor
.
Organization
object's generic methods to access
the groups within an organizational hierarchy.
AttributeRightsCollection
. The managed objects that are returned to the
method include the specified attributes and their applicable permissions,
as described below.
AttributeCollection
.
GroupProvider
are accessed for reading purposes only. However, on occassion, business logic task handlers
and event listeners may need to modify objects retrieved through
GroupProvider
.
GroupProvider
, call
modifyObject()
. The changes are then immediately persisted to the data store. No Identity Manager
events are generated, and no workflow approvals, auditing, or security checks are performed.
Method Summary | |
---|---|
Group |
createGroup(Organization org,
java.util.Hashtable attribs)
Creates a group object within the specified organization. |
Group |
createGroup(Organization org,
java.util.Hashtable attribs,
AttributeRightsCollection permissions)
Creates a group object within the specified organization, including permission requests for the object's attributes. |
Group |
findGroup(java.lang.String name,
java.util.Enumeration attribs)
Retrieves the specified group object and attributes from the current Identity Manager environment. |
Group |
findGroup(TSContext context,
java.lang.String name,
AttributeRightsCollection attribs)
Retrieves the specified group object and attributes from the current Identity Manager environment, and includes permissions for the specified attributes. |
java.util.Vector |
findGroups(GroupFilter gf,
OrgMembershipConstraint orgs,
AttributeRightsCollection attrs)
Retrieves the groups matching an attribute filter and an organization membership constraint. |
java.util.Vector |
findGroupsInScope(TSContext tsCtx,
GroupFilter gf,
OrgScopeConstraint orgs,
AttributeRightsCollection attrs)
Retrieves the groups within the current task that match the specified search criteria. |
java.util.Vector |
getGroupsAdminCanAssign(TSContext context,
Organization searchTop,
SearchDepthType searchDepth,
AttributeRightsCollection attribs)
Retrieves the groups in the specified organization(s) for which the current user is an administrator. |
java.util.Vector |
getGroupsInOrg(Organization org,
SearchDepthType searchDepth,
java.util.Enumeration attribs)
Retrieves all group objects in the specified organization(s). |
java.util.Vector |
getGroupsInOrg(TSContext context,
Organization org,
SearchDepthType searchDepth,
AttributeRightsCollection attribs)
Retrieves all group objects in the specified organization(s) -- attribute permissions are included in the returned objects. |
java.util.Vector |
getSelfSubscribingGroupsForNewUser(Organization org,
java.util.Enumeration attribs)
Retrieves the self-subscribing groups available to a new user in the specified organization. |
java.util.Vector |
getSelfSubscribingGroupsForNewUser(TSContext context,
Organization org,
AttributeRightsCollection attribs)
Retrieves the self-subscribing groups available to a new user in the specified organization -- attribute permissions are included in the returned objects. |
ApiResultSet |
pagedGetGroupsInOrg(Organization org,
SearchDepthType searchDepth,
java.util.Enumeration attribs,
SearchCursor cursor)
Deprecated. As of FW 2.0, no alternate method exists. Retrieves and sorts all group objects in the specified organization(s). This method is a specialization ofOrganization.getMembers(ObjectType, SearchDepthType) . |
ApiResultSet |
pagedGetGroupsInOrg(TSContext context,
Organization org,
SearchDepthType searchDepth,
AttributeRightsCollection attribs,
SearchCursor cursor)
Deprecated. As of FW 2.0, no alternate method exists. Retrieves and sorts all group objects in the specified organization(s) -- attribute permissions are included in the returned objects. This method is a specialization ofOrganization.getMembers(ObjectType, SearchDepthType) . |
ApiResultSet |
pagedSearchOrgForGroups(Organization org,
java.util.Vector filter,
ConjunctionType conj,
SearchDepthType searchDepth,
java.util.Enumeration attribs,
SearchCursor cursor)
Deprecated. As of FW 2.0, no alternate method exists. Searches for groups within the specified organization(s) and sorts the result. This method is a specialization ofOrganization.searchManagedObjects() . |
ApiResultSet |
pagedSearchOrgForGroups(Organization org,
java.util.Vector filter,
SearchDepthType searchDepth,
java.util.Enumeration attribs,
SearchCursor cursor)
Deprecated. Deprecated in IdentityMinder 6.0. Use pagedSearchOrgForGroups() containing ConjunctionType . |
ApiResultSet |
pagedSearchOrgForGroups(TSContext context,
Organization org,
java.util.Vector filter,
ConjunctionType conj,
SearchDepthType searchDepth,
AttributeRightsCollection attribs,
SearchCursor cursor)
Searches for groups within the specified organization(s) and sorts the result -- attribute permissions are included in the returned objects. |
java.util.Vector |
searchOrgForGroups(Organization org,
java.util.Vector filter,
ConjunctionType conj,
SearchDepthType searchDepth,
java.util.Enumeration attribs)
Searches for groups within the specified organization(s). |
java.util.Vector |
searchOrgForGroups(Organization org,
java.util.Vector filter,
SearchDepthType searchDepth,
java.util.Enumeration attribs)
Deprecated. Deprecated in IdentityMinder 6.0. Use searchOrgForGroups() containing ConjunctionType . |
java.util.Vector |
searchOrgForGroups(TSContext context,
Organization org,
java.util.Vector filter,
ConjunctionType conj,
SearchDepthType searchDepth,
AttributeRightsCollection attribs)
Searches for groups within the specified organization(s) -- attribute permissions are included in the returned objects. |
Method Detail |
---|
Group findGroup(java.lang.String name, java.util.Enumeration attribs) throws com.netegrity.sdk.apiutil.SmApiException, NoSuchObjectException
Retrieves the specified group object and attributes from the current Identity Manager environment.
name
- The name of the group to retrieve. The name can be a
unique name or a friendly name.attribs
- An Enumeration of Strings containing names of the attributes
to include in the retrieved object. If you pass
an empty Enumeration, no attributes are included.
If you pass null
, all attributes are included.
attribs
.
NoSuchObjectException
- if the object cannot be found.
com.netegrity.sdk.apiutil.SmApiException
Group findGroup(TSContext context, java.lang.String name, AttributeRightsCollection attribs) throws com.netegrity.sdk.apiutil.SmApiException, NoSuchObjectException
Retrieves the specified group object and attributes from the current Identity Manager environment, and includes permissions for the specified attributes.
context
- Context information for the current task session.name
- The name of the group to retrieve. The name can be a
unique name or a friendly name.attribs
- A collection of AttributeRight
objects, each containing an attribute name and a permission request.
attribs
and the associated permissions.
NoSuchObjectException
- if the object cannot be found.
com.netegrity.sdk.apiutil.SmApiException
java.util.Vector findGroups(GroupFilter gf, OrgMembershipConstraint orgs, AttributeRightsCollection attrs) throws SmApiException
Retrieves the groups matching an attribute filter and an organization membership constraint.
gf
- Attribute filter for the search. If no filter is specified,
all groups in the specified organizations will be returned.orgs
- Organization constraint that defines the scope for the search. If no
constraint is specified, the search will occur within all organizations.attrs
- A collection of AttributeRight
objects, each containing an attribute name and a permission request.
attrs
and the associated permissions.
SmApiException
Group createGroup(Organization org, java.util.Hashtable attribs) throws SmApiException
Creates a group object within the specified organization.
This method is a specialization ofOrganization.createManagedObject()
.
org
- The organization where the group is being created.attribs
- Seed attributes to include in the group object.
SmApiException
Group createGroup(Organization org, java.util.Hashtable attribs, AttributeRightsCollection permissions) throws SmApiException
Creates a group object within the specified organization, including permission requests for the object's attributes.
This method is a specialization ofOrganization.createManagedObject()
.
org
- The organization where the group is being created.attribs
- Seed attributes to include in the group object.permissions
- A collection of AttributeRight
objects, each containing an attribute name and a permission request.
SmApiException
java.util.Vector getGroupsInOrg(Organization org, SearchDepthType searchDepth, java.util.Enumeration attribs) throws SmApiException
Retrieves all group objects in the specified organization(s).
This method is a specialization ofOrganization.getMembers(ObjectType, SearchDepthType)
.
org
- The organization to search.searchDepth
- Indicates whether to search just the specified organization
or also its children.attribs
- An Enumeration of Strings that specifies the attributes
to include in retrieved objects. If you pass
an empty Enumeration, no attributes are included.
If you pass null
, all attributes are included.
attribs
.
SmApiException
java.util.Vector getGroupsInOrg(TSContext context, Organization org, SearchDepthType searchDepth, AttributeRightsCollection attribs) throws SmApiException
Retrieves all group objects in the specified organization(s) -- attribute permissions are included in the returned objects.
This method is a specialization ofOrganization.getMembers(ObjectType, SearchDepthType)
.
context
- Context information for the current task session.org
- The organization to search.searchDepth
- Indicates whether to search just the specified organization
or also its children.attribs
- A collection of AttributeRight
objects, each containing an attribute name and a permission request.
attribs
and the associated permissions.
SmApiException
ApiResultSet pagedGetGroupsInOrg(Organization org, SearchDepthType searchDepth, java.util.Enumeration attribs, SearchCursor cursor) throws SmApiException
Retrieves and sorts all group objects in the specified organization(s).
This method is a specialization ofOrganization.getMembers(ObjectType, SearchDepthType)
.
org
- The organization to search.searchDepth
- Indicates whether to search just the specified organization
or also its children.attribs
- An Enumeration of Strings that specifies the attributes
to include in retrieved objects. If you pass
an empty Enumeration, no attributes are included.
If you pass null
, all attributes are included.cursor
- Instructions for sorting the retrieved objects.
attribs
.
SmApiException
ApiResultSet pagedGetGroupsInOrg(TSContext context, Organization org, SearchDepthType searchDepth, AttributeRightsCollection attribs, SearchCursor cursor) throws SmApiException
Retrieves and sorts all group objects in the specified organization(s) -- attribute permissions are included in the returned objects.
This method is a specialization ofOrganization.getMembers(ObjectType, SearchDepthType)
.
context
- Context information for the current task session.org
- The organization to search.searchDepth
- Indicates whether to search just the specified organization
or also its children.attribs
- A collection of AttributeRight
objects, each containing an attribute name and a permission request.cursor
- Instructions for sorting the retrieved objects.
attribs
and the associated permissions.
SmApiException
java.util.Vector searchOrgForGroups(Organization org, java.util.Vector filter, SearchDepthType searchDepth, java.util.Enumeration attribs) throws SmApiException
searchOrgForGroups()
containing ConjunctionType
.
Searches for groups within the specified organization(s).
This method is a specialization ofOrganization.searchManagedObjects()
.
org
- The organization to search.filter
- A Vector of SearchExpression
objects that must all match the returned objects (all
SearchExpression
objects in the Vector are ANDed). If there
is anything else in the Vector, an exception is thrown.searchDepth
- Indicates whether to search just the specified organization
or also its children.attribs
- An Enumeration of Strings that specifies the attributes
to include in retrieved objects. If you pass
an empty Enumeration, no attributes are included.
If you pass null
, all attributes are included.
SmApiException
java.util.Vector searchOrgForGroups(Organization org, java.util.Vector filter, ConjunctionType conj, SearchDepthType searchDepth, java.util.Enumeration attribs) throws SmApiException
Searches for groups within the specified organization(s).
This method is a specialization ofOrganization.searchManagedObjects()
.
org
- The organization to search.filter
- A Vector of SearchExpression
objects. If there is anything else in the Vector,
an exception is thrown.conj
- A conjunction (such as AND or OR) for combining expressions in the search filter.searchDepth
- Indicates whether to search just the specified organization
or also its children.attribs
- An Enumeration of Strings that specifies the attributes
to include in retrieved objects. If you pass
an empty Enumeration, no attributes are included.
If you pass null
, all attributes are included.
SmApiException
java.util.Vector searchOrgForGroups(TSContext context, Organization org, java.util.Vector filter, ConjunctionType conj, SearchDepthType searchDepth, AttributeRightsCollection attribs) throws SmApiException
Searches for groups within the specified organization(s) -- attribute permissions are included in the returned objects.
This method is a specialization ofOrganization.searchManagedObjects()
.
context
- Context information for the current task session.org
- The organization to search.filter
- A Vector of SearchExpression
objects. If there is anything else in the Vector,
an exception is thrown.conj
- A conjunction (such as AND or OR) for combining expressions in the search filter.searchDepth
- Indicates whether to search just the specified organization
or also its children.attribs
- A collection of AttributeRight
objects, each containing an attribute name and a permission request.
SmApiException
ApiResultSet pagedSearchOrgForGroups(Organization org, java.util.Vector filter, SearchDepthType searchDepth, java.util.Enumeration attribs, SearchCursor cursor) throws SmApiException
pagedSearchOrgForGroups()
containing ConjunctionType
.
Searches for groups within the specified organization(s) and sorts the result.
This method is a specialization ofOrganization.searchManagedObjects()
.
org
- The organization to search.filter
- A Vector of SearchExpression
objects that must all match the returned objects (all
SearchExpression
objects in the Vector are ANDed). If there
is anything else in the Vector, an exception is thrown.searchDepth
- Indicates whether to search just the specified organization
or also its children.attribs
- An Enumeration of Strings that specifies the attributes
to include in retrieved objects. If you pass
an empty Enumeration, no attributes are included.
If you pass null
, all attributes are included.cursor
- Instructions for sorting the retrieved objects.
attribs
.
SmApiException
ApiResultSet pagedSearchOrgForGroups(Organization org, java.util.Vector filter, ConjunctionType conj, SearchDepthType searchDepth, java.util.Enumeration attribs, SearchCursor cursor) throws SmApiException
Searches for groups within the specified organization(s) and sorts the result.
This method is a specialization ofOrganization.searchManagedObjects()
.
org
- The organization to search.filter
- A Vector of SearchExpression
objects. If there is anything else in the Vector, an
exception is thrown.conj
- A conjunction (such as AND or OR) for combining expressions in the search filter.searchDepth
- Indicates whether to search just the specified organization
or also its children.attribs
- An Enumeration of Strings that specifies the attributes
to include in retrieved objects. If you pass
an empty Enumeration, no attributes are included.
If you pass null
, all attributes are included.cursor
- Instructions for sorting the retrieved objects.
attribs
.
SmApiException
ApiResultSet pagedSearchOrgForGroups(TSContext context, Organization org, java.util.Vector filter, ConjunctionType conj, SearchDepthType searchDepth, AttributeRightsCollection attribs, SearchCursor cursor) throws SmApiException
Searches for groups within the specified organization(s) and sorts the result -- attribute permissions are included in the returned objects.
This method is a specialization ofOrganization.searchManagedObjects()
.
context
- Context information for the current task session.org
- The organization to search.filter
- A Vector of SearchExpression
objects. If there is anything else in the Vector,
an exception is thrown.conj
- A conjunction (such as AND or OR) for combining expressions in the search filter.searchDepth
- Indicates whether to search just the specified organization
or also its children.attribs
- A collection of AttributeRight
objects, each containing an attribute name and a permission request.cursor
- Instructions for sorting the retrieved objects.
attribs
and their associated permissions.
SmApiException
java.util.Vector getSelfSubscribingGroupsForNewUser(Organization org, java.util.Enumeration attribs) throws SmApiException
Retrieves the self-subscribing groups available to a new user in the specified organization.
This method is useful during a self-subscription operation for a new user. Pass in the organization where the user will be created, and the method returns the groups to which the user can self-subscribe.
org
- The organization to search.attribs
- An Enumeration of Strings that specifies the attributes
to include in retrieved objects. If you pass
an empty Enumeration, no attributes are included.
If you pass null
, all attributes are included.
SmApiException
java.util.Vector getSelfSubscribingGroupsForNewUser(TSContext context, Organization org, AttributeRightsCollection attribs) throws SmApiException
Retrieves the self-subscribing groups available to a new user in the specified organization -- attribute permissions are included in the returned objects.
This method is useful during a self-subscription operation. Pass in the organization where the user will be created, and the method returns the groups to which the user can self-subscribe.
context
- Context information for the current task session.org
- The organization to search.attribs
- A collection of AttributeRight
objects, each containing an attribute name and a permission request.
attribs
and their
associated permissions.
SmApiException
java.util.Vector getGroupsAdminCanAssign(TSContext context, Organization searchTop, SearchDepthType searchDepth, AttributeRightsCollection attribs) throws SmApiException
Retrieves the groups in the specified organization(s) for which the current user is an administrator.
context
- Context information about the current task, such as the user
who is executing the task.searchTop
- The organization to search.searchDepth
- Indicates whether to search just the specified organization
or also its children.attribs
- A collection of AttributeRight
objects, each containing an attribute name and a permission request.
attribs
and the associated permissions
SmApiException
java.util.Vector findGroupsInScope(TSContext tsCtx, GroupFilter gf, OrgScopeConstraint orgs, AttributeRightsCollection attrs) throws SmApiException
Retrieves the groups within the current task that match the specified search criteria.
tsCtx
- Context information about the current task, such as the user
who is executing the task.gf
- Attribute filter for the search. If no filter is specified,
all groups matching the other criteria will be returned.orgs
- Organization scope to search. If no constraint is specified,
the search will occur within all organizations in the task context.attrs
- A collection of AttributeRight
objects, each containing an attribute name and a permission request.
attrs
and the associated permissions.
SmApiException
|
Java SDK r12.5 SP 8 06/13/2011 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |