org.broadleafcommerce.admin.client.datasource.catalog.product.module
Class SkuBasicClientEntityModule
java.lang.Object
org.broadleafcommerce.openadmin.client.datasource.dynamic.module.BasicClientEntityModule
org.broadleafcommerce.admin.client.datasource.catalog.product.module.SkuBasicClientEntityModule
- All Implemented Interfaces:
- DataSourceModule
public class SkuBasicClientEntityModule
- extends BasicClientEntityModule
- Author:
- Phillip Verheyden
|
Method Summary |
void |
executeFetch(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)
On a server-side inspect, the fields for all of the ProductOptions are returned with no bearing on options a Product has
nor on what values the Skus have for that Product (because nothing has been selected at the time of inspect). |
| Methods inherited from class org.broadleafcommerce.openadmin.client.datasource.dynamic.module.BasicClientEntityModule |
buildCriteria, buildEntity, buildFields, buildRecord, buildRecords, executeAdd, executeRemove, executeUpdate, 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 |
SkuBasicClientEntityModule
public SkuBasicClientEntityModule(String ceilingEntityFullyQualifiedClassname,
PersistencePerspective persistencePerspective,
DynamicEntityServiceAsync service)
- Parameters:
ceilingEntityFullyQualifiedClassname - persistencePerspective - service -
executeFetch
public void executeFetch(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)
- On a server-side inspect, the fields for all of the ProductOptions are returned with no bearing on options a Product has
nor on what values the Skus have for that Product (because nothing has been selected at the time of inspect). This information
is only available to us when the Skus are actually fetched. The fetch will return the correct ProductOptions in the list
of Properties in the Entities that were returned so that we can show/hide the ProductOption fields accordingly
- Specified by:
executeFetch in interface DataSourceModule- Overrides:
executeFetch in class BasicClientEntityModule
- Parameters:
requestId - request - response - customCriteria - cb -
Copyright © 2012. All Rights Reserved.