|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The AMGroup
interface provides methods to manage group
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 |
createAssignableDynamicGroups(java.util.Map groups)
Creates assignable dynamic groups and initializes their attributes. |
java.util.Set |
createAssignableDynamicGroups(java.util.Set groupNames)
Creates assignable dynamic groups in this group. |
java.util.Set |
createDynamicGroups(java.util.Map groups)
Creates dynamic groups and initializes their attributes. |
java.util.Set |
createDynamicGroups(java.util.Set groupNames)
Creates dynamic groups in this group. |
java.util.Set |
createStaticGroups(java.util.Map groups)
Creates static groups and initializes their attributes. |
java.util.Set |
createStaticGroups(java.util.Set groupNames)
Creates static groups in this group. |
void |
deleteAssignableDynamicGroups(java.util.Set groupDNs)
Deletes assignable dynamic groups in this group. |
void |
deleteDynamicGroups(java.util.Set groupDNs)
Deletes dynamic groups in this group. |
void |
deleteStaticGroups(java.util.Set groupDNs)
Deletes static groups in this group. |
java.util.Set |
getGroupDNs(int level)
Gets the groups in this group. |
long |
getNumberOfGroups(int level)
Gets number of groups in the group. |
long |
getNumberOfUsers()
Gets number of users in the group. |
java.util.Set |
getUserDNs()
Gets the DNs of users in the group. |
java.util.Set |
searchGroups(java.lang.String wildcard,
int level)
Searches for groups in this group using wildcards. |
AMSearchResults |
searchGroups(java.lang.String wildcard,
java.util.Map avPairs,
com.iplanet.am.sdk.AMSearchControl searchControl)
Searches for groups in this group using wildcards and attribute values. |
java.util.Set |
searchGroups(java.lang.String wildcard,
java.util.Map avPairs,
int level)
Searches for groups in this group using wildcards and attribute values. |
AMSearchResults |
searchUsers(com.iplanet.am.sdk.AMSearchControl searchControl,
java.lang.String avfilter)
Searches for users in this group using attribute values. |
java.util.Set |
searchUsers(java.lang.String wildcard)
Searches for users in this group 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. |
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 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 searchUsers(java.lang.String wildcard) throws AMException, SSOException
wildcard
- wildcard pattern to be used in 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 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 size limit and time limitAMException
- if there is an internal error in the AM 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 createStaticGroups(java.util.Set groupNames) throws AMException, SSOException
groupNames
- The set of static groups' names to be created
in this group.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 createStaticGroups(java.util.Map groups) throws AMException, SSOException
users
- Map where the key is the name of the static 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 java.util.Set createDynamicGroups(java.util.Set groupNames) throws AMException, SSOException
groupNames
- The set of dynamic groups' names to be created
in this group.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 createDynamicGroups(java.util.Map groups) throws AMException, SSOException
groups
- 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 java.util.Set createAssignableDynamicGroups(java.util.Set groupNames) throws AMException, SSOException
groupNames
- The set of assignable dynamic groups' names to be
created in this group.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.Map groups) throws AMException, SSOException
groups
- Map where the key is the name of the assignable 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 java.util.Set getGroupDNs(int level) throws AMException, SSOException
level
- the level (AMConstants.SCOPE_ONE or AMConstants.SCOPE_SUB)
for returning groupsAMException
- if an error is encountered when trying to
access/retrieve data from the data store or if the level is invalidSSOException
- if the sign on is no longer validpublic long getNumberOfGroups(int level) throws AMException, SSOException
level
- the level(AMConstants.SCOPE_ONE or AMConstants.SCOPE_SUB)
for returning groupsAMException
- if an error is encountered when trying to
access/retrieve data from the data storeSSOException
- if the sign on is no longer validpublic void deleteStaticGroups(java.util.Set groupDNs) throws AMException, SSOException
groups
- The set of static group DN's to be deleted from this group.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 deleteDynamicGroups(java.util.Set groupDNs) throws AMException, SSOException
groups
- The set of dynamic group DN's to be deleted from this
group.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 deleteAssignableDynamicGroups(java.util.Set groupDNs) throws AMException, SSOException
groups
- The set of assignable dynamic group DN's to be deleted
from this group.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 searchGroups(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 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_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 searchGroups(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 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 valid
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |