public interface TenantManagementService extends SearchExecutionService<TenantListItemType>
Modifier and Type | Method and Description |
---|---|
TenantReferenceType |
createTenant(String name,
String description,
String adminPassword)
This method creates a new tenant with the given name and description and returns a reference to the new tenant.
|
void |
deleteSchemaExtension(TenantReferenceType tenant)
This method deletes the schema-extension of the given tenant.
|
void |
deleteTenant(TenantReferenceType reference)
Deletes the tenant with the given reference.
|
Map<String,PropertyType> |
getSchemaExtension(TenantReferenceType tenant)
This method returns the schema-extension for the given tenant.
|
SearchExecutionService<TenantListItemType> |
getSearchServiceForDeletedItems() |
TenantType |
loadTenant(String name)
Loads a tenant identified by its name.
|
TenantType |
loadTenant(TenantReferenceType reference)
This method returns a tenant given its id.
|
SearchResultPage<TenantListItemType> |
search(Statement statement,
PageDefinition pageDefinition)
This method lists all tenants in the system.
|
void |
setSchemaExtension(TenantReferenceType tenant,
Map<String,PropertyType> schemaExtension)
This method stores the given schema-extension for the given tenant.
|
void |
undeleteTenant(TenantReferenceType reference)
Un-deletes the tenant with the given reference.
|
void |
updateTenant(TenantReferenceType reference,
String description)
Updates the referenced tenant with the given properties.
|
TenantType loadTenant(TenantReferenceType reference) throws ResourceNotFoundException, EcmException
reference
- the reference of the tenant to getResourceNotFoundException
- the referenced tenant does not exist in the backend systemEcmException
- indicates that a system exception occurredTenantType loadTenant(String name) throws ResourceNotFoundException, EcmException
name
- the name of the tenant to loadResourceNotFoundException
- the referenced tenant does not exist in the backend systemSystemException
- indicates that a system exception occurredEcmException
void deleteTenant(TenantReferenceType reference) throws EcmException
reference
- the tenant referenceResourceNotFoundException
- the referenced tenant does not exist in the backend systemSystemException
- indicates that a system exception occurredEcmException
void undeleteTenant(TenantReferenceType reference) throws EcmException
reference
- the tenant referenceSystemException
- indicates that a system exception occurredEcmException
SearchResultPage<TenantListItemType> search(Statement statement, PageDefinition pageDefinition) throws EcmException
search
in interface SearchExecutionService<TenantListItemType>
statement
- additional statement to filter the tenantspageDefinition
- the page of the result to returnEcmException
- indicates that a system exception occurredSearchExecutionService<TenantListItemType> getSearchServiceForDeletedItems()
TenantReferenceType createTenant(String name, String description, String adminPassword) throws EcmException
name
- the name of the tenantdescription
- a description of the tenantadminPassword
- the password for the tenant-administratorSystemException
- indicates that a system exception occurredEcmException
void updateTenant(TenantReferenceType reference, String description) throws EcmException
reference
- the tenant referencedescription
- a tenant descriptionResourceNotFoundException
- the referenced tenant does not exist in the backend systemSystemException
- indicates that a system exception occurredEcmException
Map<String,PropertyType> getSchemaExtension(TenantReferenceType tenant) throws EcmException
tenant
- the tenantEcmException
void setSchemaExtension(TenantReferenceType tenant, Map<String,PropertyType> schemaExtension) throws EcmException
tenant
- the tenantschemaExtension
- the schema-extension to storeEcmException
void deleteSchemaExtension(TenantReferenceType tenant) throws EcmException
tenant
- the tenantEcmException
- when deleting the schema-extension failedCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.