com.ibm.itim.dataservices.model.domain
Class AccountFactory

java.lang.Object
  |
  +--com.ibm.itim.dataservices.model.domain.AccountFactory

public class AccountFactory
extends java.lang.Object

Factory class for creating accounts in the data store.

See Also:
AccountEntity

Constructor Summary
AccountFactory()
          Default constructor for the factory.
 
Method Summary
 AccountEntity create(PersonEntity owner, ServiceEntity service, Account account)
          Creates an account in the data store with the given value object to define the account's attributes.
 AccountEntity create(PersonEntity owner, ServiceEntity service, Account account, ObjectProfile profile)
          Creates an account in the data store with the given value object to define the account's attributes.
 AccountEntity create(ServiceEntity service, Account account)
          Creates an orphan account in the data store with the given value object to define the account's attributes.
 AccountEntity create(ServiceEntity service, Account account, ObjectProfile profile)
          Creates an orphan account in the data store with the given value object to define the account's attributes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountFactory

public AccountFactory()
Default constructor for the factory.

Method Detail

create

public AccountEntity create(PersonEntity owner,
                            ServiceEntity service,
                            Account account)
                     throws ModelCommunicationException,
                            ModelCreationException
Creates an account in the data store with the given value object to define the account's attributes.

Parameters:
account - Account value object to use for creation.
service - ServiceEntity that hosts the account.
owner - PersonEntity representing the owner of the account.
Returns:
AccountEntity representing account saved in data store.
Throws:
ModelCommunicationException - Thrown if unable to communicate with the data store.
ModelCreationException - Thrown if unable to create the entity in the data store. Most likely due to some sort of schema violation caused by improper attributes set in the value object.

create

public AccountEntity create(PersonEntity owner,
                            ServiceEntity service,
                            Account account,
                            ObjectProfile profile)
                     throws ModelCommunicationException,
                            ModelCreationException
Creates an account in the data store with the given value object to define the account's attributes.

Parameters:
account - Account value object to use for creation.
service - ServiceEntity that hosts the account.
owner - PersonEntity representing the owner of the account.
profile - ObjectProfile representing the profile use for account creation.
Returns:
AccountEntity representing account saved in data store.
Throws:
ModelCommunicationException - Thrown if unable to communicate with the data store.
ModelCreationException - Thrown if unable to create the entity in the data store. Most likely due to some sort of schema violation caused by improper attributes set in the value object.

create

public AccountEntity create(ServiceEntity service,
                            Account account)
                     throws ModelCommunicationException,
                            ModelCreationException
Creates an orphan account in the data store with the given value object to define the account's attributes.

Parameters:
service - ServiceEntity that hosts the account.
account - Account value object to use for creation.
Returns:
AccountEntity representing account saved in data store.
Throws:
ModelCommunicationException - Thrown if unable to communicate with the data store.
ModelCreationException - Thrown if unable to create the entity in the data store. Most likely due to some sort of schema violation caused by improper attributes set in the value object.

create

public AccountEntity create(ServiceEntity service,
                            Account account,
                            ObjectProfile profile)
                     throws ModelCommunicationException,
                            ModelCreationException
Creates an orphan account in the data store with the given value object to define the account's attributes.

Parameters:
service - ServiceEntity that hosts the account.
account - Account value object to use for creation.
profile - ObjectProfile profile of a new account.
Returns:
AccountEntity representing account saved in data store.
Throws:
ModelCommunicationException - Thrown if unable to communicate with the data store.
ModelCreationException - Thrown if unable to create the entity in the data store. Most likely due to some sort of schema violation caused by improper attributes set in the value object.


IBM Tivoli Identity Manager 4.6
© Copyright International Business Machines Corporation 2005. All rights reserved. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.