|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccountService
Used to create, save, retrieve, update and delete Account objects from persistent storage
Method Summary | |
---|---|
void |
deleteAccount(Account account)
|
Account |
findAccountByName(String name)
Returns an Account by names, or null if the Account is not found. |
Role |
findRoleByName(String name)
Returns a Role by names, or null if the Role is not found. |
Account |
loadAccountByName(String name)
loads an Account object, or throws exception if Account with that name is not found |
SortedSet<Account> |
loadAllAccounts(boolean initializeAccounts)
Loads all Accounts defined in the system |
SortedSet<PermissionContext> |
loadAllPermissionContexts()
Loads all PermissionContexts defined in the system |
SortedSet<Role> |
loadAllRoles()
Loads all Roles defined in the system |
Role |
loadRoleByName(String name)
loads an Role object, or throws exception if Role with that name is not found |
Account |
newAccount()
returns a new Account instance |
void |
saveAccount(Account account)
|
void |
saveOrUpdateAccount(Account account)
|
void |
setAccountPassword(Account account,
String passwordToEncrypt)
|
Method Detail |
---|
Account findAccountByName(String name)
null
if the Account is not found.
name
- the Account nameAccount loadAccountByName(String name) throws EntityNotFoundException
name
- a name that uniquely identifies this Account
EntityNotFoundException
- if a Account object with that name is not foundSortedSet<Account> loadAllAccounts(boolean initializeAccounts)
Account newAccount()
void saveAccount(Account account)
void saveOrUpdateAccount(Account account)
void deleteAccount(Account account)
Role findRoleByName(String name)
null
if the Role is not found.
name
- the Role nameRole loadRoleByName(String name) throws EntityNotFoundException
name
- a name that uniquely identifies this Role
EntityNotFoundException
- if a Role object with that name is not foundSortedSet<Role> loadAllRoles()
SortedSet<PermissionContext> loadAllPermissionContexts()
void setAccountPassword(Account account, String passwordToEncrypt)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |