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 GUIDentityId
and amap
of 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.boolean
Tells whether the org is system defined.void
setAttribute
(String name, Object value) Adds the attributename
and 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 GUIDentityId
and amap
of attribute name-value pairs.- Parameters:
entityId
- The GUID of the Organization.attributes
- Themap
of attribute name-value pairs.
-
-
Method Details
-
setAttribute
Adds the attributename
and it's valuevalue
.- Specified by:
setAttribute
in 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:
getAttribute
in 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:
getAttributes
in interfaceIdentity
- Returns:
- A
map
of all attribute-value pairs of this Organization.
-
getAttributeNames
Returns a Set of all attribute names for this Organization.- Specified by:
getAttributeNames
in interfaceIdentity
- Returns:
- A
Set
of all attribute names for this Organization.
-
getEntityId
Returns GUID of the Organization.- Specified by:
getEntityId
in 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.
-