org.tolven.core
Interface AccountDAORemote

All Known Implementing Classes:
AccountDAOBean

public interface AccountDAORemote


Method Summary
 AccountUser addAccountUser(Account account, TolvenUser user, java.util.Date now, boolean accountPermission)
           
 Account createAccount(java.lang.String knownType, java.lang.String title, java.lang.String timeZone)
          Create a new account.
 Account createAccount2(java.lang.String title, java.lang.String timeZone, AccountType accType)
          Create a new account.
 AccountType createAccountType(java.lang.String knownType)
          createAccountType - create a new row in AccountType
 AccountType createAccountType(java.lang.String knownType, java.lang.String homePage, java.lang.String longDesc, boolean readOnly, java.lang.String status, boolean userCanCreate)
          Create new AccountType record
 Account findAccount(long accountId)
          Find an account given the account id.
 Account findAccountTemplate(Account account)
          Given an account, return its AccountTemplate, the account containing metadata used to populate the account.
 Account findAccountTemplate(java.lang.String knownType)
          Given an knownType of accountType, return its AccountTemplate.
 AccountType findAccountType(long id)
          Find an accountType by id
 AccountType findAccountTypebyKnownType(java.lang.String kt)
          Return a single AccountType by known_type
 AccountUser findAccountUser(java.lang.String username, long accountId)
          Find an accountUser given the username and account id.
 java.util.List<AccountType> findActiveAccountTypes()
          Get active AccountTypes
 java.util.List<AccountType> findAllAccountTypes()
          Return a list of all AccountTypes (both active and inactive)
 void setAccountTemplate(java.lang.String knownType, Account account)
          Specifies the account to use as a template when creating new accounts
 void updateAccountType(AccountType accountType)
          Update AccountType record
 

Method Detail

findAccount

Account findAccount(long accountId)
Find an account given the account id.

Parameters:
accountId -
Returns:
the account object

findAllAccountTypes

java.util.List<AccountType> findAllAccountTypes()
Return a list of all AccountTypes (both active and inactive)


findActiveAccountTypes

java.util.List<AccountType> findActiveAccountTypes()
Get active AccountTypes

Returns:

createAccount2

Account createAccount2(java.lang.String title,
                       java.lang.String timeZone,
                       AccountType accType)
Create a new account. No users are associated with this account.

Parameters:
accountType -
timeZone - Java time zone, null means use tolven default
Returns:
A new Account object

createAccount

Account createAccount(java.lang.String knownType,
                      java.lang.String title,
                      java.lang.String timeZone)
Create a new account. No users are associated with this account.

Parameters:
accountType -
Returns:
A new Account object

addAccountUser

AccountUser addAccountUser(Account account,
                           TolvenUser user,
                           java.util.Date now,
                           boolean accountPermission)
See Also:
AccountDAOBean

findAccountType

AccountType findAccountType(long id)
Find an accountType by id

Returns:
AccountType

findAccountTemplate

Account findAccountTemplate(Account account)
Given an account, return its AccountTemplate, the account containing metadata used to populate the account.

Parameters:
account -
Returns:

setAccountTemplate

void setAccountTemplate(java.lang.String knownType,
                        Account account)
Specifies the account to use as a template when creating new accounts

Parameters:
knownType -
account -

findAccountTemplate

Account findAccountTemplate(java.lang.String knownType)
Given an knownType of accountType, return its AccountTemplate.

Parameters:
knownType -
Returns:

findAccountUser

AccountUser findAccountUser(java.lang.String username,
                            long accountId)
Find an accountUser given the username and account id.


findAccountTypebyKnownType

AccountType findAccountTypebyKnownType(java.lang.String kt)
Return a single AccountType by known_type

Parameters:
kt -
Returns:
AccountType

createAccountType

AccountType createAccountType(java.lang.String knownType,
                              java.lang.String homePage,
                              java.lang.String longDesc,
                              boolean readOnly,
                              java.lang.String status,
                              boolean userCanCreate)
Create new AccountType record

Parameters:
knownType, - homePage, longDesc, readOnly
Returns:
AccountType

createAccountType

AccountType createAccountType(java.lang.String knownType)
createAccountType - create a new row in AccountType

Parameters:
knownType -
Returns:
New AccountType

updateAccountType

void updateAccountType(AccountType accountType)
Update AccountType record

Parameters:
accountType -