|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AccountDAOLocal
This is the business interface for AccountDAO enterprise bean.
| Method Summary | |
|---|---|
void |
accountTypeConversion()
One-time migration 5-Nov-2006 for Accounts without an AccountType. |
AccountUser |
addAccountUser(Account account,
TolvenUser user,
java.util.Date now,
boolean accountPermission)
|
Account |
createAccount(java.lang.String knownType)
Create a new account. |
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 |
Sponsorship |
createSponsorship(Account account,
java.lang.String title)
Create a new sponsorship for the given account. |
Account |
findAccount(long accountId)
Find an account given the account id. |
java.util.List<Sponsorship> |
findAccountSponsorships(Account account)
Find the list of Sponsorships owned by the specified account |
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<AccountExchange> |
findActiveEndPoints(Account account,
AccountExchange.Direction direction,
boolean complete)
For a given account, return all valid accounts which this account can talk to. |
java.util.List<AccountType> |
findAllAccountTypes()
Return a list of all AccountTypes |
java.util.List<TolvenUser> |
findSponsoredUsers(Sponsorship sponsorship)
Find the list of TolvenUsers referencing the specified Sponsorship |
java.util.List<SponsoredUser> |
findSponsoredUsersForAccount(Account account)
Return a list of users sponsored users by the specified account. |
AccountUser |
inviteAccountUser(Account account,
AccountUser accountUser,
TolvenUser invidtedUser,
org.tolven.security.key.UserPrivateKey anInviterPrivateKey,
java.util.Date now,
boolean accountPermission)
|
boolean |
isAccountTemplateCurrent(Account account)
This method checks if the AccountType of an account has a newer version of the template or not. |
void |
markAccountAsUpToDate(Account account)
Mark this account as being up to date with the latest account type |
AccountExchange |
newAccountExchange(Account account,
Account otherAccount,
AccountExchange.Direction direction)
|
void |
setAccountTemplate(java.lang.String knownType,
Account account)
Specifies the account to use as a template when creating new accounts |
void |
setupAccountKeys(Account account,
AccountUser accountUser,
Invitation invitation,
TolvenUser user)
This method was added to handle pre-existing accounts which have no keys. |
java.lang.String |
statusForValue(java.lang.String value)
Get status type for input value |
void |
updateAccount(Account account)
Stick the updated account back in the database. |
void |
updateAccountType(AccountType accountType)
Update AccountType record |
| Method Detail |
|---|
Account findAccount(long accountId)
accountId -
Account createAccount(java.lang.String knownType)
accountType -
void updateAccount(Account account)
account -
Account createAccount(java.lang.String knownType,
java.lang.String title,
java.lang.String timeZone)
accountType - timeZone - Java time zone, null means use tolven default
Account createAccount2(java.lang.String title,
java.lang.String timeZone,
AccountType accType)
accountType - timeZone - Java time zone, null means use tolven default
void markAccountAsUpToDate(Account account)
boolean isAccountTemplateCurrent(Account account)
Account findAccountTemplate(Account account)
account -
Account findAccountTemplate(java.lang.String knownType)
knownType -
void setAccountTemplate(java.lang.String knownType,
Account account)
knownType - account -
AccountUser findAccountUser(java.lang.String username,
long accountId)
AccountUser addAccountUser(Account account,
TolvenUser user,
java.util.Date now,
boolean accountPermission)
AccountDAOBean
AccountUser inviteAccountUser(Account account,
AccountUser accountUser,
TolvenUser invidtedUser,
org.tolven.security.key.UserPrivateKey anInviterPrivateKey,
java.util.Date now,
boolean accountPermission)
AccountDAOBeanjava.util.List<Sponsorship> findAccountSponsorships(Account account)
account -
java.util.List<TolvenUser> findSponsoredUsers(Sponsorship sponsorship)
sponsorship -
Sponsorship createSponsorship(Account account,
java.lang.String title)
AccountType findAccountType(long id)
java.util.List<SponsoredUser> findSponsoredUsersForAccount(Account account)
account -
java.util.List<AccountType> findAllAccountTypes()
java.util.List<AccountType> findActiveAccountTypes()
AccountType findAccountTypebyKnownType(java.lang.String kt)
kt -
AccountType createAccountType(java.lang.String knownType,
java.lang.String homePage,
java.lang.String longDesc,
boolean readOnly,
java.lang.String status,
boolean userCanCreate)
knownType, - homePage, longDesc, readOnly
AccountType createAccountType(java.lang.String knownType)
knownType -
void updateAccountType(AccountType accountType)
accountType - java.lang.String statusForValue(java.lang.String value)
void accountTypeConversion()
void setupAccountKeys(Account account,
AccountUser accountUser,
Invitation invitation,
TolvenUser user)
account - accountUser - invitation - user -
java.util.List<AccountExchange> findActiveEndPoints(Account account,
AccountExchange.Direction direction,
boolean complete)
account - direction - complete - A boolean that when true indicates that both parties in the exchange are in agreement
about the exchange. False means that the "other party" need not have agreed to the exchange. For example,
if the account administrator wants to see a list of other accounts that one could
potentially. communicate with.
AccountExchange newAccountExchange(Account account,
Account otherAccount,
AccountExchange.Direction direction)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||