org.shept.org.springframework.web.servlet.mvc.delegation.command
Class RefreshableListCommandFactory

java.lang.Object
  extended by org.shept.org.springframework.web.servlet.mvc.delegation.command.AbstractCommandFactory
      extended by org.shept.org.springframework.web.servlet.mvc.delegation.command.RefreshableListCommandFactory
All Implemented Interfaces:
CommandFactory, TargetCommandFactory, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class RefreshableListCommandFactory
extends AbstractCommandFactory
implements CommandFactory, org.springframework.beans.factory.InitializingBean

Version:
$Rev$
Author:
Andreas Hahn

Field Summary
private  FilterDefinition filter
           
 
Fields inherited from class org.shept.org.springframework.web.servlet.mvc.delegation.command.AbstractCommandFactory
logger
 
Constructor Summary
RefreshableListCommandFactory()
           
 
Method Summary
protected  FilterDefinition createFilter(TargetConfiguration config)
          build a filter and check the configuration Criteria API: Both filterClass and entityClass must be specified Query API (HQL): Only filterClass must be specified Example: filterClass and entityClass must be specified Note that the default ComponentConfiguration will initialize an empty filterClass with the entityClass
 Object getCommand(TargetConfiguration config, Object referencedModel)
           
protected  void initializeFilter(FilterDefinition fil, TargetConfiguration config)
          Special case: if filter is a HibernateCriteriaFilter we must populate the entityClass property
 void setFilter(FilterDefinition filter)
           
 
Methods inherited from class org.shept.org.springframework.web.servlet.mvc.delegation.command.AbstractCommandFactory
afterPropertiesSet, getApplicationContext, getCommand, getCommand, getPageHolderFactory, setApplicationContext, setPageHolderFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.shept.org.springframework.web.servlet.mvc.delegation.command.CommandFactory
getCommand
 
Methods inherited from interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
 

Field Detail

filter

private FilterDefinition filter
Constructor Detail

RefreshableListCommandFactory

public RefreshableListCommandFactory()
Method Detail

getCommand

public Object getCommand(TargetConfiguration config,
                         Object referencedModel)
Specified by:
getCommand in interface TargetCommandFactory
Specified by:
getCommand in class AbstractCommandFactory

initializeFilter

protected void initializeFilter(FilterDefinition fil,
                                TargetConfiguration config)
Special case: if filter is a HibernateCriteriaFilter we must populate the entityClass property

Parameters:
fil -
config -

createFilter

protected FilterDefinition createFilter(TargetConfiguration config)
build a filter and check the configuration Criteria API: Both filterClass and entityClass must be specified Query API (HQL): Only filterClass must be specified Example: filterClass and entityClass must be specified Note that the default ComponentConfiguration will initialize an empty filterClass with the entityClass

Parameters:
config -
config -
Returns:

setFilter

public void setFilter(FilterDefinition filter)
Parameters:
filter - the filter to set


Copyright © 2011. All Rights Reserved.