/** * Sets the ActionContextConstants.ACTION_PARAM with the selected components * of the backend connector. * <p> * {@inheritDoc} */ @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { setActionParameter(getSelectedModels(context), context); return super.execute(actionHandler, context); } }
/** * Constructs a new {@code BackendAction} instance. */ public BackendAction() { setBadFrontendAccessChecked(true); }
/** * Refined to return a collection descriptor. * <p> * {@inheritDoc} */ @Override public ICollectionDescriptorProvider<?> getModelDescriptor( Map<String, Object> context) { return (ICollectionDescriptorProvider<?>) super.getModelDescriptor(context); }
/** * {@inheritDoc} */ @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { IValueConnector modelConnector = getModelConnector(context); if (modelConnector == null) { return false; } Object clone = cloneElement(modelConnector.getConnectorValue(), context); setActionParameter(clone, context); return super.execute(actionHandler, context); }
/** * {@inheritDoc} */ @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { getBackendController(context).purgeCompletedExecutors(); return super.execute(actionHandler, context); } }
/** * Executes the action script using the script handler. * <p> * {@inheritDoc} */ @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { scriptHandler.execute((IScript) getActionParameter(context), context); return super.execute(actionHandler, context); }
/** * Resets the model connector value to null. * <p> * {@inheritDoc} */ @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { getModelConnector(context).setConnectorValue(null); return super.execute(actionHandler, context); }
/** * Executes the action script using the script handler. * <p> * {@inheritDoc} */ @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { ScriptMixin scriptMixin = new ScriptMixin(this); scriptMixin.setLanguage(scriptLanguage); scriptMixin.setScript(script); setActionParameter(scriptMixin, context); return super.execute(actionHandler, context); }
/** * {@inheritDoc} */ @Override protected HibernateBackendController getController(Map<String, Object> context) { return (HibernateBackendController) super.getController(context); }
/** * Refines the controller with an Hibernate backend controller. * <p> * {@inheritDoc} */ @Override protected HibernateBackendController getBackendController( Map<String, Object> context) { return (HibernateBackendController) super.getBackendController(context); } }
/** * {@inheritDoc} */ @Override protected ModelCollectionPropertyConnector getModelConnector( Map<String, Object> context) { return (ModelCollectionPropertyConnector) super.getModelConnector(context); }
/** * Refined to return a collection descriptor. * <p> * {@inheritDoc} */ @Override protected ICollectionDescriptorProvider<?> getModelDescriptor(Map<String, Object> context) { IModelDescriptor modelDescriptor = super.getModelDescriptor(context); if (modelDescriptor instanceof ICollectionDescriptorProvider<?>) { return (ICollectionDescriptorProvider<?>) modelDescriptor; } return (ICollectionDescriptorProvider<?>) getModelConnector(context).getModelDescriptor(); }
/** * refined to return a collection connector. * <p> * {@inheritDoc} */ @Override protected ICollectionConnector getModelConnector(Map<String, Object> context) { IValueConnector connector = super.getModelConnector(getViewPath(), context); // for handling table editing connectors... while (connector != null && !(connector instanceof ICollectionConnector)) { connector = connector.getParentConnector(); } return (ICollectionConnector) connector; }
/** * refined to return a collection connector. * <p> * {@inheritDoc} */ @Override public ICollectionConnector getSourceModelConnector( Map<String, Object> context) { return (ICollectionConnector) super.getSourceModelConnector(context); } }
/** * Constructs a new {@code AbstractAddCollectionToMasterAction} instance. */ public AbstractAddCollectionToMasterAction() { // Disable bad frontend access checks. setBadFrontendAccessChecked(false); }
/** * refined to return a collection connector. * <p> * {@inheritDoc} */ @Override public ICollectionConnector getModelConnector(Map<String, Object> context) { return (ICollectionConnector) super.getModelConnector(context); }
/** * {@inheritDoc} */ @Override protected IValueConnector getViewConnector(int[] viewPath, Map<String, Object> context) { warnBadFrontendAccess(context); return super.getViewConnector(viewPath, context); }
/** * Gets the entityFactory. * * @param context * the action context. * @return the entityFactory. */ protected IEntityFactory getEntityFactory(Map<String, Object> context) { return getController(context).getEntityFactory(); }
/** * Gets the entityFactory. * * @param context * the action context. * @return the entityFactory. */ protected IEntityFactory getEntityFactory(Map<String, Object> context) { return getController(context).getEntityFactory(); }
/** * Gets the frontend controller out of the action context. * * @param context * the action context. * @return the frontend controller. */ @Override protected IBackendController getController(Map<String, Object> context) { return getBackendController(context); }