public final class TemplateDataTenantOperationsListener extends AbstractTenantOperationsListener implements org.springframework.context.ApplicationContextAware
| Modifier and Type | Class and Description |
|---|---|
static class |
TemplateDataTenantOperationsListener.DeleteTuple
Used in the implementation of onDelete.
|
| Constructor and Description |
|---|
TemplateDataTenantOperationsListener() |
| Modifier and Type | Method and Description |
|---|---|
TenantOperationResponse |
importWithResources(org.apereo.portal.tenants.ITenant tenant,
java.util.Set<org.springframework.core.io.Resource> resources)
High-level implementation method that brokers the queuing, importing, and reporting that is
common to Create and Update.
|
TenantOperationResponse |
onCreate(org.apereo.portal.tenants.ITenant tenant)
Allows the listener to respond to the creation of a new tenant.
|
TenantOperationResponse |
onDelete(org.apereo.portal.tenants.ITenant tenant)
Allows the listener to respond to the removal of a tenant.
|
TenantOperationResponse |
onUpdate(org.apereo.portal.tenants.ITenant tenant)
Allows the listener to respond to a change in the metadata originally used to define a
tenant.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setDataTypeImportOrder(java.util.List<org.apereo.portal.io.xml.IPortalDataType> dataTypeImportOrder)
The
@Autowired list will reflect the order in which data types should be
imported. |
void |
setEntitiesToRemoveOnDelete(java.util.List<TemplateDataTenantOperationsListener.DeleteTuple> entitiesToRemoveOnDelete) |
void |
setEntityResourcesToImportOnUpdate(java.util.Set<java.lang.String> entityResourcesToImportOnUpdate) |
void |
setup() |
createLocalizedMessage, getAvaialableActions, getFname, getName, isOptional, validateAttributepublic TemplateDataTenantOperationsListener()
@Autowired public void setDataTypeImportOrder(java.util.List<org.apereo.portal.io.xml.IPortalDataType> dataTypeImportOrder)
@Autowired list will reflect the order in which data types should be
imported.public void setEntityResourcesToImportOnUpdate(java.util.Set<java.lang.String> entityResourcesToImportOnUpdate)
public void setEntitiesToRemoveOnDelete(java.util.List<TemplateDataTenantOperationsListener.DeleteTuple> entitiesToRemoveOnDelete)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAware@PostConstruct
public void setup()
throws java.lang.Exception
java.lang.Exceptionpublic TenantOperationResponse onCreate(org.apereo.portal.tenants.ITenant tenant)
ITenantOperationsListeneronCreate in interface ITenantOperationsListeneronCreate in class AbstractTenantOperationsListenerpublic TenantOperationResponse onUpdate(org.apereo.portal.tenants.ITenant tenant)
ITenantOperationsListeneronUpdate in interface ITenantOperationsListeneronUpdate in class AbstractTenantOperationsListenerpublic TenantOperationResponse onDelete(org.apereo.portal.tenants.ITenant tenant)
ITenantOperationsListeneronDelete in interface ITenantOperationsListeneronDelete in class AbstractTenantOperationsListenerpublic TenantOperationResponse importWithResources(org.apereo.portal.tenants.ITenant tenant, java.util.Set<org.springframework.core.io.Resource> resources)