|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The PeopleContainer
interface provides methods to manage
people container
Fields inherited from interface com.iplanet.am.sdk.AMObject |
ASSIGNABLE_DYNAMIC_GROUP, DYNAMIC_GROUP, FILTERED_ROLE, GROUP, GROUP_CONTAINER, GROUP_PROFILE, MANAGED_ROLE, ORGANIZATION, ORGANIZATIONAL_UNIT, PEOPLE_CONTAINER, POLICY, ROLE, ROLE_PROFILE, SERVICE, STATIC_GROUP, TEMPLATE, UNKNOWN_OBJECT_TYPE, USER |
Fields inherited from interface com.iplanet.am.sdk.AMConstants |
SCOPE_BASE, SCOPE_ONE, SCOPE_SUB, SUBSCRIBABLE_ATTRIBUTE, UNIQUE_MEMBER_ATTRIBUTE |
Method Summary | |
java.util.Set |
createSubPeopleContainers(java.util.Map peopleContainers)
Creates sub people containers and initializes their attributes. |
java.util.Set |
createSubPeopleContainers(java.util.Set peopleContainersNames)
Creates sub PeopleContainers in this people container. |
java.util.Set |
createUsers(java.util.Map users)
Creates users and initializes their attributes. |
java.util.Set |
createUsers(java.util.Map users,
java.util.Set serviceNames)
Creates users and initializes their attributes. |
java.util.Set |
createUsers(java.util.Set users)
Creates users in this people container. |
void |
deleteSubPeopleContainers(java.util.Set peopleContainers)
Deletes sub people containers in this people container. |
void |
deleteUsers(java.util.Set users)
Deletes users from this people container. |
long |
getNumberOfSubPeopleContainers()
Gets number of sub peoople containers in the people container. |
long |
getNumberOfUsers()
Gets number of users in the people container. |
java.util.Set |
getSubPeopleContainerDNs(int level)
Gets the sub containers in this people container. |
java.util.Set |
getUserDNs()
Gets the names (DNs) of users in the people container. |
java.util.Set |
searchSubPeopleContainers(java.lang.String wildcard,
int level)
Searches for sub people containers in this people container using wildcards and attribute values. |
java.util.Set |
searchSubPeopleContainers(java.lang.String wildcard,
java.util.Map avPairs,
int level)
Searches for sub people containers in this people container using wildcards and attribute values. |
AMSearchResults |
searchUsers(com.iplanet.am.sdk.AMSearchControl searchControl,
java.lang.String avfilter)
Searches for users in this people container using attribute values. |
AMSearchResults |
searchUsers(java.lang.String wildcard,
com.iplanet.am.sdk.AMSearchControl searchControl)
Searches for users in this people container using wildcards and attribute values. |
AMSearchResults |
searchUsers(java.lang.String wildcard,
com.iplanet.am.sdk.AMSearchControl searchControl,
java.lang.String avfilter)
Searches for users in this people container using wildcards and attribute values. |
java.util.Set |
searchUsers(java.lang.String wildcard,
int level)
Searches for users in this people container using wildcards and attribute values. |
AMSearchResults |
searchUsers(java.lang.String wildcard,
java.util.Map avPairs,
com.iplanet.am.sdk.AMSearchControl searchControl)
Searches for users in this group using wildcards and attribute values. |
java.util.Set |
searchUsers(java.lang.String wildcard,
java.util.Map avPairs,
int level)
Searches for users in this group using wildcards and attribute values. |
Methods inherited from interface com.iplanet.am.sdk.AMObject |
addEventListener, assignPolicies, createPolicyTemplate, createPolicyTemplate, createTemplate, createTemplate, delete, delete, getAttribute, getAttributeByteArray, getAttributes, getAttributes, getAttributesByteArray, getAttributesByteArray, getDN, getOrganizationDN, getParentDN, getPolicy, getPolicyTemplate, getServiceAttributes, getStringAttribute, getTemplate, isExists, removeAttributes, removeEventListener, search, setAttributes, setStringAttribute, store, unassignPolicies |
Method Detail |
public java.util.Set createUsers(java.util.Set users) throws AMException, SSOException
iplanet-am-required-services
of the service
iPlanetAMAdminConsoleService
template are added. If a
corresponding template does not exist, the default values are picked up
from schema.users
- The set of user names to be created in this people
container.AMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic java.util.Set createUsers(java.util.Map users) throws AMException, SSOException
iplanet-am-required-services
of the service
iPlanetAMAdminConsoleService
template are added. If a
corresponding template does not exist, the default values are picked up
from schema.users
- Map where the key is the name of the user, and the value is
a Map to represent Attribute-Value PairsAMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic java.util.Set createUsers(java.util.Map users, java.util.Set serviceNames) throws AMException, SSOException
users
- Map where the key is the name of the user, and the value is
a Map to represent Attribute-Value PairsserviceNames
- Set of service names assigned to the users where the key is the name of the user, and the value is
a Map to represent Attribute-Value PairsAMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic void deleteUsers(java.util.Set users) throws AMException, SSOException
users
- The set of user DN's to be deleted from the people
container.AMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic long getNumberOfUsers() throws AMException, SSOException
AMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic java.util.Set getUserDNs() throws AMException, SSOException
AMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic java.util.Set createSubPeopleContainers(java.util.Set peopleContainersNames) throws AMException, SSOException
peopleContainers
- The set of peopleContainer names to be created
in this people container.AMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic java.util.Set createSubPeopleContainers(java.util.Map peopleContainers) throws AMException, SSOException
users
- Map where the key is the name of the people container, and
the value is a Map to represent Attribute-Value PairsSet
- Set of PeopleContainer objects created.AMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic java.util.Set getSubPeopleContainerDNs(int level) throws AMException, SSOException
level
- the level(SCOPE_ONE or SCOPE_TREE) for returning subcontainersAMException
- if an error is encountered when trying to
access/retrieve data from the data store
if the level is invalidSSOException
- if the sign on is no longer validpublic long getNumberOfSubPeopleContainers() throws AMException, SSOException
AMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic void deleteSubPeopleContainers(java.util.Set peopleContainers) throws AMException, SSOException
peopleContainers
- The set of container DN's to be deleted from the
people container.AMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic java.util.Set searchUsers(java.lang.String wildcard, int level) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchlevel
- the search level that needs to be used
(AMConstants.SCOPE_ONE or AMConstants.SCOPE_TREE)AMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic AMSearchResults searchUsers(java.lang.String wildcard, com.iplanet.am.sdk.AMSearchControl searchControl) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchsearchControl
- specifies the search scope to be used, VLV
ranges etc.,AMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic java.util.Set searchUsers(java.lang.String wildcard, java.util.Map avPairs, int level) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchavPairs
- attribute-value pairs to match when searching userslevel
- the search level that needs to be used
(AMConstants.SCOPE_ONE or AMConstants.SCOPE_TREE)AMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic AMSearchResults searchUsers(java.lang.String wildcard, java.util.Map avPairs, com.iplanet.am.sdk.AMSearchControl searchControl) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchavPairs
- attribute-value pairs to match when searching userssearchControl
- specifies the search scope to be used, VLV
ranges etc.,AMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic AMSearchResults searchUsers(java.lang.String wildcard, com.iplanet.am.sdk.AMSearchControl searchControl, java.lang.String avfilter) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchsearchControl
- specifies the search scope to be used, VLV
ranges etc.,avfilter
- this attribute-value pairs filter will be & with user
search filterAMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic AMSearchResults searchUsers(com.iplanet.am.sdk.AMSearchControl searchControl, java.lang.String avfilter) throws AMException, SSOException
searchControl
- specifies the search scope to be used, VLV
ranges etc.,avfilter
- this attribute-value pairs filter will be & with user
search filterAMException
- if there is an internal error in the AM StoreSSOException
- if the sign on is no longer validpublic java.util.Set searchSubPeopleContainers(java.lang.String wildcard, int level) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchlevel
- the search level that needs to be used
(AMConstants.SCOPE_ONE or AMConstants.SCOPE_TREE)AMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic java.util.Set searchSubPeopleContainers(java.lang.String wildcard, java.util.Map avPairs, int level) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchavPairs
- attribute-value pairs to match when searching people
Containerslevel
- the search level that needs to be used
(AMConstants.SCOPE_ONE or AMConstants.SCOPE_TREE)AMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer valid
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |