public class AccountEntity extends DirectoryObjectEntity
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OWNER
Relationship name for an account's owner.
|
ORGANIZATION, PARENT| Constructor and Description |
|---|
AccountEntity(Account account)
Constructs an AccountEntity with a value object.
|
AccountEntity(DirectoryObject account)
Constructs an AccountEntity, taking a DirectoryObject as the parameter.
|
AccountEntity(ObjectProfile profile,
Account account)
Constructs an AccountEntity with a profile and value object.
|
| Modifier and Type | Method and Description |
|---|---|
DirectoryObjectEntity |
addComplianceIssue(ComplianceIssue issue)
Changes the current compliance issues logged against the account.
|
void |
adopt(PersonEntity person)
Adopt an orphan account by assigning an owner for the account.
|
java.util.Collection |
getComplianceIssues()
Returns the current compliance issues logged against the account
(if any).
|
java.util.Collection<GroupEntity> |
getGroups()
Returns a list of groups that this account belongs to.
|
PersonEntity |
getOwner()
Returns the owner of an account.
|
java.lang.String |
getOwnershipType()
Returns the ownership type of the account.
|
ServiceEntity |
getService()
Returns a service that hosts the account.
|
java.util.Collection<java.lang.String> |
hasDependentAccounts(Account account1) |
boolean |
isOrphan()
Determines whether the account is an orphan.
|
AccountEntity |
orphan()
Orphan an account by removing the owner from the account.
|
void |
remove()
Removes the account from the data store.
|
void |
removeAllIssues()
Remove supporting data entries of the service in the enrole data store
|
void |
removeComplianceIssue(DistinguishedName dn)
Remove compliance issue entry by its Distinguished Name.
|
void |
update()
Updates the attributes of the entity in the data store.
|
void |
update(Account account)
Deprecated.
use update().
|
equals, getDirectoryObject, getDistinguishedName, getEntity, getLifecycle, getObjectCategory, getParent, getParentDN, getProfile, getRelationship, getSortValue, getSupportedRelationships, hashCode, initialize, initialize, isSupportedRelationship, remove, setLifecycle, toString, updatepublic static final java.lang.String OWNER
public AccountEntity(ObjectProfile profile, Account account)
profile - Profile identifying the type of this account.account - Account object holding the attributes of the account.public AccountEntity(Account account)
account - Account object holding the attributes of the account.
Note: the object must have the name of the profile identifying the
type of this account (i.e., NTAccount, ExchangeAccount, etc.)public AccountEntity(DirectoryObject account)
account - DirectoryObject holding the attributes of the account.
Note: the object must have the name of the profile identifying the
type of this account (i.e., NTAccount, ExchangeAccount, etc.)public void adopt(PersonEntity person) throws ModelCommunicationException, ModelIntegrityException
person - PersonEntity object representing a person.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
adoption of the account.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 ServiceEntity getService() throws ModelCommunicationException, ObjectNotFoundException
ModelCommunicationException - Thrown if unable to communicate
with the data store.ObjectNotFoundException - Thrown if unable to locate the
related service. This may be due to a data integrity problem.public java.lang.String getOwnershipType()
public java.util.Collection<GroupEntity> getGroups() throws ModelCommunicationException, ObjectNotFoundException
ModelCommunicationException - Thrown if unable to communicate
with the data store.ObjectNotFoundException - Thrown if unable to locate the
related service. This may be due to a data integrity problem.public AccountEntity orphan() 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
adoption of the account.public boolean isOrphan()
public void remove()
throws ModelCommunicationException,
ObjectNotFoundException,
ModelRemoveException
remove 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 already been removed by
another client.ModelRemoveException - Thrown if unable to remove an object
of the data store.public void update()
throws ModelCommunicationException,
ObjectNotFoundException
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.
Over update() of DirectoryObjectEntity because rename the object if
eruid is changed for TIM account.public void update(Account account) throws ModelCommunicationException, ObjectNotFoundException
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.
Over update(DirectoryObject) of DirectoryObjectEntity because rename the object if
eruid is changed for TIM account.public java.util.Collection getComplianceIssues()
throws ModelCommunicationException,
ObjectNotFoundException
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 already been removed by
another client.public DirectoryObjectEntity addComplianceIssue(ComplianceIssue issue) throws ModelCommunicationException, ModelCreationException
issue - Collection of ComplianceIssue objects representing the
complete set of issues.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 already been removed by
another client.ModelCreationExceptionpublic void removeComplianceIssue(DistinguishedName dn) throws ModelCommunicationException, ModelRemoveException
public void removeAllIssues()
throws ModelCommunicationException,
ModelRemoveException
public java.util.Collection<java.lang.String> hasDependentAccounts(Account account1)