Interface TenantService
- 
- All Superinterfaces:
 com.google.gwt.user.client.rpc.RemoteService
@RemoteServiceRelativePath("tenant") public interface TenantService extends com.google.gwt.user.client.rpc.RemoteServiceThe client side stub for the Tenant Service. This service allows r/w operations on tenants.- Since:
 - 6.9
 - Author:
 - Marco Meschieri - LogicalDOC
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTenantService.Instance 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchangeAdminPassword(String password, String tenantName)Changes the password of the administrator of the given tenantGUITenantchangeSessionTenant(long tenantId)Change session tenantvoiddelete(long tenantId)Deletes a specific tenant by its IDStringencodeBrandingImage()Encodes the uploaded branding imageGUIBrandingimportBrandingPackage()Imports the uploaded branding packageGUITenantload(long tenantId)Loads a given tenantGUITenantsave(GUITenant tenant)Saves/Updates a given tenant 
 - 
 
- 
- 
Method Detail
- 
delete
void delete(long tenantId) throws ServerExceptionDeletes a specific tenant by its ID- Parameters:
 tenantId- identifier of the tenant- Throws:
 ServerException- an error happened in the server application
 
- 
save
GUITenant save(GUITenant tenant) throws ServerException
Saves/Updates a given tenant- Parameters:
 tenant- the tenant to save- Returns:
 - the saved tenant
 - Throws:
 ServerException- an error happened in the server application
 
- 
load
GUITenant load(long tenantId) throws ServerException
Loads a given tenant- Parameters:
 tenantId- identifier of the tenant- Returns:
 - the tenant retrieved by the server application
 - Throws:
 ServerException- an error happened in the server application
 
- 
changeAdminPassword
void changeAdminPassword(String password, String tenantName) throws ServerException
Changes the password of the administrator of the given tenant- Parameters:
 password- the new password for the administrator usertenantName- name of the tenant- Throws:
 ServerException- an error happened in the server application
 
- 
changeSessionTenant
GUITenant changeSessionTenant(long tenantId) throws ServerException
Change session tenant- Parameters:
 tenantId- identifier of the tenant- Returns:
 - the selected tenant
 - Throws:
 ServerException- an error happened in the server application
 
- 
encodeBrandingImage
String encodeBrandingImage() throws ServerException
Encodes the uploaded branding image- Returns:
 - the Base64 image used for the brand
 - Throws:
 ServerException- an error happened in the server application
 
- 
importBrandingPackage
GUIBranding importBrandingPackage() throws ServerException
Imports the uploaded branding package- Returns:
 - the branding representation
 - Throws:
 ServerException- an error happened in the server application
 
 - 
 
 -