Class AbstractBasicPersistenceModuleExtensionHandler
java.lang.Object
org.broadleafcommerce.common.extension.AbstractExtensionHandler
org.broadleafcommerce.openadmin.server.service.persistence.module.extension.AbstractBasicPersistenceModuleExtensionHandler
- All Implemented Interfaces:
ExtensionHandler,BasicPersistenceModuleExtensionHandler
- Direct Known Subclasses:
DefaultBasicPersistenceModuleExtensionHandler
public class AbstractBasicPersistenceModuleExtensionHandler
extends AbstractExtensionHandler
implements BasicPersistenceModuleExtensionHandler
Convenience implementation of interface so that subclasses do not have to implement uninteresting methods
- Author:
- Jeff Fischer
- See Also:
-
Field Summary
Fields inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
enabled, priorityFields inherited from interface org.broadleafcommerce.openadmin.server.service.persistence.module.extension.BasicPersistenceModuleExtensionHandler
DEFAULT_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrebalanceForAdd(BasicPersistenceModule basicPersistenceModule, PersistencePackage persistencePackage, Serializable instance, Map<String, FieldMetadata> mergedProperties, ExtensionResultHolder<Serializable> resultHolder) Handle additions of new members to a basic collection when the items are sortablerebalanceForUpdate(BasicPersistenceModule basicPersistenceModule, PersistencePackage persistencePackage, Serializable instance, Map<String, FieldMetadata> mergedProperties, Object primaryKey, ExtensionResultHolder<Serializable> resultHolder) Handle reorder change requests from the admin for sortable basic collectionsMethods inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
getPriority, isEnabled, setEnabled, setPriorityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler
getPriority, isEnabled
-
Constructor Details
-
AbstractBasicPersistenceModuleExtensionHandler
public AbstractBasicPersistenceModuleExtensionHandler()
-
-
Method Details
-
rebalanceForUpdate
public ExtensionResultStatusType rebalanceForUpdate(BasicPersistenceModule basicPersistenceModule, PersistencePackage persistencePackage, Serializable instance, Map<String, FieldMetadata> mergedProperties, Object primaryKey, ExtensionResultHolder<Serializable> resultHolder) Description copied from interface:BasicPersistenceModuleExtensionHandlerHandle reorder change requests from the admin for sortable basic collections- Specified by:
rebalanceForUpdatein interfaceBasicPersistenceModuleExtensionHandler- Parameters:
basicPersistenceModule- the persistence module responsible for handling basic collection persistence operationspersistencePackage- the data representing the changeinstance- the persisted entitymergedProperties- descriptive data about the entity structureprimaryKey- the primary key value for the persisted entityresultHolder- container for any relevant operation results- Returns:
- the status of execution for this handler - informs the manager on how to proceed
-
rebalanceForAdd
public ExtensionResultStatusType rebalanceForAdd(BasicPersistenceModule basicPersistenceModule, PersistencePackage persistencePackage, Serializable instance, Map<String, FieldMetadata> mergedProperties, ExtensionResultHolder<Serializable> resultHolder) Description copied from interface:BasicPersistenceModuleExtensionHandlerHandle additions of new members to a basic collection when the items are sortable- Specified by:
rebalanceForAddin interfaceBasicPersistenceModuleExtensionHandler- Parameters:
basicPersistenceModule- the persistence module responsible for handling basic collection persistence operationspersistencePackage- the data representing the changeinstance- the persisted entitymergedProperties- descriptive data about the entity structureresultHolder- container for any relevant operation results- Returns:
- the status of execution for this handler - informs the manager on how to proceed
-