Class TenantClientImpl
- java.lang.Object
-
- com.lexmark.saperion.client.implementation.administration.TenantClientImpl
-
- All Implemented Interfaces:
TenantClient
public class TenantClientImpl extends java.lang.Object implements TenantClient
This is the default implementation ofTenantClient.- Author:
- jschwarz
-
-
Constructor Summary
Constructors Constructor Description TenantClientImpl(com.lexmark.saperion.administration.TenantManagementService tenantManagementService, com.lexmark.saperion.administration.TenantReferenceType reference)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()This method deletes the tenant.voiddeleteExtension()This method deletes the schema-extension properties of the tenant.com.lexmark.saperion.administration.ExtensionPropertiesTypegetSchemaExtension()This 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.voidupdate(java.lang.String description)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
-
-
-
-
Method Detail
-
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
public void update(java.lang.String description) throws com.lexmark.saperion.exceptions.EcmExceptionDescription 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.EcmExceptionDescription 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
-
-