Interface EmailAccountService
- 
- All Superinterfaces:
 com.google.gwt.user.client.rpc.RemoteService
@RemoteServiceRelativePath("emailaccount") public interface EmailAccountService extends com.google.gwt.user.client.rpc.RemoteServiceThe client side stub for the EmailAccount Service. This service gives all needed methods to handle templates. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classEmailAccountService.Instance 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchangeStatus(long id, boolean enabled)Changes an account enabled/disabled statusvoiddelete(long id)Deletes a given accountGUIEmailAccountget(long id)Loads a given account from the databasevoidresetCache(long id)Cleans the cacheGUIEmailAccountsave(GUIEmailAccount account)Creates or updates an accountbooleantest(long id)Test the connection to the given account 
 - 
 
- 
- 
Method Detail
- 
delete
void delete(long id) throws ServerExceptionDeletes a given account- Parameters:
 id- identifier of the email account- Throws:
 ServerException- an error happened in the server application
 
- 
save
GUIEmailAccount save(GUIEmailAccount account) throws ServerException
Creates or updates an account- Parameters:
 account- the account to save- Returns:
 - the saved email account
 - Throws:
 ServerException- an error happened in the server application
 
- 
get
GUIEmailAccount get(long id) throws ServerException
Loads a given account from the database- Parameters:
 id- identifier of the account- Returns:
 - the email account retrieved by the server application
 - Throws:
 ServerException- an error happened in the server application
 
- 
test
boolean test(long id) throws ServerExceptionTest the connection to the given account- Parameters:
 id- identifier of the email account to test- Returns:
 - true if the account has been connected
 - Throws:
 ServerException- an error happened in the server application
 
- 
changeStatus
void changeStatus(long id, boolean enabled) throws ServerExceptionChanges an account enabled/disabled status- Parameters:
 id- identifier of the accountenabled- flag indicating is the account must be enabled- Throws:
 ServerException- an error happened in the server application
 
- 
resetCache
void resetCache(long id) throws ServerExceptionCleans the cache- Parameters:
 id- identifier of the email account- Throws:
 ServerException- an error happened in the server application
 
 - 
 
 -