public class ServiceEntity extends DirectoryObjectEntity
ORGANIZATION, PARENT| Constructor and Description |
|---|
ServiceEntity(DirectoryObject dirObject)
Constructs a ServiceEntity with a value object.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
AccessInfo |
getAccessInfo() |
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.
|
equals, getDirectoryObject, getDistinguishedName, getEntity, getLifecycle, getObjectCategory, getParent, getParentDN, getProfile, getRelationship, getSortValue, getSupportedRelationships, hashCode, initialize, initialize, isSupportedRelationship, remove, remove, setLifecycle, toString, updatepublic ServiceEntity(DirectoryObject dirObject)
dirObject - Service object holding the attributes of the service.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 AccessInfo getAccessInfo() throws ModelCommunicationException, ObjectNotFoundException
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
ModelCommunicationExceptionpublic 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
DirectoryObjectEntityupdate 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()