org.broadleafcommerce.inventory.admin.client.datasource
Class FulfillmentLocationClientEntityModule

java.lang.Object
  extended by org.broadleafcommerce.openadmin.client.datasource.dynamic.module.BasicClientEntityModule
      extended by org.broadleafcommerce.inventory.admin.client.datasource.FulfillmentLocationClientEntityModule
All Implemented Interfaces:
org.broadleafcommerce.openadmin.client.datasource.dynamic.module.DataSourceModule

public class FulfillmentLocationClientEntityModule
extends org.broadleafcommerce.openadmin.client.datasource.dynamic.module.BasicClientEntityModule

This entity module is responsible for setting all of the other displayed fulfillment locations to not be the default location if I am updating/adding a location that should be the new default. This happens already on the backend, but the frontend has these values cached in the other records

Author:
Phillip Verheyden (phillipuniverse)

Field Summary
 
Fields inherited from class org.broadleafcommerce.openadmin.client.datasource.dynamic.module.BasicClientEntityModule
ceilingEntityFullyQualifiedClassname, currentForeignKey, dataSource, fetchTypeFullyQualifiedClassname, formatter, linkedValue, loadLevelCount, persistencePerspective, service
 
Constructor Summary
FulfillmentLocationClientEntityModule(String ceilingEntityFullyQualifiedClassname, org.broadleafcommerce.openadmin.client.dto.PersistencePerspective persistencePerspective, org.broadleafcommerce.openadmin.client.service.DynamicEntityServiceAsync service)
           
 
Method Summary
 void executeAdd(String requestId, com.smartgwt.client.data.DSRequest request, com.smartgwt.client.data.DSResponse response, String[] customCriteria, com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
           
 void executeUpdate(String requestId, com.smartgwt.client.data.DSRequest request, com.smartgwt.client.data.DSResponse response, String[] customCriteria, com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
           
protected  com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> getCallback(com.smartgwt.client.widgets.tree.TreeNode changedRecord, com.smartgwt.client.data.DSRequest request, com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> originalCallback)
           
 
Methods inherited from class org.broadleafcommerce.openadmin.client.datasource.dynamic.module.BasicClientEntityModule
buildCriteria, buildEntity, buildFields, buildRecord, buildRecords, executeFetch, executeRemove, filterProperties, getCeilingEntityFullyQualifiedClassname, getCto, getCurrentForeignKey, getLinkedValue, getLocalizedString, isCompatible, processFilterValueClause, setCurrentForeignKey, setDataSource, setLinkedValue, updateMinutesFromDateFilter, updateRecord
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FulfillmentLocationClientEntityModule

public FulfillmentLocationClientEntityModule(String ceilingEntityFullyQualifiedClassname,
                                             org.broadleafcommerce.openadmin.client.dto.PersistencePerspective persistencePerspective,
                                             org.broadleafcommerce.openadmin.client.service.DynamicEntityServiceAsync service)
Method Detail

executeUpdate

public void executeUpdate(String requestId,
                          com.smartgwt.client.data.DSRequest request,
                          com.smartgwt.client.data.DSResponse response,
                          String[] customCriteria,
                          com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
Specified by:
executeUpdate in interface org.broadleafcommerce.openadmin.client.datasource.dynamic.module.DataSourceModule
Overrides:
executeUpdate in class org.broadleafcommerce.openadmin.client.datasource.dynamic.module.BasicClientEntityModule

executeAdd

public void executeAdd(String requestId,
                       com.smartgwt.client.data.DSRequest request,
                       com.smartgwt.client.data.DSResponse response,
                       String[] customCriteria,
                       com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
Specified by:
executeAdd in interface org.broadleafcommerce.openadmin.client.datasource.dynamic.module.DataSourceModule
Overrides:
executeAdd in class org.broadleafcommerce.openadmin.client.datasource.dynamic.module.BasicClientEntityModule

getCallback

protected com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> getCallback(com.smartgwt.client.widgets.tree.TreeNode changedRecord,
                                                                                                        com.smartgwt.client.data.DSRequest request,
                                                                                                        com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> originalCallback)


Copyright © 2013. All Rights Reserved.