|
Java SDK r12.5 SP 8 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserProvider
Lets you create or retrieve user objects in the current Identity Manager environment.
This and all Identity Manager providers are retrieved throughProviderAccessor
.
Organization
object's generic methods to access
the users 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
.
UserProvider
are accessed for reading purposes only. However, on occassion, business logic task handlers
and event listeners may need to modify objects retrieved through
UserProvider
.
UserProvider
, 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 | |
---|---|
User |
createUser(Organization org,
java.util.Hashtable attribs)
Creates a user object within the specified organization. |
User |
createUser(Organization org,
java.util.Hashtable attribs,
AttributeRightsCollection permissions)
Creates a user object within the specified organization, including permission requests for the object's attributes. |
User |
disambiguateUser(java.lang.String name,
java.util.Enumeration attributes)
Disambiguate the specified user object and attributes from the current Identity Manager environment. |
User |
findUser(java.lang.String name,
java.util.Enumeration attributes)
Retrieves the specified user object and attributes from the current Identity Manager environment. |
User |
findUser(TSContext context,
java.lang.String name,
AttributeRightsCollection attributes)
Retrieves the specified user object and attributes from the current Identity Manager environment, and includes permissions for the specified attributes. |
User |
findUser(TSContext context,
java.lang.String name,
AttributeRightsCollection attributes,
boolean defaultAttrs)
Retrieves the specified user object, the specified object attributes, and optionally, the object's default attributes from the current Identity Manager environment, and includes the appropriate attribute permissions. |
boolean |
findUserDuplicate(java.lang.String name)
Retrieves the specified user object and attributes from the current Identity Manager environment.It will search user with IME's referencing the same user directory but using different object classes also. |
java.util.Vector<User> |
findUsers(UserFilter uf,
OrgMembershipConstraint orgs,
AttributeRightsCollection attrs)
Retrieves the users matching an attribute filter and an organization membership constraint. |
|
findUsersInScope(SearchContext searchContext)
|
java.util.Vector<User> |
findUsersInScope(TSContext tsCtx,
UserFilter uf,
OrgScopeConstraint orgs,
AttributeRightsCollection attrs)
Deprecated. |
java.util.Vector<User> |
findUsersInScope(TSContext tsCtx,
UserFilter uf,
OrgScopeConstraint orgs,
AttributeRightsCollection attrs,
ObjectType scopingType)
Deprecated. Deprecated in Identity Manager 8.1. Use findUsersInScope() , which omits scopingType . |
User |
getUserFromSMTOKEN(java.lang.String smtoken,
java.util.Enumeration attribs)
Retrieves the user from an encrypted SMTOKEN with the specified attributes. |
java.util.Vector<User> |
getUsersInOrg(Organization org,
SearchDepthType searchDepth,
java.util.Enumeration attributes)
Retrieves all user objects in the specified organization(s). |
java.util.Vector<User> |
getUsersInOrg(Organization org,
SearchDepthType searchDepth,
java.util.Enumeration attributes,
AdminTask task,
User admin)
Deprecated. Deprecated in IdentityMinder 6.0 Use the getUsersInOrg() version containing TSContext . |
java.util.Vector<User> |
getUsersInOrg(TSContext context,
Organization org,
SearchDepthType searchDepth,
AttributeRightsCollection attributes)
Retrieves all user objects in the specified organization(s) -- attribute permissions are included in the returned objects. |
java.util.Vector<User> |
searchOrgForUsers(Organization org,
java.util.Vector filter,
ConjunctionType conj,
SearchDepthType searchDepth,
java.util.Enumeration attributes)
Deprecated. |
java.util.Vector<User> |
searchOrgForUsers(Organization org,
java.util.Vector filter,
ConjunctionType conj,
SearchDepthType searchDepth,
java.util.Enumeration attributes,
AdminTask task,
User admin)
Searches for users within the specified organization(s). |
java.util.Vector<User> |
searchOrgForUsers(Organization org,
java.util.Vector filter,
SearchDepthType searchDepth,
java.util.Enumeration attributes)
Deprecated. Deprecated in IdentityMinder 6.0. Use searchOrgForUsers() containing ConjunctionType . |
java.util.Vector<User> |
searchOrgForUsers(Organization org,
java.util.Vector filter,
SearchDepthType searchDepth,
java.util.Enumeration attributes,
AdminTask task,
User admin)
Deprecated. Deprecated in IdentityMinder 6.0 Use searchOrgForUsers() containing ConjunctionType . |
|
searchOrgForUsers(SearchContext searchContext)
|
java.util.Vector<User> |
searchOrgForUsers(TSContext context,
Organization org,
java.util.Vector filter,
ConjunctionType conj,
SearchDepthType searchDepth,
AttributeRightsCollection attributes,
AdminTask task,
User admin)
Searches for organizations within the specified organization(s) -- attribute permissions are included in the returned objects. |
Method Detail |
---|
User disambiguateUser(java.lang.String name, java.util.Enumeration attributes) throws SmApiException, NoSuchObjectException
Disambiguate the specified user object and attributes from the current Identity Manager environment.
name
- The friendly name of the user to retrieve.attributes
- 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.
attributes
.
NoSuchObjectException
- if the object cannot be found.
SmApiException
- For more general problems with the execution of the callUser findUser(java.lang.String name, java.util.Enumeration attributes) throws SmApiException, NoSuchObjectException
Retrieves the specified user object and attributes from the current Identity Manager environment.
name
- The name of the user to retrieve. The name can be a
unique name or a friendly name.attributes
- 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.
attributes
.
NoSuchObjectException
- if the object cannot be found.
SmApiException
- For more general problems with the execution of the callUser findUser(TSContext context, java.lang.String name, AttributeRightsCollection attributes) throws SmApiException, NoSuchObjectException
Retrieves the specified user 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 user to retrieve. The name can be a
unique name or a friendly name.attributes
- A collection of AttributeRight
objects, each containing an attribute name and a permission request.
attributes
and the associated permissions.
NoSuchObjectException
- if the object cannot be found.
SmApiException
- For more general problems with the execution of the callUser findUser(TSContext context, java.lang.String name, AttributeRightsCollection attributes, boolean defaultAttrs) throws SmApiException, NoSuchObjectException
Retrieves the specified user object, the specified object attributes, and optionally, the object's default attributes from the current Identity Manager environment, and includes the appropriate attribute permissions.
context
- Context information for the current task session.name
- The name of the user to retrieve. The name can be a
unique name or a friendly name.attributes
- A collection of AttributeRight
objects, each containing an attribute name and a permission request.defaultAttrs
- If true
, the default attributes defined for a User managed
object are included in the returned user object. READONLY permission
is requested for all default attributes. However, if a default attribute
is specified in attributes
, the associated permission
specified in attributes
remains the requested permission.
attributes
, the default attributes, if requested,
and the appropriate attribute permissions.
com.netegrity.llsdk6.imsapi.exception.NoSuchObjectException
- if the object cannot be found
com.netegrity.sdk.apiutil.SmApiException
- For more general problems with the execution of the call
SmApiException
NoSuchObjectException
java.util.Vector<User> findUsers(UserFilter uf, OrgMembershipConstraint orgs, AttributeRightsCollection attrs) throws SmApiException
Retrieves the users matching an attribute filter and an organization membership constraint.
uf
- Attribute filter for the search. If no filter is specified, all users in the
specified organization scope 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
User createUser(Organization org, java.util.Hashtable attribs) throws SmApiException
Creates a user object within the specified organization.
This method is a specialization ofOrganization.createManagedObject()
.
org
- The organization where the user is being created.attribs
- Seed attributes to include in the user object.
SmApiException
User createUser(Organization org, java.util.Hashtable attribs, AttributeRightsCollection permissions) throws SmApiException
Creates a user 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 user is being created.attribs
- Seed attributes to include in the user object.permissions
- A collection of AttributeRight
objects, each containing an attribute name and a permission request.
SmApiException
java.util.Vector<User> getUsersInOrg(Organization org, SearchDepthType searchDepth, java.util.Enumeration attributes) throws SmApiException
Retrieves all user 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.attributes
- 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.
attributes
.
SmApiException
java.util.Vector<User> getUsersInOrg(TSContext context, Organization org, SearchDepthType searchDepth, AttributeRightsCollection attributes) throws SmApiException
Retrieves all user 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.attributes
- A collection of AttributeRight
objects, each containing an attribute name and a permission request.
attributes
and the associated permissions.
SmApiException
java.util.Vector<User> getUsersInOrg(Organization org, SearchDepthType searchDepth, java.util.Enumeration attributes, AdminTask task, User admin) throws SmApiException
getUsersInOrg()
version containing TSContext
.
Retrieves all user 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.attributes
- 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.task
- The task currently being executed.admin
- The admin executing the task.
attributes
.
SmApiException
java.util.Vector<User> searchOrgForUsers(Organization org, java.util.Vector filter, SearchDepthType searchDepth, java.util.Enumeration attributes) throws SmApiException
searchOrgForUsers()
containing ConjunctionType
.
Searches for users 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.attributes
- 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<User> searchOrgForUsers(Organization org, java.util.Vector filter, SearchDepthType searchDepth, java.util.Enumeration attributes, AdminTask task, User admin) throws SmApiException
searchOrgForUsers()
containing ConjunctionType
.
Searches for users 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.attributes
- 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.task
- The task currently being executed.admin
- The admin executing the task.
SmApiException
java.util.Vector<User> searchOrgForUsers(TSContext context, Organization org, java.util.Vector filter, ConjunctionType conj, SearchDepthType searchDepth, AttributeRightsCollection attributes, AdminTask task, User admin) throws SmApiException
Searches for organizations 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.attributes
- A collection of AttributeRight
task
- The task currently being executed.admin
- The admin executing the task.
SmApiException
java.util.Vector<User> searchOrgForUsers(Organization org, java.util.Vector filter, ConjunctionType conj, SearchDepthType searchDepth, java.util.Enumeration attributes) throws SmApiException
Searches for users 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.attributes
- 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
searchOrgForUsers(SearchContext searchContext) throws SmApiException
SmApiException
java.util.Vector<User> searchOrgForUsers(Organization org, java.util.Vector filter, ConjunctionType conj, SearchDepthType searchDepth, java.util.Enumeration attributes, AdminTask task, User admin) throws SmApiException
Searches for users 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.attributes
- 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.task
- The task currently being executed.admin
- The admin executing the task.
SmApiException
java.util.Vector<User> findUsersInScope(TSContext tsCtx, UserFilter uf, OrgScopeConstraint orgs, AttributeRightsCollection attrs) throws SmApiException
Retrieves the users 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.uf
- Attribute filter for the search. If no filter is specified,
all users 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
findUsersInScope(SearchContext searchContext) throws SmApiException
SmApiException
java.util.Vector<User> findUsersInScope(TSContext tsCtx, UserFilter uf, OrgScopeConstraint orgs, AttributeRightsCollection attrs, ObjectType scopingType) throws SmApiException
findUsersInScope()
, which omits scopingType
.
Retrieves the users 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.uf
- Attribute filter for the search. If no filter is specified,
all users 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.scopingType
-
attrs
and the associated permissions.
SmApiException
boolean findUserDuplicate(java.lang.String name) throws SmApiException
Retrieves the specified user object and attributes from the current Identity Manager environment.It will search user with IME's referencing the same user directory but using different object classes also.
name
- The name of the user to retrieve. The name can be a
unique name or a friendly name.
true
if found, otherwise false.
NoSuchObjectException
- if the object cannot be found.
SmApiException
- For more general problems with the execution of the callUser getUserFromSMTOKEN(java.lang.String smtoken, java.util.Enumeration attribs) throws SmApiException, NoSuchObjectException
Retrieves the user from an encrypted SMTOKEN with the specified attributes. The encrypted SMTOKEN comes from SiteMinder Password Services.
smtoken
- The encrypted SMTOKEN from SiteMinder Password Services.attributes
- 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.
attributes
and the associated permissions.
NoSuchObjectException
- if the object cannot be found.
SmApiException
- For more general problems with the execution of the call
|
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 |