TenantManagerHook
instead.@Deprecated
public interface TenantCustomizer
Modifier and Type | Method and Description |
---|---|
void |
remove(Tenant tenant,
ResourceResolver resolver)
Deprecated.
Called to remove the setup for the given Tenant.
|
java.util.Map<java.lang.String,java.lang.Object> |
setup(Tenant tenant,
ResourceResolver resolver)
Deprecated.
Method called to create or update the given tenant.
|
java.util.Map<java.lang.String,java.lang.Object> setup(Tenant tenant, ResourceResolver resolver)
The ResourceResolver.commit
method must not be called by this
method.
This method is not expected to throw an exception. Any exception thrown is logged but otherwise ignored.
tenant
- The Tenant
to be configured by this callresolver
- The ResourceResolver
providing access to the
persistence for further setup. Note, that this
resolver
will have administrative privileges.null
or an empty map may be
returned to not add properties.void remove(Tenant tenant, ResourceResolver resolver)
The ResourceResolver.commit
method must not be called by this
method.
This method is not expected to throw an exception. Any exception thrown is logged but otherwise ignored.
tenant
- The Tenant
about to be removedresolver
- The ResourceResolver
providing access to the
persistence for further cleanup. Note, that this
resolver
will have administrative privileges."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"