org.eclipse.higgins.user.account
Interface IUserAccountService


public interface IUserAccountService

Defines the interface for Account user accounts management


Method Summary
 Account createAccount(Serializable userId, Account account)
          Create a new user account
 void deleteAccount(Serializable userId)
          Delete account
 boolean existsAccount(String userLogin)
          Check whether the account with such login exists
 Account getAccount(Serializable userId)
          Get existent account by user identifier
 Serializable getAccountId(String userLogin)
          Return id of account by the login
 Account modifyAccount(Account account)
          Modify existent user account
 

Method Detail

createAccount

Account createAccount(Serializable userId,
                      Account account)
                      throws UserAccountException
Create a new user account

Parameters:
userId - Default user identifier, may be null.
account -
Returns:
Throws:
UserAccountException

modifyAccount

Account modifyAccount(Account account)
                      throws UserAccountException
Modify existent user account

Parameters:
account - Existent user account with not null identifier
Returns:
Throws:
UserAccountException

deleteAccount

void deleteAccount(Serializable userId)
                   throws UserAccountException
Delete account

Parameters:
userId - Identifier of account which should be deleted
Throws:
UserAccountException

getAccount

Account getAccount(Serializable userId)
                   throws UserAccountException
Get existent account by user identifier

Parameters:
userId -
Returns:
Throws:
UserAccountException

existsAccount

boolean existsAccount(String userLogin)
                      throws UserAccountException
Check whether the account with such login exists

Parameters:
userLogin -
Returns:
Throws:
UserAccountException

getAccountId

Serializable getAccountId(String userLogin)
                          throws UserAccountException
Return id of account by the login

Parameters:
userLogin -
Returns:
Throws:
UserAccountException