org.broadleafcommerce.openadmin.client.datasource.dynamic
Class CustomCriteriaTileGridDataSource

java.lang.Object
  extended by com.smartgwt.client.core.BaseClass
      extended by com.smartgwt.client.data.DataSource
          extended by org.broadleafcommerce.openadmin.client.datasource.GwtRpcDataSource
              extended by org.broadleafcommerce.openadmin.client.datasource.dynamic.AbstractDynamicDataSource
                  extended by org.broadleafcommerce.openadmin.client.datasource.dynamic.DynamicEntityDataSource
                      extended by org.broadleafcommerce.openadmin.client.datasource.dynamic.PresentationLayerAssociatedDataSource
                          extended by org.broadleafcommerce.openadmin.client.datasource.dynamic.TileGridDataSource
                              extended by org.broadleafcommerce.openadmin.client.datasource.dynamic.CustomCriteriaTileGridDataSource
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, com.smartgwt.client.data.events.HasHandleErrorHandlers

public class CustomCriteriaTileGridDataSource
extends TileGridDataSource


Field Summary
protected  String[] customCriteria
           
protected  boolean useForAdd
           
protected  boolean useForFetch
           
protected  boolean useForInspect
           
protected  boolean useForRemove
           
protected  boolean useForUpdate
           
 
Fields inherited from class org.broadleafcommerce.openadmin.client.datasource.dynamic.PresentationLayerAssociatedDataSource
associatedGrid, hilites
 
Fields inherited from class org.broadleafcommerce.openadmin.client.datasource.dynamic.AbstractDynamicDataSource
addedRecord, defaultNewEntityFullyQualifiedClassname, formItemCallbackHandlerManager, modules, persistencePerspective, polymorphicEntities, polymorphicEntityTree, service, showArchived
 
Fields inherited from class com.smartgwt.client.core.BaseClass
config, id, scClassName
 
Constructor Summary
CustomCriteriaTileGridDataSource(String name, PersistencePerspective persistencePerspective, DynamicEntityServiceAsync service, DataSourceModule[] modules)
           
CustomCriteriaTileGridDataSource(String name, PersistencePerspective persistencePerspective, DynamicEntityServiceAsync service, DataSourceModule[] modules, boolean useForFetch, boolean useForUpdate, boolean useForAdd, boolean useForRemove, boolean useForInspect)
           
 
Method Summary
 void buildFields(String[] customCriteria, Boolean overrideFieldSort, com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
           
protected  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)
           
protected  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)
           
protected  void executeRemove(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  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)
           
 String[] getCustomCriteria()
           
 void setCustomCriteria(String[] customCriteria)
           
 
Methods inherited from class org.broadleafcommerce.openadmin.client.datasource.dynamic.TileGridDataSource
setupGridFields, setupGridFields
 
Methods inherited from class org.broadleafcommerce.openadmin.client.datasource.dynamic.PresentationLayerAssociatedDataSource
getAssociatedGrid, loadAssociatedGridBasedOnRelationship, setAssociatedGrid
 
Methods inherited from class org.broadleafcommerce.openadmin.client.datasource.dynamic.DynamicEntityDataSource
createRelationshipCriteria, executeAdd, executeFetch, executeRemove, executeUpdate, extractRecordValues, getCompatibleModule, getPersistencePerspective, permanentlyHideFields, permanentlyShowFields, resetPermanentFieldVisibility, resetPermanentFieldVisibility, resetPermanentFieldVisibilityBasedOnType, resetProminenceOnly, resetVisibilityOnly, setLinkedValue, setProminent, setTypeOps, setTypeOps, updateFriendlyName
 
Methods inherited from class org.broadleafcommerce.openadmin.client.datasource.dynamic.AbstractDynamicDataSource
buildPolymorphicEntityMap, getAddedRecord, getDefaultNewEntityFullyQualifiedClassname, getFormItemCallbackHandlerManager, getModules, getPolymorphicEntities, getPolymorphicEntityTree, getPrimaryKeyValue, getService, isShowArchived, replaceModuleByType, setAddedRecord, setDefaultNewEntityFullyQualifiedClassname, setFormItemCallbackHandlerManager, setModules, setPolymorphicEntityTree, setService, setShowArchived, stripDuplicateAllowSpecialCharacters
 
Methods inherited from class org.broadleafcommerce.openadmin.client.datasource.GwtRpcDataSource
transformRequest
 
Methods inherited from class com.smartgwt.client.data.DataSource
addData, addData, addData, addField, addHandleErrorHandler, combineCriteria, convertRelativeDates, convertRelativeDates, copyRecord, copyRecords, create, downloadFile, downloadFile, exportClientData, exportData, exportData, fetchData, fetchData, filterData, filterData, get, get, getAddGlobalId, getAutoCacheAllData, getAutoConvertRelativeDates, getAutoDeriveTitles, getCacheAllData, getCacheData, getCacheMaxAge, getCallbackParam, getCanMultiSort, getChildrenField, getClientOnly, getClientOnlyResponse, getCriteriaPolicy, getDataField, getDataFormat, getDataProtocol, getDataSource, getDataSource, getDataTransport, getDataURL, getDefaultParams, getDescriptionField, getDisplayValue, getDropExtraFields, getField, getFieldForDataPath, getFieldNames, getFieldNames, getFieldOperators, getFieldOperators, getFields, getFileURL, getGlobalNamespaces, getIconField, getInfoField, getInheritsFrom, getJsObj, getJsonPrefix, getJsonSuffix, getLegalChildTags, getOperationBindings, getOrCreateRef, getPluralTitle, getPreventHTTPCaching, getPrimaryKeyField, getPrimaryKeyFieldName, getQualifyColumnNames, getRecordXPath, getRequestProperties, getRequiredMessage, getResultBatchSize, getResultSetClass, getSchemaNamespace, getSendExtraFields, getServiceNamespace, getShowLocalFieldsOnly, getShowPrompt, getSortBy, getSortSpecifiers, getStrictSQLFiltering, getTagName, getTestData, getTitle, getTitleField, getTypeOperators, getUseFlatFields, getUseHttpProxy, getUseLocalValidators, getUseOfflineStorage, getUseParentFieldOrder, getUseTestDataFetch, getValidateRelatedRecords, getWillHandleAdvancedCriteria, hasAllData, invalidateCache, isCreated, load, load, onInit, performCustomOperation, processResponse, recordsFromXML, removeData, removeData, removeData, setAddGlobalId, setAutoCacheAllData, setAutoConvertRelativeDates, setAutoDeriveTitles, setCacheAllData, setCacheData, setCacheMaxAge, setCallbackParam, setCanMultiSort, setChildrenField, setClientOnly, setCriteriaPolicy, setDataField, setDataFormat, setDataProtocol, setDataTransport, setDataURL, setDefaultParams, setDescriptionField, setDropExtraFields, setEnumConstantProperty, setEnumOrdinalProperty, setEnumTranslateStrategy, setFields, setGlobalNamespaces, setIconField, setID, setInfoField, setInheritsFrom, setInheritsFrom, setJsonPrefix, setJsonSuffix, setOperationBindings, setPluralTitle, setPreventHTTPCaching, setQualifyColumnNames, setRecordName, setRecordXPath, setRequestProperties, setRequiredMessage, setResultBatchSize, setResultSetClass, setSendExtraFields, setServiceNamespace, setShowLocalFieldsOnly, setShowPrompt, setStrictSQLFiltering, setTagName, setTestData, setTitle, setTitleField, setTypeOperators, setUseFlatFields, setUseHttpProxy, setUseLocalValidators, setUseOfflineStorage, setUseParentFieldOrder, setUseTestDataFetch, setValidateRelatedRecords, setWillHandleAdvancedCriteria, setXmlNamespaces, supportsAdvancedCriteria, supportsTextMatchStyle, transformResponse, updateCaches, updateCaches, updateData, updateData, updateData, useOfflineResponse, validateData, validateData, viewFile, viewFile, xmlSerialize, xmlSerialize, xmlSerialize, xmlSerialize, xmlSerialize
 
Methods inherited from class com.smartgwt.client.core.BaseClass
destroy, doAddHandler, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getConfig, getHandlerCount, getID, getOrCreateJsObj, getRef, getScClassName, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setProperty, setProperty, setProperty, setProperty, setScClassName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Field Detail

customCriteria

protected String[] customCriteria

useForFetch

protected boolean useForFetch

useForUpdate

protected boolean useForUpdate

useForAdd

protected boolean useForAdd

useForRemove

protected boolean useForRemove

useForInspect

protected boolean useForInspect
Constructor Detail

CustomCriteriaTileGridDataSource

public CustomCriteriaTileGridDataSource(String name,
                                        PersistencePerspective persistencePerspective,
                                        DynamicEntityServiceAsync service,
                                        DataSourceModule[] modules)

CustomCriteriaTileGridDataSource

public CustomCriteriaTileGridDataSource(String name,
                                        PersistencePerspective persistencePerspective,
                                        DynamicEntityServiceAsync service,
                                        DataSourceModule[] modules,
                                        boolean useForFetch,
                                        boolean useForUpdate,
                                        boolean useForAdd,
                                        boolean useForRemove,
                                        boolean useForInspect)
Method Detail

getCustomCriteria

public String[] getCustomCriteria()

setCustomCriteria

public void setCustomCriteria(String[] customCriteria)

executeFetch

protected 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)
Overrides:
executeFetch in class DynamicEntityDataSource

executeUpdate

protected 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)
Overrides:
executeUpdate in class DynamicEntityDataSource

executeAdd

protected 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)
Overrides:
executeAdd in class DynamicEntityDataSource

executeRemove

protected void executeRemove(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)
Overrides:
executeRemove in class DynamicEntityDataSource

buildFields

public void buildFields(String[] customCriteria,
                        Boolean overrideFieldSort,
                        com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
Overrides:
buildFields in class DynamicEntityDataSource


Copyright © 2013. All Rights Reserved.