org.broadleafcommerce.openadmin.client.datasource.dynamic.module
public class BasicClientEntityModule extends Object implements DataSourceModule
| Modifier and Type | Field and Description |
|---|---|
protected String |
ceilingEntityFullyQualifiedClassname |
protected ForeignKey |
currentForeignKey |
protected AbstractDynamicDataSource |
dataSource |
protected String |
fetchTypeFullyQualifiedClassname |
protected com.google.gwt.i18n.client.DateTimeFormat |
formatter |
protected String |
linkedValue |
protected Long |
loadLevelCount |
protected PersistencePerspective |
persistencePerspective |
protected DynamicEntityServiceAsync |
service |
| Constructor and Description |
|---|
BasicClientEntityModule(String ceilingEntityFullyQualifiedClassname,
PersistencePerspective persistencePerspective,
DynamicEntityServiceAsync service) |
BasicClientEntityModule(String ceilingEntityFullyQualifiedClassname,
String fetchTypeFullyQualifiedClassname,
PersistencePerspective persistencePerspective,
DynamicEntityServiceAsync service) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildCriteria(com.google.gwt.json.client.JSONArray criteriaArray,
CriteriaTransferObject cto) |
Entity |
buildEntity(com.smartgwt.client.data.Record record,
com.smartgwt.client.data.DSRequest request) |
void |
buildFields(String[] customCriteria,
Boolean overrideFieldSort,
com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb) |
com.smartgwt.client.data.Record |
buildRecord(Entity entity,
Boolean updateId) |
com.smartgwt.client.widgets.tree.TreeNode[] |
buildRecords(DynamicResultSet result,
String[] filterOutIds) |
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 |
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) |
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) |
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 void |
filterProperties(ClassMetadata metadata,
MergedPropertyType[] includeTypes,
Boolean overrideFieldSort,
PresenterSequenceSetupManager presenterSequenceSetupManager) |
String |
getCeilingEntityFullyQualifiedClassname() |
CriteriaTransferObject |
getCto(com.smartgwt.client.data.DSRequest request)
Transforms the given request into
CriteriaTransferObject instance. |
ForeignKey |
getCurrentForeignKey() |
String |
getLinkedValue() |
String |
getLocalizedString(String value)
Looks up the given value as a key via the MessageManager.
|
boolean |
isCompatible(OperationType operationType) |
protected void |
processFilterValueClause(FilterAndSortCriteria filterCriteria,
String filterString) |
void |
setCurrentForeignKey(ForeignKey currentForeignKey) |
void |
setDataSource(AbstractDynamicDataSource dataSource) |
void |
setLinkedValue(String linkedValue) |
protected String |
updateMinutesFromDateFilter(String originalDateString,
int position) |
com.smartgwt.client.data.Record |
updateRecord(Entity entity,
com.smartgwt.client.data.Record record,
Boolean updateId) |
protected final com.google.gwt.i18n.client.DateTimeFormat formatter
protected ForeignKey currentForeignKey
protected AbstractDynamicDataSource dataSource
protected String linkedValue
protected DynamicEntityServiceAsync service
protected final String ceilingEntityFullyQualifiedClassname
protected final String fetchTypeFullyQualifiedClassname
protected PersistencePerspective persistencePerspective
protected Long loadLevelCount
public BasicClientEntityModule(String ceilingEntityFullyQualifiedClassname, PersistencePerspective persistencePerspective, DynamicEntityServiceAsync service)
public BasicClientEntityModule(String ceilingEntityFullyQualifiedClassname, String fetchTypeFullyQualifiedClassname, PersistencePerspective persistencePerspective, DynamicEntityServiceAsync service)
public CriteriaTransferObject getCto(com.smartgwt.client.data.DSRequest request)
CriteriaTransferObject instance.
We are doing this because we can apply seamless CTO-to-criteria conversions back on the server.
getCto in interface DataSourceModuleprotected void processFilterValueClause(FilterAndSortCriteria filterCriteria, String filterString)
public ForeignKey getCurrentForeignKey()
public void setCurrentForeignKey(ForeignKey currentForeignKey)
public String getLinkedValue()
getLinkedValue in interface DataSourceModulepublic void setLinkedValue(String linkedValue)
setLinkedValue in interface DataSourceModuleprotected void buildCriteria(com.google.gwt.json.client.JSONArray criteriaArray,
CriteriaTransferObject cto)
protected String updateMinutesFromDateFilter(String originalDateString, int position)
public boolean isCompatible(OperationType operationType)
isCompatible in interface DataSourceModulepublic 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)
executeFetch in interface DataSourceModulepublic 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)
executeAdd in interface DataSourceModulepublic 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)
executeUpdate in interface DataSourceModulepublic 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)
executeRemove in interface DataSourceModulepublic com.smartgwt.client.data.Record buildRecord(Entity entity, Boolean updateId)
buildRecord in interface DataSourceModulepublic com.smartgwt.client.data.Record updateRecord(Entity entity, com.smartgwt.client.data.Record record, Boolean updateId)
updateRecord in interface DataSourceModulepublic com.smartgwt.client.widgets.tree.TreeNode[] buildRecords(DynamicResultSet result, String[] filterOutIds)
buildRecords in interface DataSourceModulepublic Entity buildEntity(com.smartgwt.client.data.Record record, com.smartgwt.client.data.DSRequest request)
buildEntity in interface DataSourceModulepublic void buildFields(String[] customCriteria, Boolean overrideFieldSort, com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
buildFields in interface DataSourceModuleprotected void filterProperties(ClassMetadata metadata, MergedPropertyType[] includeTypes, Boolean overrideFieldSort, PresenterSequenceSetupManager presenterSequenceSetupManager) throws IllegalStateException
IllegalStateExceptionpublic String getLocalizedString(String value)
public void setDataSource(AbstractDynamicDataSource dataSource)
setDataSource in interface DataSourceModulepublic String getCeilingEntityFullyQualifiedClassname()
getCeilingEntityFullyQualifiedClassname in interface DataSourceModuleCopyright © 2015. All Rights Reserved.