@Button(list = "groovy", key = "return.to.pages", order = 2 , icon = Button.ICON_HOME) public Resolution returnToPages() { return new RedirectResolution("/"); }
@Override @Button(list = "root-children", key = "update", order = 1, type = Button.TYPE_PRIMARY) public Resolution updatePageChildren() { return super.updatePageChildren(); }
@Button(list = "pageHeaderButtons", titleKey = "manage.attachments", order = 3, icon = Button.ICON_PICTURE, group = "pageHeaderButtons") @RequiresPermissions(level = AccessLevel.VIEW, permissions = { PERMISSION_EDIT }) public Resolution manageAttachments() { logger.debug("Manage attachments"); return new ForwardResolution("/m/pageactions/text/manage-attachments.jsp"); }
@Button(list = "build-app", key="previous", order = 1 , icon = Button.ICON_LEFT) public Resolution returnToSelectTables() { selectTables(); return selectTablesForm(); }
@Button(list = "crud-search-form", key = "reset.search", order = 2, type = Button.TYPE_DEFAULT, icon = Button.ICON_RELOAD ) public Resolution resetSearch() { //Not really used. Search is AJAX these days. return new RedirectResolution(context.getActionPath()); }
@Button(list = "configuration", key = "cancel", order = 99) public Resolution cancel() { return new RedirectResolution(getReturnUrl(), false); }
@DefaultHandler @Button(list = "select-schemas", key="previous", order = 1 , icon = Button.ICON_LEFT) public Resolution start() { buildCPForms(); context.getRequest().getSession().removeAttribute(databaseSessionKey); return createConnectionProviderForm(); }
@Button(list = "pageHeaderButtons", titleKey = "configure", order = 1, icon = Button.ICON_WRENCH) @RequiresPermissions(level = AccessLevel.DEVELOP) public Resolution configure() { prepareConfigurationForms(); return new ForwardResolution("/m/pageactions/pageactions/custom/configure.jsp"); }
@Button(list = "pageHeaderButtons", titleKey = "configure", order = 1, icon = Button.ICON_WRENCH) @RequiresPermissions(level = AccessLevel.DEVELOP) public Resolution configure() { prepareConfigurationForms(); return new ForwardResolution("/m/crud/many2many/configure.jsp"); }
@Button(list = "pageHeaderButtons", titleKey = "configure", order = 1, icon = Button.ICON_WRENCH) @RequiresPermissions(level = AccessLevel.DEVELOP) public Resolution configure() { prepareConfigurationForms(); return new ForwardResolution("/m/calendar/configure.jsp"); }
@Button(list = "pageHeaderButtons", titleKey = "configure", order = 1, icon = Button.ICON_WRENCH) @RequiresPermissions(level = AccessLevel.DEVELOP) public Resolution configure() { prepareConfigurationForms(); return new ForwardResolution("/m/chart/jfreechart/configure.jsp"); }
@Button(list = "pageHeaderButtons", titleKey = "configure", order = 1, icon = Button.ICON_WRENCH) @RequiresPermissions(level = AccessLevel.DEVELOP) public Resolution configure() { prepareConfigurationForms(); return new ForwardResolution("/m/pageactions/pageactions/form/configure.jsp"); }
@Button(list = "pageHeaderButtons", titleKey = "configure", order = 1, icon = Button.ICON_WRENCH, group = "pageHeaderButtons") @RequiresPermissions(level = AccessLevel.EDIT) @RequiresAuthentication public Resolution configurePage() { prepareConfigurationForms(); return new ForwardResolution("/m/pageactions/text/configure.jsp"); }
@Button(list = "connectionProviders-read", key = "run.wizard", order = 5 , type = Button.TYPE_INFO) public Resolution runWizard() { ConnectionProvider connectionProvider = persistence.getConnectionProvider(databaseName); return new RedirectResolution(ApplicationWizard.class) .addParameter("connectionProviderName", databaseName) .addParameter("configureConnectionProvider") .addParameter("connectionProviderType", connectionProvider instanceof JdbcConnectionProvider ? "JDBC" : "JNDI"); }
@Button(list = "connectionProviders-read", key = "edit", order = 2 , icon = Button.ICON_EDIT , type = Button.TYPE_DEFAULT) public Resolution edit() { connectionProvider = persistence.getConnectionProvider(databaseName); databasePlatform = connectionProvider.getDatabasePlatform(); connectionProviderForm = new ConnectionProviderForm(connectionProvider.getDatabase()); buildConnectionProviderForm(Mode.EDIT); form.readFromObject(connectionProviderForm); configureEditSchemas(); return new ForwardResolution("/m/admin/connectionProviders/edit.jsp"); }
@Button(list = "configuration", key = "update.configuration", order = 1, type = Button.TYPE_PRIMARY) @RequiresPermissions(level = AccessLevel.DEVELOP) public Resolution updateConfiguration() { prepareConfigurationForms(); readPageConfigurationFromRequest(); boolean valid = validatePageConfiguration(); if(valid) { updatePageConfiguration(); SessionMessages.addInfoMessage(ElementsThreadLocals.getText("configuration.updated.successfully")); } return cancel(); }
@Button(list = "configuration", key = "update.configuration", order = 1, type = Button.TYPE_PRIMARY) @RequiresPermissions(level = AccessLevel.DEVELOP) public Resolution updateConfiguration() { prepareConfigurationForms(); readPageConfigurationFromRequest(); boolean valid = validatePageConfiguration(); if(valid) { updatePageConfiguration(); SessionMessages.addInfoMessage(ElementsThreadLocals.getText("configuration.updated.successfully")); } return cancel(); }