public class UserAccountServiceImpl extends Object implements UserAccountService
| Constructor and Description |
|---|
UserAccountServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
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) |
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 protectedpublic UserAccount loadAccount(UserAccount.Info info, String password)
loadAccount in interface UserAccountServiceinfo - the info object for this accountpassword - the password if required - or null if notpublic void saveAccount(UserAccount account)
saveAccount in interface UserAccountServicepublic void closeAccount(UserAccount account)
closeAccount in interface UserAccountServicepublic 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()
Copyright © 2013. All Rights Reserved.