|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.itim.dataservices.model.DirectoryObjectEntity | +--com.ibm.itim.dataservices.model.domain.ServiceEntity
Class that represents a service within the data model.
Field Summary |
---|
Fields inherited from class com.ibm.itim.dataservices.model.DirectoryObjectEntity |
---|
ORGANIZATION, PARENT |
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.). |
OrganizationEntity |
getOrganization()
Returns the organization of the current object. |
PersonEntity |
getOwner()
Returns the owner of the service (if any). |
java.util.Collection |
getPrerequisites()
Returns the prerequisites (if any) of the service. |
boolean |
hasHostedService()
Determines whether the service has a hosted service proxying it. |
void |
removeHostedServices()
Removes all hosted services representing this service. |
void |
setOwner(PersonEntity person)
Changes the owner of the service. |
void |
setPrerequisites(java.util.Collection services)
Changes the list of prerequisites for the service. |
Methods inherited from class com.ibm.itim.dataservices.model.DirectoryObjectEntity |
---|
equals, getDirectoryObject, getDistinguishedName, getEntity, getLifecycle, getParent, getParentDN, getProfile, getRelationship, getSupportedRelationships, hashCode, isSupportedRelationship, remove, remove, setLifecycle, toString, update, 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 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 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 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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |