|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides methods to manage organization.
AMOrganization
objects can be obtained by using
AMStoreConnection
.
A handle to this object can be obtained by using the DN of the object.
AMStoreConnection amsc = new AMStoreConnection(ssotoken); if (amsc.doesEntryExist(oDN)) { AMOrganization org = amsc.getOrganization(oDN); }
Fields inherited from interface com.iplanet.am.sdk.AMObject |
ACTIVE, ACTIVE_VALUE, ASSIGNABLE_DYNAMIC_GROUP, DELETED, DELETED_VALUE, DYNAMIC_GROUP, FILTERED_ROLE, GROUP, GROUP_CONTAINER, GROUP_PROFILE, INACTIVE, INACTIVE_VALUE, MANAGED_ROLE, ORGANIZATION, ORGANIZATIONAL_UNIT, PEOPLE_CONTAINER, POLICY, RESOURCE, ROLE, ROLE_PROFILE, SERVICE, STATIC_GROUP, TEMPLATE, UNDETERMINED_OBJECT_TYPE, UNKNOWN_OBJECT_TYPE, USER |
Method Summary | |
AMGroup |
createAssignableDynamicGroup(java.lang.String name,
java.util.Map attributes,
java.util.Map serviceNameAndAttrs)
Creates assignable dynamic group. |
java.util.Set |
createAssignableDynamicGroups(java.util.Set assignableDynamicGroups)
Creates assignable dynamic groups. |
AMGroup |
createDynamicGroup(java.lang.String name,
java.util.Map attributes,
java.util.Map serviceNameAndAttrs)
Creates dynamic group. |
java.util.Set |
createDynamicGroups(java.util.Map dynamicGroups)
Creates dynamic groups and initializes their attributes. |
java.util.Set |
createFilteredRoles(java.util.Map roles)
Creates filtered roles. |
java.util.Set |
createFilteredRoles(java.util.Set roles)
Creates filtered roles. |
java.util.Set |
createGroupContainers(java.util.Map groupContainers)
Creates group containers and initializes their attributes. |
java.util.Set |
createGroupContainers(java.util.Set groupContainers)
Creates group containers. |
java.lang.String |
createOrganization(java.lang.String orgName,
java.lang.String domainName,
java.util.Map attrMap,
java.util.Map serviceNamesAndAttrs)
Create sub-organizations and initializes their attributes. |
java.util.Set |
createOrganizationalUnits(java.util.Map organizationalUnits)
Creates organizational units and initializes their attributes. |
java.util.Set |
createOrganizationalUnits(java.util.Set organizationalUnits)
Creates organizational units. |
java.util.Set |
createPeopleContainers(java.util.Map peopleContainers)
Creates people containers and initializes their attributes. |
java.util.Set |
createPeopleContainers(java.util.Set peopleContainers)
Creates people containers. |
java.util.Set |
createRoles(java.util.Map roles)
Creates roles. |
java.util.Set |
createRoles(java.util.Set roles)
Creates roles. |
AMGroup |
createStaticGroup(java.lang.String name,
java.util.Map attributes,
java.util.Map serviceNameAndAttrs)
Creates static group. |
java.util.Set |
createStaticGroups(java.util.Set groups)
Creates static groups. |
java.util.Set |
createSubOrganizations(java.util.Map subOrganizations)
Creates sub-organizations and initializes their attributes. |
java.util.Set |
createSubOrganizations(java.util.Set subOrganizations)
Creates sub-organizations. |
AMUser |
createUser(java.lang.String uid,
java.util.Map attrMap,
java.util.Map serviceNameAndAttrs)
Create user and initializes the attributes. |
java.util.Set |
createUsers(java.util.Map users)
Creates users and initializes their attributes. |
java.util.Set |
createUsers(java.util.Set users)
Creates users in this organization. |
boolean |
deleteAllNamedPolicyTemplates(java.lang.String policyDN)
Deletes all the named policy templates for this Organization corresponding to the given policy. |
void |
deleteAssignableDynamicGroups(java.util.Set assignableDynamicGroups)
Deletes assignable dynamic groups. |
void |
deleteDynamicGroups(java.util.Set dynamicGroups)
Deletes dynamic groups. |
void |
deleteFilteredRoles(java.util.Set roles)
Deletes filtered roles. |
void |
deleteGroupContainers(java.util.Set groupContainers)
Deletes group containers. |
void |
deleteOrganizationalUnits(java.util.Set organizationalUnits)
Deletes organizational units |
void |
deletePeopleContainers(java.util.Set peopleContainers)
Deletes people containers. |
void |
deleteRoles(java.util.Set roles)
Deletes roles. |
void |
deleteStaticGroups(java.util.Set groups)
Deletes static groups. |
void |
deleteSubOrganizations(java.util.Set subOrganizations)
Deletes suborganizations |
void |
deleteUsers(java.util.Set users)
Deletes users from this organization. |
java.util.Set |
getAssignableDynamicGroups(int level)
Gets the assignable dynamic groups within the specified level. |
java.util.Set |
getAssignedPolicyDNs()
Gets all the assigned policies for this Organization |
java.util.Set |
getDynamicGroups(int level)
Gets the dynamic groups within the specified level. |
java.util.Set |
getFilteredRoles(int level)
Gets the filtered roles within the specified level. |
java.util.Set |
getGroupContainers(int level)
Gets the group containers within the specified level. |
long |
getNumberOfAssignableDynamicGroups(int level)
Gets number of assignable dynamic groups within the specified level. |
long |
getNumberOfDynamicGroups(int level)
Gets number of dynamic groups within the specified level. |
long |
getNumberOfFilteredRoles(int level)
Gets number of filtered roles within the specified level. |
long |
getNumberOfGroupContainers(int level)
Gets number of group containers within the specified level. |
long |
getNumberOfOrganizationalUnits(int level)
Gets number of organizational units within the specified level. |
long |
getNumberOfPeopleContainers(int level)
Gets number of people containers within the specified level. |
long |
getNumberOfRoles(int level)
Gets number of roles within the specified level. |
long |
getNumberOfServices()
Gets the number of services. |
long |
getNumberOfStaticGroups(int level)
Gets number of static groups within the specified level. |
long |
getNumberOfSubOrganizations(int level)
Gets number of suborganizations within the specified level. |
long |
getNumberOfUsers(int level)
Gets number of users within the specified level. |
AMOrganizationalUnit |
getOrganizationalUnit(java.lang.String dn)
Gets the organizational unit by DN |
java.util.Set |
getOrganizationalUnits(int level)
Gets the organizational units within the specified level. |
java.util.Set |
getPeopleContainers(int level)
Gets the people containers within the specified level. |
java.util.Set |
getRegisteredServiceNames()
Gets the names of registered services. |
java.util.Set |
getRoles(int level)
Gets the roles within the specified level. |
java.util.Set |
getStaticGroups(int level)
Gets the static groups within the specified level. |
AMOrganization |
getSubOrganization(java.lang.String dn)
Gets the sub-organization by DN |
java.util.Set |
getSubOrganizations(int level)
Gets the suborganizations within the specified level. |
AMUser |
getUser(java.lang.String uid,
java.lang.String userSearchTemplate)
Returns AMUser object of user in this organization (or in subrogs), whose naming attribute exactly matches with uid. |
java.util.Set |
getUserDNs()
Gets the names (DNs) of users in the organization. |
boolean |
isPolicyAssigned(java.lang.String policyDN,
java.lang.String serviceName)
Checks if a policyDN is assigned to an org or a role. |
void |
modifyAllPolicyTemplates(java.lang.String serviceName,
java.util.Set policyDNs)
Modifies all the templates under this organization that contain any policyDN in given policyDNs. |
boolean |
orgTemplateExists(java.lang.String serviceName)
Checks if an org template exists for the service. |
void |
registerService(java.lang.String serviceName,
boolean createTemplate,
boolean activate)
Register a service for this organization. |
AMSearchResults |
searchAllRoles(java.lang.String wildcard,
AMSearchControl searchControl)
Searches for all roles in this organization using wildcards. |
java.util.Set |
searchAllRoles(java.lang.String wildcard,
int level)
Searches for all roles in this organization using wildcards. |
AMSearchResults |
searchAllRoles(java.lang.String wildcard,
java.util.Map avPairs,
AMSearchControl searchControl)
Searches for all roles in this organization using wildcards and attribute values. |
java.util.Set |
searchAllRoles(java.lang.String wildcard,
java.util.Map avPairs,
int level)
Searches for all roles in this organization using wildcards and attribute values. |
AMSearchResults |
searchAssignableDynamicGroups(java.lang.String wildcard,
AMSearchControl searchControl)
Searches for assignable dynamic groups in this organization using wildcards. |
java.util.Set |
searchAssignableDynamicGroups(java.lang.String wildcard,
int level)
Searches for assignable dynamic groups in this organization using wildcards. |
java.util.Set |
searchAssignableDynamicGroups(java.lang.String wildcard,
int level,
java.lang.String groupSearchTemplate,
java.util.Map avPairs)
Searches for assignable dynamic groups in this organization using wildcards. |
AMSearchResults |
searchAssignableDynamicGroups(java.lang.String wildcard,
java.util.Map avPairs,
AMSearchControl searchControl)
Searches for assignable dynamic groups in this organization using wildcards and attribute values. |
java.util.Set |
searchAssignableDynamicGroups(java.lang.String wildcard,
java.util.Map avPairs,
int level)
Searches for assignable dynamic groups in this organization using wildcards and attribute values. |
AMSearchResults |
searchAssignableDynamicGroups(java.lang.String wildcard,
java.util.Map avPairs,
java.lang.String groupSearchTemplate,
AMSearchControl searchControl)
Searches for assignable dynamic groups in this organization using wildcards and attribute values. |
AMSearchResults |
searchDynamicGroups(java.lang.String wildcard,
AMSearchControl searchControl)
Searches for dynamic groups in this organization using wildcards. |
java.util.Set |
searchDynamicGroups(java.lang.String wildcard,
int level)
Searches for dynamic groups in this organization using wildcards. |
java.util.Set |
searchDynamicGroups(java.lang.String wildcard,
int level,
java.lang.String groupSearchTemplate,
java.util.Map avPairs)
Searches for dynamic groups in this organization using wildcards. |
AMSearchResults |
searchDynamicGroups(java.lang.String wildcard,
java.util.Map avPairs,
AMSearchControl searchControl)
Searches for dynamic groups in this organization using wildcards and attribute values. |
java.util.Set |
searchDynamicGroups(java.lang.String wildcard,
java.util.Map avPairs,
int level)
Searches for dynamic groups in this organization using wildcards and attribute values. |
AMSearchResults |
searchDynamicGroups(java.lang.String wildcard,
java.util.Map avPairs,
java.lang.String groupSearchTemplate,
AMSearchControl searchControl)
Searches for dynamic groups in this organization using wildcards and attribute values. |
AMSearchResults |
searchFilteredRoles(java.lang.String wildcard,
AMSearchControl searchControl)
Searches for filtered roles in this organization using wildcards. |
java.util.Set |
searchFilteredRoles(java.lang.String wildcard,
int level)
Searches for filtered roles in this organization using wildcards. |
AMSearchResults |
searchFilteredRoles(java.lang.String wildcard,
java.util.Map avPairs,
AMSearchControl searchControl)
Searches for filtered roles in this organization using wildcards and attribute values. |
java.util.Set |
searchFilteredRoles(java.lang.String wildcard,
java.util.Map avPairs,
int level)
Searches for filtered roles in this organization using wildcards and attribute values. |
AMSearchResults |
searchGroupContainers(java.lang.String wildcard,
java.util.Map avPairs,
AMSearchControl searchControl)
Searches for group containers in this organization using wildcards and attribute values. |
java.util.Set |
searchGroupContainers(java.lang.String wildcard,
java.util.Map avPairs,
int level)
Searches for group containers in this organization using wildcards and attribute values. |
AMSearchResults |
searchGroups(java.lang.String wildcard,
java.util.Map avPairs,
AMSearchControl searchControl)
Searches for groups in this organization using wildcards and attribute values. |
java.util.Set |
searchGroups(java.lang.String wildcard,
java.util.Map avPairs,
int level)
Searches for groups in this organization using wildcards and attribute values. |
AMSearchResults |
searchOrganizationalUnits(java.lang.String wildcard,
AMSearchControl searchControl)
Searches for organizational units in this organization using wildcards. |
java.util.Set |
searchOrganizationalUnits(java.lang.String wildcard,
int level)
Searches for organizational units in this organization using wildcards. |
AMSearchResults |
searchOrganizationalUnits(java.lang.String wildcard,
java.util.Map avPairs,
AMSearchControl searchControl)
Searches for organizational units in this organization using wildcards and attribute values. |
java.util.Set |
searchOrganizationalUnits(java.lang.String wildcard,
java.util.Map avPairs,
int level)
Searches for organizational units in this organization using wildcards and attribute values. |
AMSearchResults |
searchPeopleContainers(java.lang.String wildcard,
AMSearchControl searchControl)
Searches for people containers in this organization using wildcards and attribute values. |
java.util.Set |
searchPeopleContainers(java.lang.String wildcard,
int level)
Searches for people containers in this organization using wildcards and attribute values. |
AMSearchResults |
searchPeopleContainers(java.lang.String wildcard,
java.util.Map avPairs,
AMSearchControl searchControl)
Searches for people containers in this organization using wildcards and attribute values. |
java.util.Set |
searchPeopleContainers(java.lang.String wildcard,
java.util.Map avPairs,
int level)
Searches for people containers in this organization using wildcards and attribute values. |
AMSearchResults |
searchRoles(java.lang.String wildcard,
AMSearchControl searchControl)
Searches for roles in this organization using wildcards. |
java.util.Set |
searchRoles(java.lang.String wildcard,
int level)
Searches for roles in this organization using wildcards. |
AMSearchResults |
searchRoles(java.lang.String wildcard,
java.util.Map avPairs,
AMSearchControl searchControl)
Searches for roles in this organization using wildcards and attribute values. |
java.util.Set |
searchRoles(java.lang.String wildcard,
java.util.Map avPairs,
int level)
Searches for roles in this organization using wildcards and attribute values. |
AMSearchResults |
searchStaticGroups(java.lang.String wildcard,
AMSearchControl searchControl)
Searches for static groups in this organization using wildcards. |
java.util.Set |
searchStaticGroups(java.lang.String wildcard,
int level)
Searches for static groups in this organization using wildcards. |
java.util.Set |
searchStaticGroups(java.lang.String wildcard,
int level,
java.lang.String groupSearchTemplate,
java.util.Map avPairs)
Searches for static groups in this organization using wildcards. |
AMSearchResults |
searchStaticGroups(java.lang.String wildcard,
java.util.Map avPairs,
AMSearchControl searchControl)
Searches for static groups in this organization using wildcards and attribute values. |
java.util.Set |
searchStaticGroups(java.lang.String wildcard,
java.util.Map avPairs,
int level)
Searches for static groups in this organization using wildcards and attribute values. |
AMSearchResults |
searchStaticGroups(java.lang.String wildcard,
java.util.Map avPairs,
java.lang.String groupSearchTemplate,
AMSearchControl searchControl)
Searches for static groups in this organization using wildcards and attribute values. |
AMSearchResults |
searchSubOrganizations(java.lang.String wildcard,
AMSearchControl searchControl)
Searches for sub organizations in this organization using wildcards. |
java.util.Set |
searchSubOrganizations(java.lang.String wildcard,
int level)
Searches for sub organizations in this organization using wildcards. |
AMSearchResults |
searchSubOrganizations(java.lang.String wildcard,
java.util.Map avPairs,
AMSearchControl searchControl)
Searches for sub organizations in this organization using wildcards and attribute values. |
java.util.Set |
searchSubOrganizations(java.lang.String wildcard,
java.util.Map avPairs,
int level)
Searches for sub organizations in this organization using wildcards and attribute values. |
AMSearchResults |
searchUsers(AMSearchControl searchControl,
java.lang.String avfilter)
Searches for users in this organization using attribute values. |
AMSearchResults |
searchUsers(java.lang.String wildcard,
AMSearchControl searchControl)
Searches for users in this organization using wildcards and attribute values. |
AMSearchResults |
searchUsers(java.lang.String wildcard,
AMSearchControl searchControl,
java.lang.String avfilter)
Searches for users in this organization using wildcards and attribute values. |
java.util.Set |
searchUsers(java.lang.String wildcard,
int level)
Searches for users in this organization using wildcards and attribute values. |
java.util.Set |
searchUsers(java.lang.String wildcard,
int level,
java.lang.String userSearchTemplate,
java.util.Map avPairs)
Searches for users in this organization using wildcards and attribute values. |
AMSearchResults |
searchUsers(java.lang.String wildcard,
java.util.Map avPairs,
AMSearchControl searchControl)
Searches for users in this organization using wildcards and attribute values. |
java.util.Set |
searchUsers(java.lang.String wildcard,
java.util.Map avPairs,
int level)
Searches for users in this organization using wildcards and attribute values. |
AMSearchResults |
searchUsers(java.lang.String wildcard,
java.util.Map avPairs,
java.lang.String userSearchTemplate,
AMSearchControl searchControl)
Searches for users in this organization using wildcards and attribute values. |
void |
unassignAllPolicies(java.lang.String serviceName,
java.util.Set policyDNs)
Unassigns the given policies from this organization and its roles. |
void |
unassignServices(java.util.Set serviceNames)
Unassigns services from the organization. |
void |
unregisterService(java.lang.String serviceName)
Unregister a service for this organization. |
Method Detail |
public java.util.Set createSubOrganizations(java.util.Set subOrganizations) throws AMException, SSOException
subOrganizations
- The set of sub-organizations names to be 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 createSubOrganizations(java.util.Map subOrganizations) throws AMException, SSOException
subOrganizations
- Map where the key is the name of the
suborganization, 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.lang.String createOrganization(java.lang.String orgName, java.lang.String domainName, java.util.Map attrMap, java.util.Map serviceNamesAndAttrs) throws AMException, SSOException
serviceNameAndAttrs
map.orgName
- name of organization to be created under this
organization.domainname
- name of the domain (ex: sun.com, iplanet.com).attrMap
- Map of attribute-value pairs to be set on the entry.serviceNamesAndAttrs
- Map of service names and attribute-values
for that service to be set in the org entry.
serviceNameAndAttrs
has service names keys and
map of attribute-values (values are in a Set).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 deleteSubOrganizations(java.util.Set subOrganizations) throws AMException, SSOException
subOrganizations
- The set of suborganizations DNs to be deleted.AMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic AMOrganization getSubOrganization(java.lang.String dn) throws AMException, SSOException
dn
- DNpublic java.util.Set getSubOrganizations(int level) throws AMException, SSOException
level
- The search level starting from the organization.public long getNumberOfSubOrganizations(int level) throws AMException, SSOException
level
- The search level starting from the organization.public java.util.Set searchSubOrganizations(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_SUB)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 searchSubOrganizations(java.lang.String wildcard, 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 searchSubOrganizations(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 sub
organizationslevel
- the search level that needs to be used
(AMConstants.SCOPE_ONE or AMConstants.SCOPE_SUB)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 searchSubOrganizations(java.lang.String wildcard, java.util.Map avPairs, AMSearchControl searchControl) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchavPairs
- attribute-value pairs to match when searching sub
organizationssearchControl
- 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 createOrganizationalUnits(java.util.Set organizationalUnits) throws AMException, SSOException
organizationalUnits
- The set of organizational units names to be
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 createOrganizationalUnits(java.util.Map organizationalUnits) throws AMException, SSOException
organizationalUnits
- Map where the key is the name of the
organizational unit, 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 deleteOrganizationalUnits(java.util.Set organizationalUnits) throws AMException, SSOException
organizationalUnits
- The set of organizational units DNs to be
deleted.AMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic AMOrganizationalUnit getOrganizationalUnit(java.lang.String dn) throws AMException, SSOException
dn
- DNpublic java.util.Set getOrganizationalUnits(int level) throws AMException, SSOException
level
- The search level starting from the organization.public long getNumberOfOrganizationalUnits(int level) throws AMException, SSOException
level
- The search level starting from the organization.public java.util.Set searchOrganizationalUnits(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_SUB)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 searchOrganizationalUnits(java.lang.String wildcard, 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 searchOrganizationalUnits(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
organizational unitslevel
- the search level that needs to be used
(AMConstants.SCOPE_ONE or AMConstants.SCOPE_SUB)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 searchOrganizationalUnits(java.lang.String wildcard, java.util.Map avPairs, AMSearchControl searchControl) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchavPairs
- attribute-value pairs to match when searching
organizational unitssearchControl
- 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 createRoles(java.util.Set roles) throws AMException, SSOException
roles
- The set of Roles' names to be 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 createRoles(java.util.Map roles) throws AMException, SSOException
roles
- Map where the key is the name of the role, 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 deleteRoles(java.util.Set roles) throws AMException, SSOException
roles
- The set of roles' DNs to be deleted.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 getRoles(int level) throws AMException, SSOException
level
- The search level starting from the organization.public long getNumberOfRoles(int level) throws AMException, SSOException
level
- The search level starting from the organization.public java.util.Set searchRoles(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_SUB)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 searchRoles(java.lang.String wildcard, 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 searchRoles(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 roleslevel
- the search level that needs to be used
(AMConstants.SCOPE_ONE or AMConstants.SCOPE_SUB)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 searchRoles(java.lang.String wildcard, java.util.Map avPairs, AMSearchControl searchControl) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchavPairs
- attribute-value pairs to match when searching rolessearchControl
- 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 createFilteredRoles(java.util.Set roles) throws AMException, SSOException
roles
- The set of filtered roles' names to be 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 createFilteredRoles(java.util.Map roles) throws AMException, SSOException
roles
- Map where the key is the name of the filtered role,
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 deleteFilteredRoles(java.util.Set roles) throws AMException, SSOException
roles
- The set of filtered roles' DNs to be deleted.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 getFilteredRoles(int level) throws AMException, SSOException
level
- The search level starting from the organization.public long getNumberOfFilteredRoles(int level) throws AMException, SSOException
level
- The search level starting from the organization.public java.util.Set searchFilteredRoles(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_SUB)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 searchFilteredRoles(java.lang.String wildcard, 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 searchFilteredRoles(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 filtered
roleslevel
- the search level that needs to be used
(AMConstants.SCOPE_ONE or AMConstants.SCOPE_SUB)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 searchFilteredRoles(java.lang.String wildcard, java.util.Map avPairs, AMSearchControl searchControl) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchavPairs
- attribute-value pairs to match when searching filtered
rolessearchControl
- 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 searchAllRoles(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_SUB)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 searchAllRoles(java.lang.String wildcard, 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 searchAllRoles(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 all roleslevel
- the search level that needs to be used
(AMConstants.SCOPE_ONE or AMConstants.SCOPE_SUB)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 searchAllRoles(java.lang.String wildcard, java.util.Map avPairs, AMSearchControl searchControl) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchavPairs
- attribute-value pairs to match when searching all rolessearchControl
- 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 createAssignableDynamicGroups(java.util.Set assignableDynamicGroups) throws AMException, SSOException
assignableDynamicGroups
- The set of assignable dynamic groups's
names to be 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 AMGroup createAssignableDynamicGroup(java.lang.String name, java.util.Map attributes, java.util.Map serviceNameAndAttrs) throws AMException, SSOException
Name
- of group to be createdMap
- attributes attribute-value pairs to be setServiceName
- and attrsMap where the map is like this:
AMException
- SSOException
- if the SSOtoken is no longer validpublic void deleteAssignableDynamicGroups(java.util.Set assignableDynamicGroups) throws AMException, SSOException
assignableDynamicGroups
- The set of assignable dynamic groups's
DNs to be deleted.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 getAssignableDynamicGroups(int level) throws AMException, SSOException
level
- The search level starting from the organization.public long getNumberOfAssignableDynamicGroups(int level) throws AMException, SSOException
level
- The search level starting from the organization.public java.util.Set searchAssignableDynamicGroups(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_SUB)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 searchAssignableDynamicGroups(java.lang.String wildcard, int level, java.lang.String groupSearchTemplate, java.util.Map avPairs) 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_SUB)groupSearchTemplate
- name of the search template to be used to
perform this search.avPairs
- This option can be used to further qualify the search
filter. The attribute-value pairs provided by this map are appended
to the search filter.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 searchAssignableDynamicGroups(java.lang.String wildcard, 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 searchAssignableDynamicGroups(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 assignable
dynamic groupslevel
- the search level that needs to be used
(AMConstants.SCOPE_ONE or AMConstants.SCOPE_SUB)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 searchAssignableDynamicGroups(java.lang.String wildcard, java.util.Map avPairs, AMSearchControl searchControl) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchavPairs
- attribute-value pairs to match when searching assignable
dynamic groupssearchControl
- 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 searchAssignableDynamicGroups(java.lang.String wildcard, java.util.Map avPairs, java.lang.String groupSearchTemplate, AMSearchControl searchControl) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchavPairs
- attribute-value pairs to match when searching assignable
dynamic groupssearchControl
- specifies the search scope to be used, VLV
ranges etc.,groupSearchTemplate
- Name of search template to be used to perform
the searchAMException
- 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 createDynamicGroups(java.util.Map dynamicGroups) throws AMException, SSOException
dynamicGroups
- Map where the key is the name of the dynamic group,
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 AMGroup createDynamicGroup(java.lang.String name, java.util.Map attributes, java.util.Map serviceNameAndAttrs) throws AMException, SSOException
Name
- of group to be createdMap
- attributes to be set in groupServiceName
- and attrsMap where the map is like this:
AMException
- SSOException
- if the SSOtoken is no longer validpublic void deleteDynamicGroups(java.util.Set dynamicGroups) throws AMException, SSOException
dynamicGroups
- The set of dynamic groups's DNs to be deleted.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 getDynamicGroups(int level) throws AMException, SSOException
level
- The search level starting from the organization.public long getNumberOfDynamicGroups(int level) throws AMException, SSOException
level
- The search level starting from the organization.public java.util.Set searchDynamicGroups(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_SUB)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 searchDynamicGroups(java.lang.String wildcard, int level, java.lang.String groupSearchTemplate, java.util.Map avPairs) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchlevel
- the search level that needs to be usedgroupSearchTemplate
- name of the search template to be used to
perform this search.avPairs
- This option can be used to further qualify the search
filter. The attribute-value pairs provided by this map are appended
to the search filter.
(AMConstants.SCOPE_ONE or AMConstants.SCOPE_SUB)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 searchDynamicGroups(java.lang.String wildcard, 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 searchDynamicGroups(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 dynamic
groupslevel
- the search level that needs to be used
(AMConstants.SCOPE_ONE or AMConstants.SCOPE_SUB)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 searchDynamicGroups(java.lang.String wildcard, java.util.Map avPairs, AMSearchControl searchControl) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchavPairs
- attribute-value pairs to match when searching dynamic
groupssearchControl
- 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 searchDynamicGroups(java.lang.String wildcard, java.util.Map avPairs, java.lang.String groupSearchTemplate, AMSearchControl searchControl) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchavPairs
- attribute-value pairs to match when searching
dynamic groupssearchControl
- specifies the search scope to be usedgroupSearchTemplate
- Name of search template to be used to perform
the searchAMException
- 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 createStaticGroups(java.util.Set groups) throws AMException, SSOException
groups
- The set of static groups's names to be 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 AMGroup createStaticGroup(java.lang.String name, java.util.Map attributes, java.util.Map serviceNameAndAttrs) throws AMException, SSOException
Name
- of group to be createdMap
- attributes to be set in group node.ServiceName
- and attrsMap where the map is like this:
AMException
- SSOException
- if the SSOtoken is no longer validpublic void deleteStaticGroups(java.util.Set groups) throws AMException, SSOException
groups
- The set of static groups's DNs to be deleted.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 getStaticGroups(int level) throws AMException, SSOException
level
- The search level starting from the organization.public long getNumberOfStaticGroups(int level) throws AMException, SSOException
level
- The search level starting from the organization.public java.util.Set searchStaticGroups(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_SUB)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 searchStaticGroups(java.lang.String wildcard, int level, java.lang.String groupSearchTemplate, java.util.Map avPairs) 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_SUB)groupSearchTemplate
- name of the search template to be used to
perform this search.avPairs
- This option can be used to further qualify the search
filter. The attribute-value pairs provided by this map are appended
to the search filter.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 searchStaticGroups(java.lang.String wildcard, 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 searchStaticGroups(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 groupslevel
- the search level that needs to be used
(AMConstants.SCOPE_ONE or AMConstants.SCOPE_SUB)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 searchStaticGroups(java.lang.String wildcard, java.util.Map avPairs, AMSearchControl searchControl) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchavPairs
- attribute-value pairs to match when searching groupssearchControl
- 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 searchStaticGroups(java.lang.String wildcard, java.util.Map avPairs, java.lang.String groupSearchTemplate, AMSearchControl searchControl) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchavPairs
- attribute-value pairs to match when searching
static groupssearchControl
- specifies the search scope to be usedgroupSearchTemplate
- Name of search template to be used to perform
the searchAMException
- 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 searchGroups(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 groupslevel
- the search level that needs to be used
(AMConstants.SCOPE_ONE or AMConstants.SCOPE_SUB)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 searchGroups(java.lang.String wildcard, java.util.Map avPairs, AMSearchControl searchControl) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchavPairs
- attribute-value pairs to match when searching groupssearchControl
- specifies the search scope to be usedAMException
- 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 createPeopleContainers(java.util.Set peopleContainers) throws AMException, SSOException
peopleContainers
- The set of people containers' names to be createdAMException
- 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 createPeopleContainers(java.util.Map peopleContainers) throws AMException, SSOException
peopleContainers
- Map where the key is the name of the
peopleContainer, 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 deletePeopleContainers(java.util.Set peopleContainers) throws AMException, SSOException
peopleContainers
- The set of people containers' DN to be deleted.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 getPeopleContainers(int level) throws AMException, SSOException
level
- The search level starting from the organization.public long getNumberOfPeopleContainers(int level) throws AMException, SSOException
level
- The search level starting from the organization.public java.util.Set searchPeopleContainers(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_SUB)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 searchPeopleContainers(java.lang.String wildcard, 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 searchPeopleContainers(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_SUB)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 searchPeopleContainers(java.lang.String wildcard, java.util.Map avPairs, AMSearchControl searchControl) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchavPairs
- attribute-value pairs to match when searching people
containerssearchControl
- 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 createGroupContainers(java.util.Set groupContainers) throws AMException, SSOException
groupContainers
- The set of group containers' names to be createdAMException
- 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 createGroupContainers(java.util.Map groupContainers) throws AMException, SSOException
groupContainers
- Map where the key is the name of the
groupContainer, 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 deleteGroupContainers(java.util.Set groupContainers) throws AMException, SSOException
groupContainers
- The set of group containers' DN to be deleted.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 getGroupContainers(int level) throws AMException, SSOException
level
- The search level starting from the organization.public long getNumberOfGroupContainers(int level) throws AMException, SSOException
level
- The search level starting from the organization.public java.util.Set searchGroupContainers(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 group
containerslevel
- the search level that needs to be used
(AMConstants.SCOPE_ONE or AMConstants.SCOPE_SUB)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 searchGroupContainers(java.lang.String wildcard, java.util.Map avPairs, AMSearchControl searchControl) throws AMException, SSOException
wildcard
- wildcard pattern to be used in the searchavPairs
- attribute-value pairs to match when searching group
containerssearchControl
- 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 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 organization.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 AMUser createUser(java.lang.String uid, java.util.Map attrMap, java.util.Map serviceNameAndAttrs) 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. Also services as defined in the arguments, are assigned
to the user, with default values being picked up from the service schema
if none are provided for required attributes of the service.String
- uid, value of naming attribute for user.Map
- attrMap attribute-values to be set in the user entry.Map
- serviceNameAndAttr service names and attributes to be
assigned to the user.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 deleteUsers(java.util.Set users) throws AMException, SSOException
users
- The set of user DN's to be deleted from the organization.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 AMUser getUser(java.lang.String uid, java.lang.String userSearchTemplate) throws AMException, SSOException
String
- uid - namingAttribute value for userString
- userSearchTemplateAMException
- SSOException
- public long getNumberOfUsers(int level) throws AMException, SSOException
level
- The search level starting from the organization.public 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_SUB)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, java.lang.String userSearchTemplate, java.util.Map avPairs) 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_SUB)userSearchTemplate
- Name of search template to be used.
If null is passed then the default search template
BasicUserSearch
will be used.avPairs
- This option can be used to further qualify the search
filter. The attribute-value pairs provided by this map are appended
to the search filter.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, 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_SUB)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, 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, java.util.Map avPairs, java.lang.String userSearchTemplate, 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.,userSearchTemplate
- Name of user search template to be used.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, 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(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 long getNumberOfServices() throws AMException, SSOException
public java.util.Set getRegisteredServiceNames() throws AMException, SSOException
public void registerService(java.lang.String serviceName, boolean createTemplate, boolean activate) throws AMException, SSOException
serviceName
- The name of service to be registeredcreateTemplate
- true if to create default templateactivate
- true if to activate the serviceAMException
- if the service does not exist or could not be
registered.SSOException
- if the sign on is no longer valid.public void unregisterService(java.lang.String serviceName) throws AMException, SSOException
String
- serviceName to be unregisteredAMException
- if the service does not exist or could not be
unregistered.SSOException
- if the sign on is no longer valid.public void unassignAllPolicies(java.lang.String serviceName, java.util.Set policyDNs) throws AMException, SSOException
serviceName
- serviceNamepolicyDNs
- Set of policy DN stringAMException
- if there is an internal problem with AM Store.SSOException
- if the sign-on is no longer valid.public void modifyAllPolicyTemplates(java.lang.String serviceName, java.util.Set policyDNs) throws AMException, SSOException
serviceName
- serviceNamepolicyDNs
- Set of policy DN stringAMException
- if there is an internal problem with AM Store.SSOException
- if the sign-on is no longer valid.public boolean deleteAllNamedPolicyTemplates(java.lang.String policyDN) throws AMException, SSOException
policyDN
- a policy DN stringAMException
- if there is an internal problem with AM Store.SSOException
- if the sign-on is no longer valid.public java.util.Set getAssignedPolicyDNs() throws AMException, SSOException
AMException
- if there is an internal problem with AM Store.SSOException
- if the sign-on is no longer valid.public boolean isPolicyAssigned(java.lang.String policyDN, java.lang.String serviceName) throws AMException, SSOException
policyDN
- a policy DN stringserviceName
- service namepublic boolean orgTemplateExists(java.lang.String serviceName) throws AMException, SSOException
serviceName
- service namepublic void unassignServices(java.util.Set serviceNames) throws AMException, SSOException
unassignServices
in interface AMObject
serviceNames
- Set of service namesAMException
- 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 |