public interface AccountsDao
| Modifier and Type | Method and Description |
|---|---|
void |
addAccount(Account account) |
Account |
getAccount(Sid sid) |
Account |
getAccount(String name) |
List<String> |
getAccountLineage(Account account)
Overloaded version of getAccontLineage(Sid) that won't retrieve current account since
it's already there.
|
List<String> |
getAccountLineage(Sid accountSid)
Returns a list of all the ancestor account SIDs of an Account all the way up to the
top-level account.
|
Account |
getAccountToAuthenticate(String name)
Created to separate the method used to authenticate from
the method used to obtain an account from the database, using a ordinary
String parameter.
|
List<Account> |
getChildAccounts(Sid parentSid) |
List<String> |
getSubAccountSidsRecursive(Sid parentAccountSid)
Returns a list of all sub-accounts under a parent account.
|
void |
removeAccount(Sid sid) |
void |
updateAccount(Account account) |
void addAccount(Account account)
Account getAccountToAuthenticate(String name)
name - void removeAccount(Sid sid)
void updateAccount(Account account)
List<String> getSubAccountSidsRecursive(Sid parentAccountSid)
parentAccountSid - List<String> getAccountLineage(Sid accountSid) throws AccountHierarchyDepthCrossed
accountSid - AccountHierarchyDepthCrossedList<String> getAccountLineage(Account account) throws AccountHierarchyDepthCrossed
account - AccountHierarchyDepthCrossedCopyright © 2017. All Rights Reserved.