/** * Fills the context with the filter reference descriptor. * <p> * {@inheritDoc} */ @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { IModelValueConnector filterModelConnector = (IModelValueConnector) getModuleConnector( context).getChildConnector("filter"); context.put(ActionContextConstants.QUERY_MODEL_CONNECTOR, filterModelConnector); context.put(ActionContextConstants.COMPONENT_REF_DESCRIPTOR, filterModelConnector.getModelDescriptor()); BeanCollectionModule beanCollectionModule = (BeanCollectionModule) getModuleConnector( context).getConnectorValue(); beanCollectionModule.setModuleObjects(null); return super.execute(actionHandler, context); }
@Override public boolean execute(final IActionHandler actionHandler, final Map<String, Object> context) { final FilterableBeanCollectionModule filterableBeanCollectionModule = (FilterableBeanCollectionModule) getModule( context); context.put(CreateQueryComponentAction.COMPONENT_REF_DESCRIPTOR, queryComponent = (IQueryComponent) context.get(IQueryComponent.QUERY_COMPONENT); } else { queryComponent = getEntityFactory(context).createQueryComponentInstance( (Class<? extends IComponent>) filterableBeanCollectionModule.getElementComponentDescriptor() .getComponentContract());