@Service(value="blEntityDuplicatorExtensionManager") public class EntityDuplicatorExtensionManager extends ExtensionManager<EntityDuplicatorExtensionHandler> implements EntityDuplicatorExtensionHandler
Modifier and Type | Field and Description |
---|---|
static ExtensionManagerOperation |
addToSandbox |
static ExtensionManagerOperation |
getCatalogsForPropagation |
static ExtensionManagerOperation |
getClonesByCatalogs |
static ExtensionManagerOperation |
setupDuplicate |
static ExtensionManagerOperation |
tearDownDuplicate |
static ExtensionManagerOperation |
validateDuplicate |
extensionHandler, handlers, handlersSorted, LOCK_OBJECT
Constructor and Description |
---|
EntityDuplicatorExtensionManager() |
Modifier and Type | Method and Description |
---|---|
ExtensionResultStatusType |
addToSandbox(Object entity)
Add duplication entity to the sandbox
|
ExtensionResultStatusType |
getCatalogsForPropagation(MultiTenantCopyContext context,
ExtensionResultHolder<List<MultiTenantCopyContext>> resultHolder) |
ExtensionResultStatusType |
getClonesByCatalogs(String tableName,
Long id,
MultiTenantCopyContext multiTenantCopyContext,
ExtensionResultHolder<Map<Long,Map<Long,Long>>> resultHolder) |
boolean |
isEnabled()
If false, the ExtensionManager should skip this Handler.
|
ExtensionResultStatusType |
setupDuplicate(Object entity,
ExtensionResultHolder<MultiTenantCopyContext> resultHolder)
Perform any required context and state setup before commencing with the duplication
|
ExtensionResultStatusType |
tearDownDuplicate()
Tear down any expired context and state used during the duplication
|
ExtensionResultStatusType |
validateDuplicate(Object entity,
ExtensionResultHolder<Boolean> resultHolder)
Confirm whether or not duplication operation is allowed
|
continueOnHandled, execute, getHandlers, getPriority, getProxy, invoke, registerHandler, setHandlers, shouldContinue, sortHandlers
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority
public static final ExtensionManagerOperation validateDuplicate
public static final ExtensionManagerOperation setupDuplicate
public static final ExtensionManagerOperation tearDownDuplicate
public static final ExtensionManagerOperation addToSandbox
public static final ExtensionManagerOperation getCatalogsForPropagation
public static final ExtensionManagerOperation getClonesByCatalogs
public ExtensionResultStatusType validateDuplicate(Object entity, ExtensionResultHolder<Boolean> resultHolder)
EntityDuplicatorExtensionHandler
validateDuplicate
in interface EntityDuplicatorExtensionHandler
public ExtensionResultStatusType setupDuplicate(Object entity, ExtensionResultHolder<MultiTenantCopyContext> resultHolder)
EntityDuplicatorExtensionHandler
setupDuplicate
in interface EntityDuplicatorExtensionHandler
public ExtensionResultStatusType addToSandbox(Object entity)
EntityDuplicatorExtensionHandler
addToSandbox
in interface EntityDuplicatorExtensionHandler
public ExtensionResultStatusType tearDownDuplicate()
EntityDuplicatorExtensionHandler
tearDownDuplicate
in interface EntityDuplicatorExtensionHandler
public ExtensionResultStatusType getCatalogsForPropagation(MultiTenantCopyContext context, ExtensionResultHolder<List<MultiTenantCopyContext>> resultHolder)
getCatalogsForPropagation
in interface EntityDuplicatorExtensionHandler
public ExtensionResultStatusType getClonesByCatalogs(String tableName, Long id, MultiTenantCopyContext multiTenantCopyContext, ExtensionResultHolder<Map<Long,Map<Long,Long>>> resultHolder)
getClonesByCatalogs
in interface EntityDuplicatorExtensionHandler
public boolean isEnabled()
ExtensionHandler
isEnabled
in interface ExtensionHandler
Copyright © 2022. All rights reserved.