Interface BasicPersistenceModuleExtensionHandler
- All Superinterfaces:
ExtensionHandler
- All Known Implementing Classes:
AbstractBasicPersistenceModuleExtensionHandler,DefaultBasicPersistenceModuleExtensionHandler
For internal usage. Allows extending API calls without subclassing the entity.
- Author:
- Jeff Fischer
-
Field Summary
Fields -
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 interface org.broadleafcommerce.common.extension.ExtensionHandler
getPriority, isEnabled
-
Field Details
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITY- See Also:
-
-
Method Details
-
rebalanceForUpdate
ExtensionResultStatusType rebalanceForUpdate(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 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
ExtensionResultStatusType rebalanceForAdd(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 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
-