/** * Directly delegates execution to the action after having completed its * execution context with the controller's initial context. * <p> * {@inheritDoc} */ public boolean execute(IAction action, Map<String, Object> context) { if (action == null) { return true; } SecurityHelper.checkAccess(getApplicationSession().getSubject(), action, getTranslationProvider(), getLocale()); Map<String, Object> actionContext = getInitialActionContext(); if (context != null) { context.putAll(actionContext); } return action.execute(this, context); }
/** * Creates a slave backend controller, starts it and assign it the same * application session. * <p/> * {@inheritDoc} */ @Override public AbstractBackendController createBackendController() { AbstractBackendController slaveBackendController = (AbstractBackendController) getSlaveControllerFactory() .createBackendController(); // Start the slave controller slaveBackendController.start(getLocale(), getClientTimeZone()); // Use the same application session slaveBackendController.setApplicationSession(getApplicationSession()); slaveBackendController.sessionUnitOfWork = sessionUnitOfWork; slaveBackendController.workspaceConnectors = workspaceConnectors; slaveBackendController.moduleConnectors = moduleConnectors; slaveBackendController.masterController = this; return slaveBackendController; }