/** * {@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); }
@Override public boolean execute(IActionHandler actionHandler, Map<String, Object> innerContext) { AbstractBackendController completedController = (AbstractBackendController) innerContext.get( COMPLETED_CONTROLLER_KEY); AbstractBackendController mainController = (AbstractBackendController) getBackendController(innerContext); mainController.merge(completedController.getRecordedUowMergedEntitiesAndClear(), EMergeMode.MERGE_LAZY); return super.execute(actionHandler, innerContext); } }, mergeContext);
/** * Resets the model connector value to null. * <p> * {@inheritDoc} * * @param actionHandler * the action handler * @param context * the context * @return the boolean */ @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { getModelConnector(getModelPath(context), context).setConnectorValue(null); return super.execute(actionHandler, context); }
completionContext); actionHandler.executeLater(completionAction, completionContext); return super.execute(actionHandler, 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); }
/** * Retrieves the managed collection from the model connector then registers * the selected elements. * <p> * {@inheritDoc} */ @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { List<IComponent> transferedComponents = getSelectedModels(context); getController(context).storeComponents( new ComponentTransferStructure<>(transferedComponents, transferMode)); return super.execute(actionHandler, context); }
/** * Retrieves the master and its managed collection from the model connector * then removes selected details from the managed collection. * <p/> * {@inheritDoc} */ @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { IValueConnector modelConnector = getModelConnector(context); if (modelConnector == null) { return false; } try { IComponent componentToDelete = modelConnector.getConnectorValue(); cleanRelationshipsOnDeletion(componentToDelete, context, true); cleanRelationshipsOnDeletion(componentToDelete, context, false); } catch (IllegalAccessException | NoSuchMethodException ex) { throw new ActionException(ex); } catch (InvocationTargetException ex) { if (ex.getCause() instanceof RuntimeException) { throw (RuntimeException) ex.getCause(); } throw new ActionException(ex.getCause()); } return super.execute(actionHandler, context); } }
/** * Reloads the object(s) provided by the action context in a transaction. * <p> * {@inheritDoc} */ @Override public boolean execute(IActionHandler actionHandler, final Map<String, Object> context) { getController(context).clearPendingOperations(); final List<IEntity> entitiesToReload = getEntitiesToReload(context); if (isTransactional()) { getTransactionTemplate(context).execute(new TransactionCallbackWithoutResult() { @Override protected void doInTransactionWithoutResult(TransactionStatus status) { iterateAndReload(entitiesToReload, context); } }); } else { iterateAndReload(entitiesToReload, context); } return super.execute(actionHandler, context); }
return super.execute(actionHandler, context);
return super.execute(actionHandler, context);
throw new ActionException(ex); return super.execute(actionHandler, context);
return super.execute(actionHandler, context);
@Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { DefaultDescriptor selectedEnumerationComponent = getActionParameter(context); if (selectedEnumerationComponent != null) { getViewConnector(context).setConnectorValue(null); getViewConnector(context).setConnectorValue(selectedEnumerationComponent.getName()); } else { getViewConnector(context).setConnectorValue(null); } return super.execute(actionHandler, context); } });
return super.execute(actionHandler, context);
modelConnector.setConnectorValue(queryComponent); context.put(IQueryComponent.QUERY_COMPONENT, queryComponent); return super.execute(actionHandler, context);
return super.execute(actionHandler, context);
queryComponent.addPropertyChangeListener(IPageable.PAGE, paginationListener); return super.execute(actionHandler, context);