com.ibm.itim.dataservices.model.domain
Class Organization
java.lang.Object
|
+--com.ibm.itim.dataservices.model.DirectoryEntry
|
+--com.ibm.itim.dataservices.model.DirectoryObject
|
+--com.ibm.itim.dataservices.model.domain.OrganizationalContainer
|
+--com.ibm.itim.dataservices.model.domain.Organization
- All Implemented Interfaces:
- com.ibm.itim.util.xml.objectstream.Importable, ProtectedObject, java.io.Serializable
- public class Organization
- extends OrganizationalContainer
Value Object class that holds the attribute information of an organization
in the data model.
- See Also:
OrganizationEntity
, Serialized Form
Field Summary |
static int |
ACTIVE_STATUS
Constant indicating an active status. |
static int |
INACTIVE_STATUS
Constant indicating an inactive, or suspended, status. |
static java.lang.String |
ORG_ATTR_NAME
String constant for the naming attribute name. |
static java.lang.String |
ORG_ATTR_STATUS
String constant for the status attribute name. |
Method Summary |
int |
getStatus()
Returns the status of the organization. |
void |
restore()
Restores the organization, changing its status to ACTIVE_STATUS. |
void |
suspend()
Suspends the organization, changing its status to INACTIVE_STATUS. |
Methods inherited from class com.ibm.itim.dataservices.model.DirectoryObject |
addAttribute, getAccessRights, getAttribute, getAttributes, getAuthorizationOwners, getMapAttributeNames, getMappedAttributes, getName, getNameAttribute, getProfileName, getRawAttributes, getTenantDN, removeAttribute, removeAttribute, setAccessRights, setAttribute, setAttributes, setAuthorizationOwners, setProfileName, setTenantDN, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ORG_ATTR_NAME
public static java.lang.String ORG_ATTR_NAME
- String constant for the naming attribute name.
ORG_ATTR_STATUS
public static final java.lang.String ORG_ATTR_STATUS
- String constant for the status attribute name.
ACTIVE_STATUS
public static final int ACTIVE_STATUS
- Constant indicating an active status.
INACTIVE_STATUS
public static final int INACTIVE_STATUS
- Constant indicating an inactive, or suspended, status.
Organization
public Organization(AttributeValues attributes)
- Constructs object with attribute information. Warning:
the purpose of this constructor is to provide clients with the ability
to create value objects for creation in the data store. Do not use this
constructor to create value objects that represent existing entities.
See the OrganizationSearch object for achieving that.
- Parameters:
attributes
- AttributeValues holding the attributes of the
organization.
Organization
public Organization(java.lang.String profileName,
AttributeValues attributes)
- Constructs object with profile and attribute information. Warning:
the purpose of this constructor is to provide clients with the ability
to create value objects for creation in the data store. Do not use this
constructor to create value objects that represent existing entities.
See the OrganizationSearch object for achieving that.
- Parameters:
profileName
- Name of the profile identifying the type of this
organization.attributes
- AttributeValues holding the attributes of the
organization.
getStatus
public int getStatus()
- Returns the status of the organization.
- Returns:
- Enumerated int status, ACTIVE_STATUS or INACTIVE_STATUS.
suspend
public void suspend()
- Suspends the organization, changing its status to INACTIVE_STATUS.
Note: this does not affect any dependent entities within the
organization.
restore
public void restore()
- Restores the organization, changing its status to ACTIVE_STATUS.
Note: this does not affect any dependent entities within the
organization.