Interface BasicPersistenceModuleExtensionHandler
- All Superinterfaces:
org.broadleafcommerce.common.extension.ExtensionHandler
- All Known Implementing Classes:
AbstractBasicPersistenceModuleExtensionHandler,DefaultBasicPersistenceModuleExtensionHandler
public interface BasicPersistenceModuleExtensionHandler
extends org.broadleafcommerce.common.extension.ExtensionHandler
For internal usage. Allows extending API calls without subclassing the entity.
- Author:
- Jeff Fischer
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.common.extension.ExtensionResultStatusTyperebalanceForAdd(BasicPersistenceModule basicPersistenceModule, PersistencePackage persistencePackage, Serializable instance, Map<String, FieldMetadata> mergedProperties, org.broadleafcommerce.common.extension.ExtensionResultHolder<Serializable> resultHolder) Handle additions of new members to a basic collection when the items are sortableorg.broadleafcommerce.common.extension.ExtensionResultStatusTyperebalanceForUpdate(BasicPersistenceModule basicPersistenceModule, PersistencePackage persistencePackage, Serializable instance, Map<String, FieldMetadata> mergedProperties, Object primaryKey, org.broadleafcommerce.common.extension.ExtensionResultHolder<Serializable> resultHolder) Handle reorder change requests from the admin for sortable basic collectionsMethods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler
getPriority, isEnabled
-
Field Details
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITY- See Also:
-
-
Method Details
-
rebalanceForUpdate
org.broadleafcommerce.common.extension.ExtensionResultStatusType rebalanceForUpdate(BasicPersistenceModule basicPersistenceModule, PersistencePackage persistencePackage, Serializable instance, Map<String, FieldMetadata> mergedProperties, Object primaryKey, org.broadleafcommerce.common.extension.ExtensionResultHolder<Serializable> resultHolder) Handle reorder change requests from the admin for sortable basic collections- 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
org.broadleafcommerce.common.extension.ExtensionResultStatusType rebalanceForAdd(BasicPersistenceModule basicPersistenceModule, PersistencePackage persistencePackage, Serializable instance, Map<String, FieldMetadata> mergedProperties, org.broadleafcommerce.common.extension.ExtensionResultHolder<Serializable> resultHolder) Handle additions of new members to a basic collection when the items are sortable- 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
-