|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.tatool.app.service.impl.UserAccountServiceImpl
public class UserAccountServiceImpl
Implementation of the user account service. Each user account is backed by a database
| Constructor Summary | |
|---|---|
UserAccountServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
changePassword(UserAccount account,
String newPassword)
Change the password for an account. |
void |
closeAccount(UserAccount account)
Closes an opened account. |
UserAccount |
createAccount(String accountName,
Map<String,String> userProperties,
String password)
Create a new account folder. |
void |
deleteAccount(UserAccount account)
Delete a module. |
List<UserAccount.Info> |
getAccounts()
Get all available module instances. |
String |
getDataDirName()
|
Messages |
getMessages()
|
File |
getTatoolDataFolder()
Get the Tatool data folder. |
boolean |
isRelativeToHome()
|
UserAccount |
loadAccount(UserAccount.Info info,
String password)
Opens an account data object. |
void |
saveAccount(UserAccount account)
Saves an account. |
void |
setDataDirName(String dataDirName)
|
void |
setMessages(Messages messages)
|
void |
setRelativeToHome(boolean relativeToHome)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserAccountServiceImpl()
| Method Detail |
|---|
public UserAccount createAccount(String accountName,
Map<String,String> userProperties,
String password)
createAccount in interface UserAccountServiceuserProperties - the properties of the user accountpassword - a password if the user account should be password protected
public UserAccount loadAccount(UserAccount.Info info,
String password)
loadAccount in interface UserAccountServiceinfo - the info object for this accountpassword - the password if required - or null if not
public void saveAccount(UserAccount account)
saveAccount in interface UserAccountServicepublic void closeAccount(UserAccount account)
closeAccount in interface UserAccountService
public void changePassword(UserAccount account,
String newPassword)
changePassword in interface UserAccountServicepublic void deleteAccount(UserAccount account)
deleteAccount in interface UserAccountServicepublic List<UserAccount.Info> getAccounts()
getAccounts in interface UserAccountServicepublic File getTatoolDataFolder()
public String getDataDirName()
public void setDataDirName(String dataDirName)
public boolean isRelativeToHome()
public void setRelativeToHome(boolean relativeToHome)
public void setMessages(Messages messages)
public Messages getMessages()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||