Interface EmailAccountService
- All Superinterfaces:
- com.google.gwt.user.client.rpc.RemoteService
@RemoteServiceRelativePath("emailaccount")
public interface EmailAccountService
extends com.google.gwt.user.client.rpc.RemoteService
The client side stub for the EmailAccount Service. This service gives all
 needed methods to handle templates.
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionvoidchangeStatus(long id, boolean enabled) Changes an account enabled/disabled statusclone(long id) Clones a given email accountvoiddelete(long id) Deletes a given accountget(long id) Loads a given account from the databasevoidresetCache(long id) Cleans the cachevoidresetCounter(long id) Reset the import countersave(GUIEmailAccount account) Creates or updates an accountbooleantest(long id) Test the connection to the given account
- 
Method Details- 
deleteDeletes a given account- Parameters:
- id- identifier of the email account
- Throws:
- ServerException- an error happened in the server application
 
- 
saveCreates or updates an account- Parameters:
- account- the account to save
- Returns:
- the saved email account
- Throws:
- ServerException- an error happened in the server application
 
- 
getLoads 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
 
- 
testTest 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
 
- 
changeStatusChanges an account enabled/disabled status- Parameters:
- id- identifier of the account
- enabled- flag indicating is the account must be enabled
- Throws:
- ServerException- an error happened in the server application
 
- 
resetCacheCleans the cache- Parameters:
- id- identifier of the email account
- Throws:
- ServerException- an error happened in the server application
 
- 
resetCounterReset the import counter- Parameters:
- id- identifier of the import folder
- Throws:
- ServerException- an error happened in the server application
 
- 
cloneClones a given email account- Parameters:
- id- Identifier of the original accout to clone
- Returns:
- The created clone
- Throws:
- ServerException- an error happened in the server application
 
 
-