public abstract class AbstractTenantOperationsListener extends java.lang.Object implements ITenantOperationsListener
ITenantOperationsListener as no-ops and can therefore serve as
a base class for concrete listeners that need to override some but not all of the methods.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTenantOperationsListener(java.lang.String fname) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
createLocalizedMessage(java.lang.String messageCode,
java.lang.Object[] args) |
java.util.Set<ITenantManagementAction> |
getAvaialableActions()
Listeners may optionally define one or more operations that may be performed on an existing
tenant.
|
java.lang.String |
getFname()
The (short) string that identifies this listener uniquely.
|
java.lang.String |
getName()
Provides a human-readable name for this listener suitable for displaying in the UI.
|
boolean |
isOptional()
Is skipping this listener permissable?
|
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 |
validateAttribute(java.lang.String key,
java.lang.String value)
Default implementation is a no-op.
|
protected AbstractTenantOperationsListener(java.lang.String fname)
public final java.lang.String getName()
ITenantOperationsListenergetName in interface ITenantOperationsListenerpublic final java.lang.String getFname()
ITenantOperationsListenergetFname in interface ITenantOperationsListenerpublic boolean isOptional()
ITenantOperationsListenerisOptional in interface ITenantOperationsListenerpublic TenantOperationResponse onCreate(org.apereo.portal.tenants.ITenant tenant)
ITenantOperationsListeneronCreate in interface ITenantOperationsListenerpublic TenantOperationResponse onUpdate(org.apereo.portal.tenants.ITenant tenant)
ITenantOperationsListeneronUpdate in interface ITenantOperationsListenerpublic TenantOperationResponse onDelete(org.apereo.portal.tenants.ITenant tenant)
ITenantOperationsListeneronDelete in interface ITenantOperationsListenerpublic java.util.Set<ITenantManagementAction> getAvaialableActions()
ITenantOperationsListenergetAvaialableActions in interface ITenantOperationsListenerpublic void validateAttribute(java.lang.String key,
java.lang.String value)
throws java.lang.Exception
validateAttribute in interface ITenantOperationsListenerjava.lang.Exceptionprotected java.lang.String createLocalizedMessage(java.lang.String messageCode,
java.lang.Object[] args)