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 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: TenantManagementClient
      This method returns a client capable to administrate the tenant with the given reference.
      Specified by:
      resolve in interface TenantManagementClient
      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: TenantManagementClient
      This method returns a client capable to administrate the tenant with the given name.
      Specified by:
      resolveName in interface TenantManagementClient
      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: 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 interface TenantManagementClient
      Parameters:
      name - the name of the tenant
      description - a description of the tenant
      adminPassword - 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 new SearchClient that can be used to search for deleted tenants.
      Specified by:
      searchDeleted in interface TenantManagementClient
      Returns:
      a search client for deleted tenants