org.broadleafcommerce.openadmin.client.datasource
Class SimpleDataSourceFactory
java.lang.Object
org.broadleafcommerce.openadmin.client.datasource.SimpleDataSourceFactory
- All Implemented Interfaces:
- DataSourceFactory
- Direct Known Subclasses:
- AdminCreatePermissionListDataSourceFactory, AdminPermissionListDataSourceFactory, AdminPermissionRelatedToUserListDataSourceFactory, AdminUserPermissionListDataSourceFactory
public class SimpleDataSourceFactory
- extends Object
- implements DataSourceFactory
- Author:
- bpolster
|
Constructor Summary |
SimpleDataSourceFactory(String entityClassName)
Creates the SimpleDataSourceFactory which allows a DataSource to be setup
representing an entity in the system. |
SimpleDataSourceFactory(String entityClassName,
String configurationKey)
Allows the DataSourceFactory to be constructed using the className and
configuration context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dataSource
public ListGridDataSource dataSource
SimpleDataSourceFactory
public SimpleDataSourceFactory(String entityClassName)
- Creates the SimpleDataSourceFactory which allows a DataSource to be setup
representing an entity in the system. Typically, callers would pass in the
cieling entity (e.g.
- Parameters:
entityClassName -
SimpleDataSourceFactory
public SimpleDataSourceFactory(String entityClassName,
String configurationKey)
- Allows the DataSourceFactory to be constructed using the className and
configuration context.
The configurationContext works along with the "blMetadataOverrides" component
to allow some fields from the entity to be suppressed.
- Parameters:
entityClassName - configurationContext -
setupPersistencePerspective
public PersistencePerspective setupPersistencePerspective(PersistencePerspective persistencePerspective)
createDataSource
public void createDataSource(String name,
OperationTypes operationTypes,
Object[] additionalItems,
com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
- Specified by:
createDataSource in interface DataSourceFactory
createPersistencePerspective
public PersistencePerspective createPersistencePerspective()
createPersistencePerspective
public PersistencePerspective createPersistencePerspective(OperationTypes operationTypes)
createDataSourceModules
public List<DataSourceModule> createDataSourceModules()
Copyright © 2013. All Rights Reserved.