Package oracle.iam.identity.orgmgmt.vo
Class Organization
java.lang.Object
oracle.iam.identity.orgmgmt.vo.Organization
- All Implemented Interfaces:
Serializable,Identity
- Direct Known Subclasses:
Organization
The
Organization class is a value object class to hold the
GUID, attribute name-value pair and child Organizations of an Organization.- Author:
- abhimanyu seth
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty Organization object.Organization(String entityId) Constructs an Organization object with GUIDentityId.Organization(String entityId, HashMap<String, Object> attributes) Constructs an Organization object with GUIDentityIdand amapof attribute name-value pairs. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) Get the value of the specified Organization attributename.Returns a Set of all attribute names for this Organization.Returns a map of all attribute-value pairs for this Organization.Returns GUID of the Organization.booleanTells whether the org is system defined.voidsetAttribute(String name, Object value) Adds the attributenameand it's valuevalue.toString()Returns the string representation of this Organization.
-
Constructor Details
-
Organization
public Organization()Constructs an empty Organization object. -
Organization
Constructs an Organization object with GUIDentityId.- Parameters:
entityId- The GUID of the Organization.
-
Organization
Constructs an Organization object with GUIDentityIdand amapof attribute name-value pairs.- Parameters:
entityId- The GUID of the Organization.attributes- Themapof attribute name-value pairs.
-
-
Method Details
-
setAttribute
Adds the attributenameand it's valuevalue.- Specified by:
setAttributein interfaceIdentity- Parameters:
name- The attribute to be added.value- The value of the attribute.
-
getAttribute
Get the value of the specified Organization attributename.- Specified by:
getAttributein interfaceIdentity- Parameters:
name- The attribute whose value is to be returned.- Returns:
- Value of the attribute. null if the attribute is not present.
-
getAttributes
Returns a map of all attribute-value pairs for this Organization.- Specified by:
getAttributesin interfaceIdentity- Returns:
- A
mapof all attribute-value pairs of this Organization.
-
getAttributeNames
Returns a Set of all attribute names for this Organization.- Specified by:
getAttributeNamesin interfaceIdentity- Returns:
- A
Setof all attribute names for this Organization.
-
getEntityId
Returns GUID of the Organization.- Specified by:
getEntityIdin interfaceIdentity- Returns:
- GUID of the Organization.
-
toString
Returns the string representation of this Organization. -
isSystemDefinedOrg
public boolean isSystemDefinedOrg()Tells whether the org is system defined. (Applicable for TOP org). Modify this method in future if adding crucial orgs like TOP in the system which should not be allowed to be deleted or modified even by System Admin.- Returns:
- Boolean indicating if the org is system defined and reserved.
-