/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: AMPeopleContainerImpl.java,v 1.5 2008/06/25 05:41:21 qcheng Exp $
*
*/
/**
* Portions Copyrighted [2011] [ForgeRock AS]
*/
/**
* The <code>AMPeopleContainerImpl</code> class implements interface
* AMPeopleContainer
*
* @deprecated As of Sun Java System Access Manager 7.1.
*/
}
/**
* Creates users in this people container. For each user the, object classes
* specified by organization type attribute
* <code>iplanet-am-required-services</code> of the service
* <code>iPlanetAMAdminConsoleService</code> template are added. If a
* corresponding template does not exist, the default values are picked up
* from schema.
*
* @param users
* The set of user names to be created in this people container.
* @return Set Set of User objects created
* @throws AMException
* if there is an internal error in the AM Store
* @throws SSOException
* if the sign on is no longer valid
*/
}
}
}
return usersSet;
}
/**
* Creates users and initializes their attributes. For each user the, object
* classes specified by organization type attribute
* <code>iplanet-am-required-services</code> of the service
* <code>iPlanetAMAdminConsoleService</code> template are added. If a
* corresponding template does not exist, the default values are picked up
* from schema.
*
* @param users
* Map where the key is the name of the user, and the value is a
* Map to represent Attribute-Value Pairs
* @return Set Set of User objects created
* @throws AMException
* if there is an internal error in the AM Store
* @throws SSOException
* if the sign on is no longer valid
*/
}
/**
* Creates users and initializes their attributes.For each user the, object
* classes specified by organization type attribute
* <code>iplanet-am-required-services</code> of the service
* <code>iPlanetAMAdminConsoleService</code> template are added. If a
* corresponding template does not exist, the default values are picked up
* from schema.
*
* @param users
* Map where the key is the name of the user, and the value is a
* Map to represent Attribute-Value Pairs
* @param serviceNames
* 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 Pairs
* @return Set Set of User objects created
* @throws AMException
* if there is an internal error in the AM Store
* @throws SSOException
* if the sign on is no longer valid
*/
}
}
}
return usersSet;
}
/**
* Create user and initializes the attributes. For each user the, object
* classes specified by organization type attribute
* <code>iplanet-am-required-services</code> of the service
* <code>iPlanetAMAdminConsoleService</code> 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.
*
* @param String
* uid, value of naming attribute for user.
* @param Map
* attrMap attribute-values to be set in the user entry.
* @param Map
* serviceNameAndAttr service names and attributes to be assigned
* to the user.
* @return AMUser object of newly created user.
* @throws AMException
* data from the data store
* @throws SSOException
* if the sign on is no longer valid
*/
throws AMException, SSOException {
serviceNames = new HashSet();
}
}
}
}
}
}
+ "," + super.entryDN;
// validate the attributes and add pick the defaults.
try {
thisService, token);
} catch (SMSException se) {
+ thisService, se);
}
}
}
return (user);
}
/**
* Removes users from the people container.
*
* @param users
* The set of user DN's to be removed from the people container.
*/
}
}
/**
* Gets number of users in the people container.
*
* @return Number of users in the people container.
*/
return getUserDNs().size();
}
/**
* Gets the names (DNs) of users in the people container.
*
* @return Set The names(DNs) of users in the people container.
*
* @throws AMException
* if there is an internal error in the AM Store
* @throws SSOException
* if the sign on is no longer valid
*/
}
/**
* Creates sub PeopleContainers in this people container.
*
* @param peopleContainers
* The set of peopleContainer names to be created in this people
* container.
* @return Set set of PeopleContainer objects created
* @throws AMException
* if there is an internal error in the AM Store
* @throws SSOException
* if the sign on is no longer valid
*/
throws AMException, SSOException {
new AMPeopleContainerImpl(super.token,
}
return peopleContainers;
}
/**
* Creates sub people containers and initializes their attributes.
*
* @param users
* Map where the key is the name of the people container, and the
* value is a Map to represent Attribute-Value Pairs
*
* @param Set
* Set of PeopleContainer objects created.
* @throws AMException
* if there is an internal error in the AM Store
* @throws SSOException
* if the sign on is no longer valid
*/
throws AMException, SSOException {
new AMPeopleContainerImpl(super.token,
}
return peopleContainers;
}
/**
* Gets the sub containers in this people container. It returns sub
* containers either at one level or a whole subtree.
*
* @param level
* the level(SCOPE_ONE or SCOPE_SUB) for returning subcontainers
* @return The sub container DNs in this people container.
*
* @throws AMException
* if there is an internal error in the AM Store or if if the
* level is invalid
* @throws SSOException
* if the sign on is no longer valid
*/
}
/**
* Gets number of sub peoople containers in the people container.
*
* @return Number of sub people containers in the people container.
*
* @throws AMException
* if there is an internal error in the AM Store
* @throws SSOException
* if the sign on is no longer valid
*/
}
/**
* Deletes sub people containers in this people container.
*
* @param peopleContainers
* The set of user DN's to be deleted from the people container.
*
* @throws AMException
* if there is an internal error in the AM Store
* @throws SSOException
* if the sign on is no longer valid
*/
throws AMException, SSOException {
super.token, peopleContainerDN);
}
}
/**
* Searches for users in this people container using wildcards and attribute
* values. Wildcards can be specified such as a*, *, *a.
*
* @param wildcard
* wildcard pattern to be used in the search
* @param level
* the search level that needs to be used (AMConstants.SCOPE_ONE
* or AMConstansts.SCOPE_SUB)
*
* @return Set DNs of Users matching the search
*
* @throws AMException
* if there is an internal error in the AM Store
* @throws SSOException
* if the sign on is no longer valid
*/
}
/**
* Searches for users in this people container using wildcards and attribute
* values. Wildcards can be specified such as a*, *, *a.
*
* @param wildcard
* wildcard pattern to be used in the search
* @param searchControl
* specifies the search scope to be used, VLV ranges etc.,
*
* @return AMSearchResults which contains a Set DNs of Users matching the
* search
*
* @throws AMException
* if there is an internal error in the AM Store
* @throws SSOException
* if the sign on is no longer valid
*/
}
/**
* Searches for users in this group using wildcards and attribute values.
* Wildcards can be specified such as a*, *, *a. To further refine the
* search, attribute-value pairs can be specifed so that DNs of users with
* matching attribute-value pairs will be returned.
*
* @param wildcard
* wildcard pattern to be used in the search
* @param avPairs
* attribute-value pairs to match when searching users
* @param level
* the search level that needs to be used (AMConstants.SCOPE_ONE
* or AMConstansts.SCOPE_SUB)
*
* @return Set DNs of Users matching the search
*
* @throws AMException
* if there is an internal error in the AM Store
* @throws SSOException
* if the sign on is no longer valid
*/
throws AMException, SSOException {
}
/**
* Searches for users in this group using wildcards and attribute values.
* Wildcards can be specified such as a*, *, *a. To further refine the
* search, attribute-value pairs can be specifed so that DNs of users with
* matching attribute-value pairs will be returned.
*
* @param wildcard
* wildcard pattern to be used in the search
* @param avPairs
* attribute-value pairs to match when searching users
* @param searchControl
* specifies the search scope to be used, VLV ranges etc.,
*
* @return AMSearchResults which contains a Set DNs of Users matching the
* search
*
* @throws AMException
* if there is an internal error in the AM Store
* @throws SSOException
* if the sign on is no longer valid
*/
}
/**
* Searches for users in this people container using wildcards and attribute
* values. Wildcards can be specified such as a*, *, *a. To further refine
* the search, attribute-value pairs can be specifed so that DNs of users
* with matching attribute-value pairs will be returned.
*
* @param wildcard
* wildcard pattern to be used in the search
* @param searchControl
* specifies the search scope to be used, VLV ranges etc.,
* @param avfilter
* this attribute-value pairs filter will be & with user search
* filter
*
* @return AMSearchResults which contains a Set DNs of Users matching the
* search
*
* @throws AMException
* if there is an internal error in the AM Store
* @throws SSOException
* if the sign on is no longer valid
*/
avfilter);
}
/**
* Searches for users in this people container using wildcards and attribute
* values. Wildcards can be specified such as a*, *, *a. To further refine
* the search, attribute-value pairs can be specifed so that DNs of users
* with matching attribute-value pairs will be returned.
*
* @param wildcard
* wildcard pattern to be used in the search
* @param searchControl
* specifies the search scope to be used, VLV ranges etc.,
* @param avfilter
* this attribute-value pairs filter will be & with user search
* filter
*
* @return AMSearchResults which contains a Set DNs of Users matching the
* search
*
* @throws AMException
* if there is an internal error in the AM Store
* @throws SSOException
* if the sign on is no longer valid
*/
avfilter);
}
if (debug.warningEnabled()) {
+ "ancestor org is deleted for: " + super.entryDN
+ " :returning empty set");
}
return Collections.EMPTY_SET;
}
}
}
return resSet;
}
}
{
}
}
/**
* Searches for sub people containers in this people container using
* wildcards and attribute values. Wildcards can be specified such as a*, *,
* *a.
*
* @param wildcard
* wildcard pattern to be used in the search
* @param level
* the search level that needs to be used (AMConstants.SCOPE_ONE
* or AMConstansts.SCOPE_SUB)
*
* @return Set DNs of people containers matching the search
*
* @throws AMException
* if there is an internal error in the AM Store
* @throws SSOException
* if the sign on is no longer valid
*/
throws AMException, SSOException {
}
/**
* Searches for sub people containers in this people container using
* wildcards and attribute values. Wildcards can be specified such as a*, *,
* *a. To further refine the search, attribute-value pairs can be specifed
* so that DNs of people containers with matching attribute-value pairs will
* be returned.
*
* @param wildcard
* wildcard pattern to be used in the search
* @param avPairs
* attribute-value pairs to match when searching people
* Containers
* @param level
* the search level that needs to be used (AMConstants.SCOPE_ONE
* or AMConstansts.SCOPE_SUB)
*
* @return Set DNs of people containers matching the search
*
* @throws AMException
* if there is an internal error in the AM Store
* @throws SSOException
* if the sign on is no longer valid
*/
return searchObjects(AMNamingAttrManager
level);
}
/*
* (non-Javadoc)
*
* @see com.iplanet.am.sdk.AMOrganization#searchUsers(java.lang.String,
* java.util.Map, java.lang.String, com.iplanet.am.sdk.AMSearchControl)
*/
throws AMException, SSOException {
}
/*
* (non-Javadoc)
*
* @see com.iplanet.am.sdk.AMPeopleContainer#createResources(java.util.Map)
*/
if (resourceMap == null) {
return Collections.EMPTY_SET;
}
}
return resSet;
}
throws AMException, SSOException {
}
// create users.
}
return resultSet;
}
.toLowerCase());
"117");
}
;
}
return resultSet;
}
}
}
if (eSearchTemplate == null) {
eSearchTemplate = "BasicEntitySearch";
}
}
throws AMException, SSOException {
if (eSearchTemplate == null) {
eSearchTemplate = "BasicEntitySearch";
}
}
// create users.
}
return resultSet;
}
.toLowerCase());
"117");
}
}
return entitySet;
}
if (eSearchTemplate == null) {
eSearchTemplate = "BasicEntitySearch";
}
}
}