Class TenantManagementClientImpl
java.lang.Object
com.lexmark.saperion.client.implementation.SearchClientImpl<com.lexmark.saperion.administration.TenantType>
com.lexmark.saperion.client.implementation.administration.TenantManagementClientImpl
- All Implemented Interfaces:
TenantManagementClient,SearchClient<com.lexmark.saperion.administration.TenantType>,com.lexmark.saperion.search.SearchExecutionService<com.lexmark.saperion.administration.TenantType>
public class TenantManagementClientImpl
extends SearchClientImpl<com.lexmark.saperion.administration.TenantType>
implements TenantManagementClient
This is the default implementation of
TenantManagementClient.- Author:
- jschwarz
-
Constructor Summary
ConstructorsConstructorDescriptionTenantManagementClientImpl(com.lexmark.saperion.administration.TenantManagementService tenantManagementService) -
Method Summary
Modifier and TypeMethodDescriptioncom.lexmark.saperion.administration.TenantReferenceTypecreateTenant(String name, String description, String adminPassword) This method creates a new tenant with the given name and description and returns a reference to the new tenant.resolve(com.lexmark.saperion.administration.TenantReferenceType reference) This method returns a client capable to administrate the tenant with the given reference.resolveName(String tenantName) This method returns a client capable to administrate the tenant with the given name.SearchClient<com.lexmark.saperion.administration.TenantType>This method returns a newSearchClientthat can be used to search for deleted tenants.Methods inherited from class com.lexmark.saperion.client.implementation.SearchClientImpl
exists, list, list, list, list, list, list, list, page, page, search, uniqueResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.lexmark.saperion.client.SearchClient
exists, list, list, list, list, list, list, list, page, page, uniqueResultMethods inherited from interface com.lexmark.saperion.search.SearchExecutionService
searchMethods inherited from interface com.lexmark.saperion.client.administration.TenantManagementClient
createTenant
-
Constructor Details
-
TenantManagementClientImpl
public TenantManagementClientImpl(com.lexmark.saperion.administration.TenantManagementService tenantManagementService)
-
-
Method Details
-
resolve
public TenantClient resolve(com.lexmark.saperion.administration.TenantReferenceType reference) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:TenantManagementClientThis method returns a client capable to administrate the tenant with the given reference.- Specified by:
resolvein interfaceTenantManagementClient- Parameters:
reference- a reference to the tenant to administrate- Returns:
- a client capable to administrate the tenant with the given reference
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
resolveName
public TenantClient resolveName(String tenantName) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:TenantManagementClientThis method returns a client capable to administrate the tenant with the given name.- Specified by:
resolveNamein interfaceTenantManagementClient- Parameters:
tenantName- the name of the tenant to administrate- Returns:
- a client capable to administrate the tenant with the given name
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
createTenant
public com.lexmark.saperion.administration.TenantReferenceType createTenant(String name, String description, String adminPassword) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:TenantManagementClientThis method creates a new tenant with the given name and description and returns a reference to the new tenant. A tenant-administrator user with the given password will be created automatically.- Specified by:
createTenantin interfaceTenantManagementClient- Parameters:
name- the name of the tenantdescription- a description of the tenantadminPassword- the password for the tenant-administrator- Returns:
- a reference to the newly created tenant
- Throws:
com.lexmark.saperion.exceptions.EcmException- indicates that a system exception occurred
-
searchDeleted
Description copied from interface:TenantManagementClientThis method returns a newSearchClientthat can be used to search for deleted tenants.- Specified by:
searchDeletedin interfaceTenantManagementClient- Returns:
- a search client for deleted tenants
-