org.broadleafcommerce.openadmin.client.datasource
Class SimpleDataSourceFactory

java.lang.Object
  extended by 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

Field Summary
 ListGridDataSource dataSource
           
 
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.
 
Method Summary
 void createDataSource(String name, OperationTypes operationTypes, Object[] additionalItems, com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
           
 List<DataSourceModule> createDataSourceModules()
           
 PersistencePerspective createPersistencePerspective()
           
 PersistencePerspective createPersistencePerspective(OperationTypes operationTypes)
           
 PersistencePerspective setupPersistencePerspective(PersistencePerspective persistencePerspective)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataSource

public ListGridDataSource dataSource
Constructor Detail

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 -
Method Detail

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.