|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.itim.dataservices.model.DirectoryObjectEntity
com.ibm.itim.dataservices.model.domain.ServiceEntity
public class ServiceEntity
Class that represents a service within the data model.
| Field Summary |
|---|
| Fields inherited from class com.ibm.itim.dataservices.model.DirectoryObjectEntity |
|---|
ORGANIZATION, PARENT |
| Fields inherited from interface com.ibm.itim.util.Sortable |
|---|
ATTR_NAME |
| Constructor Summary | |
|---|---|
ServiceEntity(DirectoryObject dirObject)
Constructs a ServiceEntity with a value object. |
|
| Method Summary | |
|---|---|
static ServiceEntity |
create(ObjectProfile profile,
Service service)
Create a ServiceEntity object for this Service. |
static ServiceEntity |
create(Service serviceObject)
Create a ServiceEntity object for this Service. |
AccountTable |
getAccountTable()
Returns the table of accounts for this service. |
ServiceProfile |
getConcreteServiceProfile()
Returns the profile that identifies the type of concrete service (i.e., NTDomain, Solaris, etc.). |
java.util.Collection |
getHostedServices()
Returns all the hosted services associated with this service. |
OrganizationEntity |
getOrganization()
Returns the organization of the current object. |
PersonEntity |
getOwner()
Deprecated. Replace with getOwners() since TIM 5.0 |
DirectoryObjectEntity |
getOwnerObject()
Returns the owner object of the service (if any). |
java.util.Collection<PersonEntity> |
getOwners()
Returns the owner(s) of the service (if any). |
java.util.Collection |
getPrerequisites()
Returns the prerequisites (if any) of the service. |
boolean |
hasHostedService()
Deprecated. use getHostedServices instead |
void |
removeHostedServices()
Removes all hosted services representing this service. |
void |
setOwner(PersonEntity person)
Changes the owner of the service. |
void |
setOwner(RoleEntity owner)
Changes the owner of the service. |
void |
setPrerequisites(java.util.Collection services)
Changes the list of prerequisites for the service. |
void |
update()
Updates the attributes of the entity in the data store. |
| Methods inherited from class com.ibm.itim.dataservices.model.DirectoryObjectEntity |
|---|
equals, getDirectoryObject, getDistinguishedName, getEntity, getLifecycle, getObjectCategory, getParent, getParentDN, getProfile, getRelationship, getSortValue, getSupportedRelationships, hashCode, initialize, initialize, isSupportedRelationship, remove, remove, setLifecycle, toString, update |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceEntity(DirectoryObject dirObject)
dirObject - Service object holding the attributes of the service.| Method Detail |
|---|
public static ServiceEntity create(Service serviceObject)
public static ServiceEntity create(ObjectProfile profile,
Service service)
profile - Profile identifying the type of this service
(e.g., NT, Exchange).
public PersonEntity getOwner()
throws ModelCommunicationException,
ModelIntegrityException
ModelCommunicationException - Thrown if unable to communicate
with the data store.
ModelIntegrityException - Thrown if a problem exists with
the consistency of the data model preventing the
evaluation of the relationship.
public DirectoryObjectEntity getOwnerObject()
throws ModelCommunicationException,
ModelIntegrityException
ModelCommunicationException - Thrown if unable to communicate
with the data store.
ModelIntegrityException - Thrown if a problem exists with
the consistency of the data model preventing the
evaluation of the relationship.
public java.util.Collection<PersonEntity> getOwners()
throws ModelCommunicationException,
ModelIntegrityException
ModelCommunicationException - Thrown if unable to communicate
with the data store.
ModelIntegrityException - Thrown if a problem exists with
the consistency of the data model preventing the
evaluation of the relationship.
public void setOwner(PersonEntity person)
throws ModelCommunicationException,
ObjectNotFoundException
person - PersonEntity representing the new owner.
ModelCommunicationException - Thrown if unable to communicate
with the data store.
ObjectNotFoundException - Thrown if unable to locate the
entity in the data store. This may be due to a data integrity
problem, or the entity may have been removed by another
client.
public void setOwner(RoleEntity owner)
throws ModelCommunicationException,
ObjectNotFoundException
owner - RoleEntity representing the new owner.
ModelCommunicationException - Thrown if unable to communicate
with the data store.
ObjectNotFoundException - Thrown if unable to locate the
entity in the data store. This may be due to a data integrity
problem, or the entity may have been removed by another
client.
public java.util.Collection getPrerequisites()
throws ModelCommunicationException,
ModelIntegrityException
ModelCommunicationException - Thrown if unable to communicate
with the data store.
ModelIntegrityException - Thrown if a problem exists with
the consistency of the data model preventing the
location of the service's prerequisites. This is most likely due to
the removal of a service from the data store that is identified as
one of the prerequisites.
public void setPrerequisites(java.util.Collection services)
throws ModelCommunicationException,
ObjectNotFoundException
services - Collection of ServiceEntities representing the
prerequisites of the service.
ModelCommunicationException - Thrown if unable to communicate
with the data store.
ObjectNotFoundException - Thrown if unable to locate the
entity in the data store. This may be due to a data integrity
problem, or the entity may have been removed by another
client.public AccountTable getAccountTable()
public void removeHostedServices()
throws ModelCommunicationException,
ModelRemoveException
ModelCommunicationException - Thrown if unable to communicate
with the data store.
ModelRemoveException - Thrown if a problem occurs while trying
to remove the hosted services, leaving one or more in the
data store.
public boolean hasHostedService()
throws ModelCommunicationException
ModelCommunicationException - Thrown if unable to communicate
with the data store.
public java.util.Collection getHostedServices()
throws ModelCommunicationException
ModelCommunicationException
public OrganizationEntity getOrganization()
throws ModelCommunicationException,
ModelIntegrityException
ModelCommunicationException - Thrown if unable to communicate
with the data store.
ModelIntegrityException - Thrown if unable to locate the
related organization. This may be due to a data integrity problem.
public ServiceProfile getConcreteServiceProfile()
throws ModelCommunicationException,
ObjectNotFoundException
ModelCommunicationException - Thrown if unable to communicate
with the data store.
ObjectNotFoundException - Thrown if unable to locate the
related profile. This may be due to a data integrity problem.
public void update()
throws ModelCommunicationException,
ObjectNotFoundException
DirectoryObjectEntity
update in class DirectoryObjectEntityModelCommunicationException - Thrown if unable to communicate
with the data store.
ObjectNotFoundException - Thrown if unable to locate the
entity in the data store. This may be due to a data integrity
problem, or the entity may have been removed by another
client.DirectoryObjectEntity.update()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||