public class Organization extends PersistentObject
o=vortex.com (site) o=hp (organization) uid=jdoe o=sun (organization) ou=buyerclub uid=joe
Constructor and Description |
---|
Organization(CreationTemplate template,
AttrSet attrSet)
Constructs Organization object without session.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(PersistentObject object)
Adds a new object to the organization.
|
void |
addPeopleContainerRule(Guid guid,
String filter)
Adds rule for determining which People Container the user is supposed to
be in.
|
String |
getName()
Returns the name of the organization.
|
Collection |
getPeopleContainerGuids()
Gets all People Containers under the organization.
|
void |
removeChild(PersistentObject object)
Removes an object from the organization.
|
void |
removePeopleContainerRule(Guid guid,
String filter)
Removes the rule applying to the given People Container guid with the
given filter string.
|
void |
setDefaultPeopleContainer(Guid guid)
Sets the default People Container for user entries under the
organization.
|
addACI, addAttributeValue, deleteACI, getACI, getACI, getAttribute, getAttribute, getAttributeNames, getAttributes, getAttributes, getAttributes, getChildren, getChildren, getChildren, getGuid, getNamingAttribute, getParentObject, getRoles, isMemberOf, modify, modify, modify, remove, removeAttribute, removeAttributeValue, removeChild, rename, replaceACI, save, search, search, search, setAttribute, setAttribute, toString
getParentGuid
public Organization(CreationTemplate template, AttrSet attrSet) throws UMSException
template
- template for the organizationattrSet
- attribute/value setUMSException
public void addChild(PersistentObject object) throws AccessRightsException, EntryAlreadyExistsException, UMSException
addChild
in class PersistentObject
object
- object to be added to the organizationAccessRightsException
- if an access rights exception occursEntryAlreadyExistsException
- if the entry already existsUMSException
- Fail to add the objectpublic void removeChild(PersistentObject object) throws AccessRightsException, EntryNotFoundException, UMSException
removeChild
in class PersistentObject
object
- object to be removed to the organizationAccessRightsException
- if an access rights exception occursEntryNotFoundException
- if the entry is not foundUMSException
- Fail to remove the objectpublic String getName() throws UMSException
UMSException
public Collection getPeopleContainerGuids() throws UMSException
UMSException
- Failurepublic void addPeopleContainerRule(Guid guid, String filter) throws UMSException
filter
- filter representation of the rule. Accepts filter string with
the following format:
<filter> ::= <and> | <item> <and> ::= '(' '&' <itemlist> ')' <itemlist> ::= <item> | <item> <itemlist> <item> ::= '(' <attr> '=' <value> ')'
guid
- guid of the People Container to which the rule is applied.UMSException
- Failurepublic void removePeopleContainerRule(Guid guid, String filter) throws UMSException
filter
- filter string of the rule to be removedguid
- guid of which the rule applies toUMSException
- Failurepublic void setDefaultPeopleContainer(Guid guid) throws UMSException
guid
- guid of the default People ContainerUMSException
- FailureCopyright © 2010-2016, ForgeRock All Rights Reserved.