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 ofTenantManagementClient
.- Author:
- jschwarz
-
-
Constructor Summary
Constructors Constructor Description TenantManagementClientImpl(com.lexmark.saperion.administration.TenantManagementService tenantManagementService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.lexmark.saperion.administration.TenantReferenceType
createTenant(java.lang.String name, java.lang.String description, java.lang.String adminPassword)
This method creates a new tenant with the given name and description and returns a reference to the new tenant.TenantClient
resolve(com.lexmark.saperion.administration.TenantReferenceType reference)
This method returns a client capable to administrate the tenant with the given reference.TenantClient
resolveName(java.lang.String tenantName)
This method returns a client capable to administrate the tenant with the given name.SearchClient<com.lexmark.saperion.administration.TenantType>
searchDeleted()
This method returns a newSearchClient
that 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, uniqueResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.lexmark.saperion.client.SearchClient
exists, list, list, list, list, list, list, list, page, page, uniqueResult
-
Methods inherited from interface com.lexmark.saperion.client.administration.TenantManagementClient
createTenant
-
-
-
-
Method Detail
-
resolve
public TenantClient resolve(com.lexmark.saperion.administration.TenantReferenceType reference) throws com.lexmark.saperion.exceptions.EcmException
Description copied from interface:TenantManagementClient
This method returns a client capable to administrate the tenant with the given reference.- Specified by:
resolve
in 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(java.lang.String tenantName) throws com.lexmark.saperion.exceptions.EcmException
Description copied from interface:TenantManagementClient
This method returns a client capable to administrate the tenant with the given name.- Specified by:
resolveName
in 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(java.lang.String name, java.lang.String description, java.lang.String adminPassword) throws com.lexmark.saperion.exceptions.EcmException
Description copied from interface:TenantManagementClient
This 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:
createTenant
in 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
public SearchClient<com.lexmark.saperion.administration.TenantType> searchDeleted()
Description copied from interface:TenantManagementClient
This method returns a newSearchClient
that can be used to search for deleted tenants.- Specified by:
searchDeleted
in interfaceTenantManagementClient
- Returns:
- a search client for deleted tenants
-
-