Class AbstractBasicPersistenceModuleExtensionHandler

java.lang.Object
org.broadleafcommerce.common.extension.AbstractExtensionHandler
org.broadleafcommerce.openadmin.server.service.persistence.module.extension.AbstractBasicPersistenceModuleExtensionHandler
All Implemented Interfaces:
org.broadleafcommerce.common.extension.ExtensionHandler, BasicPersistenceModuleExtensionHandler
Direct Known Subclasses:
DefaultBasicPersistenceModuleExtensionHandler

public class AbstractBasicPersistenceModuleExtensionHandler extends org.broadleafcommerce.common.extension.AbstractExtensionHandler implements BasicPersistenceModuleExtensionHandler
Convenience implementation of interface so that subclasses do not have to implement uninteresting methods
Author:
Jeff Fischer
See Also:
  • Constructor Details

    • AbstractBasicPersistenceModuleExtensionHandler

      public AbstractBasicPersistenceModuleExtensionHandler()
  • Method Details

    • rebalanceForUpdate

      public 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)
      Description copied from interface: BasicPersistenceModuleExtensionHandler
      Handle reorder change requests from the admin for sortable basic collections
      Specified by:
      rebalanceForUpdate in interface BasicPersistenceModuleExtensionHandler
      Parameters:
      basicPersistenceModule - the persistence module responsible for handling basic collection persistence operations
      persistencePackage - the data representing the change
      instance - the persisted entity
      mergedProperties - descriptive data about the entity structure
      primaryKey - the primary key value for the persisted entity
      resultHolder - container for any relevant operation results
      Returns:
      the status of execution for this handler - informs the manager on how to proceed
    • rebalanceForAdd

      public org.broadleafcommerce.common.extension.ExtensionResultStatusType rebalanceForAdd(BasicPersistenceModule basicPersistenceModule, PersistencePackage persistencePackage, Serializable instance, Map<String,FieldMetadata> mergedProperties, org.broadleafcommerce.common.extension.ExtensionResultHolder<Serializable> resultHolder)
      Description copied from interface: BasicPersistenceModuleExtensionHandler
      Handle additions of new members to a basic collection when the items are sortable
      Specified by:
      rebalanceForAdd in interface BasicPersistenceModuleExtensionHandler
      Parameters:
      basicPersistenceModule - the persistence module responsible for handling basic collection persistence operations
      persistencePackage - the data representing the change
      instance - the persisted entity
      mergedProperties - descriptive data about the entity structure
      resultHolder - container for any relevant operation results
      Returns:
      the status of execution for this handler - informs the manager on how to proceed