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 TypeMethodDescriptionvoiddelete()This method deletes the tenant.voidThis method deletes the schema-extension properties of the tenant.com.lexmark.saperion.administration.ExtensionPropertiesTypeThis method returns the schema-extension properties of the tenant.com.lexmark.saperion.administration.TenantTypeload()This method loads the tenant.voidsetSchemaExtension(com.lexmark.saperion.administration.ExtensionPropertiesType extension) This method sets the schema-extension properties of the tenant.voidundelete()This method un-deletes the tenant.voidThis 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, waitMethods 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:TenantClientThis method deletes the tenant.- Specified by:
deletein 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:TenantClientThis method un-deletes the tenant.- Specified by:
undeletein 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:TenantClientThis method loads the tenant.- Specified by:
loadin 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:TenantClientThis method updates the tenant with the given properties.- Specified by:
updatein 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:TenantClientThis 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:
setSchemaExtensionin 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:TenantClientThis method returns the schema-extension properties of the tenant.- Specified by:
getSchemaExtensionin 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:TenantClientThis method deletes the schema-extension properties of the tenant.- Specified by:
deleteExtensionin interfaceTenantClient- Throws:
com.lexmark.saperion.exceptions.EcmException- when the schema-extension properties could not be deleted
-