Class Organization

java.lang.Object
oracle.iam.identity.orgmgmt.vo.Organization
All Implemented Interfaces:
Serializable, Identity
Direct Known Subclasses:
Organization

public class Organization extends Object implements Identity
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 Details

    • Organization

      public Organization()
      Constructs an empty Organization object.
    • Organization

      public Organization(String entityId)
      Constructs an Organization object with GUID entityId.
      Parameters:
      entityId - The GUID of the Organization.
    • Organization

      public Organization(String entityId, HashMap<String,Object> attributes)
      Constructs an Organization object with GUID entityId and a map of attribute name-value pairs.
      Parameters:
      entityId - The GUID of the Organization.
      attributes - The map of attribute name-value pairs.
  • Method Details

    • setAttribute

      public void setAttribute(String name, Object value)
      Adds the attribute name and it's value value.
      Specified by:
      setAttribute in interface Identity
      Parameters:
      name - The attribute to be added.
      value - The value of the attribute.
    • getAttribute

      public Object getAttribute(String name)
      Get the value of the specified Organization attribute name.
      Specified by:
      getAttribute in interface Identity
      Parameters:
      name - The attribute whose value is to be returned.
      Returns:
      Value of the attribute. null if the attribute is not present.
    • getAttributes

      public HashMap<String,Object> getAttributes()
      Returns a map of all attribute-value pairs for this Organization.
      Specified by:
      getAttributes in interface Identity
      Returns:
      A map of all attribute-value pairs of this Organization.
    • getAttributeNames

      public Set getAttributeNames()
      Returns a Set of all attribute names for this Organization.
      Specified by:
      getAttributeNames in interface Identity
      Returns:
      A Set of all attribute names for this Organization.
    • getEntityId

      public String getEntityId()
      Returns GUID of the Organization.
      Specified by:
      getEntityId in interface Identity
      Returns:
      GUID of the Organization.
    • toString

      public String toString()
      Returns the string representation of this Organization.
      Specified by:
      toString in interface Identity
      Overrides:
      toString in class Object
      Returns:
      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.