Search in sources :

Example 1 with PeopleContainer

use of com.iplanet.ums.PeopleContainer in project OpenAM by OpenRock.

the class DirectoryServicesImpl method createPeopleContainer.

private void createPeopleContainer(PersistentObject parentObj, Map attributes, String profileName) throws UMSException, AMException {
    AttrSet attrSet = CommonUtils.mapToAttrSet(attributes);
    makeNamingFirst(attrSet, getNamingAttribute(AMObject.PEOPLE_CONTAINER), profileName);
    TemplateManager tempMgr = TemplateManager.getTemplateManager();
    String orgDN = getOrganizationDN(internalToken, parentObj.getDN());
    CreationTemplate creationTemp = tempMgr.getCreationTemplate("BasicPeopleContainer", new Guid(orgDN), TemplateManager.SCOPE_ANCESTORS);
    attrSet = combineOCs(creationTemp, attrSet);
    com.iplanet.ums.PeopleContainer pc = new PeopleContainer(creationTemp, attrSet);
    parentObj.addChild(pc);
}
Also used : CreationTemplate(com.iplanet.ums.CreationTemplate) PeopleContainer(com.iplanet.ums.PeopleContainer) TemplateManager(com.iplanet.ums.TemplateManager) PeopleContainer(com.iplanet.ums.PeopleContainer) Guid(com.iplanet.ums.Guid) AttrSet(com.iplanet.services.ldap.AttrSet)

Aggregations

AttrSet (com.iplanet.services.ldap.AttrSet)1 CreationTemplate (com.iplanet.ums.CreationTemplate)1 Guid (com.iplanet.ums.Guid)1 PeopleContainer (com.iplanet.ums.PeopleContainer)1 TemplateManager (com.iplanet.ums.TemplateManager)1