public class Organization extends java.lang.Object implements Identity
Organization class is a value object class to hold the
GUID, attribute name-value pair and child Organizations of an Organization.| Constructor and Description |
|---|
Organization()
Constructs an empty Organization object.
|
Organization(java.lang.String entityId)
Constructs an Organization object with GUID
entityId. |
Organization(java.lang.String entityId,
java.util.HashMap attributes)
Constructs an Organization object with GUID
entityId
and a map of attribute name-value pairs. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Get the value of the specified Organization attribute
name. |
java.util.Set |
getAttributeNames()
Returns a Set of all attribute names for this Organization.
|
java.util.HashMap |
getAttributes()
Returns a map of all attribute-value pairs for this Organization.
|
java.lang.String |
getEntityId()
Returns GUID of the Organization.
|
boolean |
isSystemDefinedOrg()
Tells whether the org is system defined.
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Adds the attribute
name and it's value value. |
java.lang.String |
toString()
Returns the string representation of this Organization.
|
public Organization()
public Organization(java.lang.String entityId)
entityId.entityId - The GUID of the Organization.public Organization(java.lang.String entityId,
java.util.HashMap attributes)
entityId
and a map of attribute name-value pairs.entityId - The GUID of the Organization.attributes - The map of attribute name-value pairs.public void setAttribute(java.lang.String name,
java.lang.Object value)
name and it's value value.setAttribute in interface Identityname - The attribute to be added.value - The value of the attribute.public java.lang.Object getAttribute(java.lang.String name)
name.getAttribute in interface Identityname - The attribute whose value is to be returned.public java.util.HashMap getAttributes()
getAttributes in interface Identitymap of all attribute-value pairs of this Organization.public java.util.Set getAttributeNames()
getAttributeNames in interface IdentitySet of all attribute names for this
Organization.public java.lang.String getEntityId()
getEntityId in interface Identitypublic java.lang.String toString()
public boolean isSystemDefinedOrg()