Class TenantClientImpl
java.lang.Object
com.lexmark.saperion.client.implementation.administration.TenantClientImpl
- All Implemented Interfaces:
TenantClient
This is the default implementation of
TenantClient
.- Author:
- jschwarz
-
Constructor Summary
ConstructorsConstructorDescriptionTenantClientImpl
(com.lexmark.saperion.administration.TenantManagementService tenantManagementService, com.lexmark.saperion.administration.TenantReferenceType reference) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
This method deletes the tenant.void
This method deletes the schema-extension properties of the tenant.com.lexmark.saperion.administration.ExtensionPropertiesType
This method returns the schema-extension properties of the tenant.com.lexmark.saperion.administration.TenantType
load()
This method loads the tenant.void
setSchemaExtension
(com.lexmark.saperion.administration.ExtensionPropertiesType extension) This method sets the schema-extension properties of the tenant.void
undelete()
This method un-deletes the tenant.void
This method updates the tenant with the given properties.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.administration.TenantClient
getExtension, setExtension
-
Constructor Details
-
TenantClientImpl
public TenantClientImpl(com.lexmark.saperion.administration.TenantManagementService tenantManagementService, com.lexmark.saperion.administration.TenantReferenceType reference)
-
-
Method Details
-
delete
public void delete() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:TenantClient
This method deletes the tenant.- Specified by:
delete
in interfaceTenantClient
- Throws:
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurred
-
undelete
public void undelete() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:TenantClient
This method un-deletes the tenant.- Specified by:
undelete
in interfaceTenantClient
- Throws:
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurred
-
load
public com.lexmark.saperion.administration.TenantType load() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:TenantClient
This method loads the tenant.- Specified by:
load
in interfaceTenantClient
- Returns:
- the tenant this service is bound to
- Throws:
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurred
-
update
Description copied from interface:TenantClient
This method updates the tenant with the given properties.- Specified by:
update
in interfaceTenantClient
- Parameters:
description
- a description of the tenant- Throws:
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurred
-
setSchemaExtension
public void setSchemaExtension(com.lexmark.saperion.administration.ExtensionPropertiesType extension) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:TenantClient
This method sets the schema-extension properties of the tenant. Note that only non-null values will be updated when a schema-extension already exists.- Specified by:
setSchemaExtension
in interfaceTenantClient
- Parameters:
extension
- schema-extension properties- Throws:
com.lexmark.saperion.exceptions.EcmException
- when the schema-extension properties could not be set
-
getSchemaExtension
public com.lexmark.saperion.administration.ExtensionPropertiesType getSchemaExtension() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:TenantClient
This method returns the schema-extension properties of the tenant.- Specified by:
getSchemaExtension
in interfaceTenantClient
- Returns:
- schema-extension properties of the tenant
- Throws:
com.lexmark.saperion.exceptions.EcmException
- when the schema-extension properties could not be loaded
-
deleteExtension
public void deleteExtension() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:TenantClient
This method deletes the schema-extension properties of the tenant.- Specified by:
deleteExtension
in interfaceTenantClient
- Throws:
com.lexmark.saperion.exceptions.EcmException
- when the schema-extension properties could not be deleted
-