@Override @End public String back() { return "back"; }
@Override @End public String back() { return "back"; }
/** * {@inheritDoc} */ @End public String back() { if (null != this.selectedTrustDomain) { return "back_trustdomain"; } return "back"; }
@End public String reset() { return null; }
@End public void reset() { }
@Override @End(beforeRedirect = true) public String exitWizard() { return navigationContext.navigateToDocument(navigationContext.getCurrentDocument()); }
/** * {@inheritDoc} */ @End public String back() { trustDomainListFactory(); virtualTrustDomainListFactory(); return "back"; }
/** * {@inheritDoc} */ @End @Admin public String saveInfoMessage() { this.log.debug("save info message for language=#0", this.language); this.configurationService.saveText( TrustServiceConstants.INFO_MESSAGE_KEY, new Locale( this.language), this.informationMessage); return "success"; }
@Override @End public String save() { this.log.debug("save RP: #0", this.selectedRP.getName()); this.rpService.save(this.selectedRP); rpListFactory(); return "success"; }
@Override @End public String remove() { this.log.debug("remove RP: #0", this.selectedRP.getName()); this.rpService.remove(this.selectedRP); rpListFactory(); return "success"; }
/** * {@inheritDoc} */ @Override @End public String remove() { this.log.debug("remove RP: #0", this.selectedRP.getName()); this.rpService.remove(this.selectedRP); rpListFactory(); return "success"; }
/** * {@inheritDoc} */ @End @Admin public String saveNetworkConfig() { this.log.debug( "save network config: proxyHost=#0 proxyPort=#1 enabled=#2", this.proxyHost, this.proxyPort, this.proxyEnabled); this.configurationService.saveNetworkConfig(proxyHost, proxyPort, proxyEnabled); this.selectedTab = ConfigurationTab.tab_network.name(); return "success"; }
/** * {@inheritDoc} */ @End @Admin public String remove() { this.log.debug("remove: #0", this.selectedTrustDomain.getName()); this.trustDomainService.removeTrustDomain(this.selectedTrustDomain); trustDomainListFactory(); return "success"; }
/** * {@inheritDoc} */ @End @Admin public String save() { if (null != this.selectedTrustDomain) { this.selectedTrustDomain.setUseCaching(this.useCaching); this.log.debug("save trust domain: #0 ", this.selectedTrustDomain.getName()); this.trustDomainService.save(selectedTrustDomain); } return "save"; }
/** * {@inheritDoc} */ @End @Admin public String removeVirtual() { this.log.debug("remove virtual: #0", this.selectedVirtualTrustDomain.getName()); this.trustDomainService .removeVirtualTrustDomain(this.selectedVirtualTrustDomain); virtualTrustDomainListFactory(); return "success"; }
/** * {@inheritDoc} */ @End @Admin public String remove() { this.log.debug("remove trust point: #0", this.selectedTrustPoint.getName()); this.trustDomainService.removeTrustPoint(this.selectedTrustPoint); this.selectedTrustPoint = null; trustPointListFactory(); if (null != this.selectedTrustDomain) { return "success_trustdomain"; } return "success"; }
/** * {@inheritDoc} */ @End @Admin public String save() { if (null != this.selectedTrustPoint) { this.selectedTrustPoint .setCrlRefreshCronSchedule(this.crlRefreshCronSchedule); this.log.debug("save trust point: #0", this.selectedTrustPoint.getName()); try { this.trustDomainService.save(this.selectedTrustPoint); } catch (InvalidCronExpressionException e) { this.facesMessages.addToControlFromResourceBundle( "cronSchedule", StatusMessage.Severity.ERROR, "errorCronExpressionInvalid"); return null; } this.crlRefreshCronSchedule = null; } if (null != this.selectedTrustDomain) { return "success_trustdomain"; } return "success"; }
/** * {@inheritDoc} */ @End @Admin public String saveWSSecurityConfig() { this.log.debug("save ws security config: signing=#0 type=#1, path=#2 " + "store pw=#3 entry pw=#4 alias=#5", this.wsSecuritySigning, this.wsSecurityKeyStoreType, this.wsSecurityKeyStorePath, this.wsSecurityKeyStorePassword, this.wsSecurityKeyEntryPassword, this.wsSecurityAlias); try { this.configurationService.saveWSSecurityConfig( this.wsSecuritySigning, KeyStoreType.valueOf(this.wsSecurityKeyStoreType), this.wsSecurityKeyStorePath, this.wsSecurityKeyStorePassword, this.wsSecurityKeyEntryPassword, this.wsSecurityAlias); } catch (KeyStoreLoadException e) { this.facesMessages.addToControlFromResourceBundle("wssec_path", StatusMessage.Severity.ERROR, "errorLoadKeyStore", e.getMessage()); return null; } this.selectedTab = ConfigurationTab.tab_wssec.name(); return "success"; }
@Override @End public String saveApplet() { this.log.debug("save applet config"); // Applet config if (null != this.certificateBytes) { try { this.appletConfig .setServerCertificate(getCertificate(this.certificateBytes)); } catch (CertificateException e) { this.log.error("Certificate exception: " + e.getMessage(), e); this.facesMessages .addToControl("upload", "Invalid certificate"); return null; } this.configuration.setAppletConfig(this.appletConfig); } this.configuration .setValue(ConfigProperty.REMOVE_CARD, this.removeCard); this.configuration.setValue(ConfigProperty.TRANSACTION_MESSAGE_SIGNING, this.transactionMessageSigning); this.configuration.setValue(ConfigProperty.OMIT_SECURE_CHANNEL_BINDING, this.omitSecureChannelBinding); this.selectedTab = ConfigurationTab.tab_applet.name(); return "success"; }
@End @CreateProcess(definition = "OrderManagement", processKey = "#{completedOrder.orderId}") @Restrict("#{identity.loggedIn}") public void submitOrder() { try { completedOrder = purchase(customer, currentOrder); orderId = completedOrder.getOrderId(); amount = completedOrder.getNetAmount(); customerName = completedOrder.getCustomer().getUserName(); customerFullName = completedOrder.getCustomer().getFirstName() + " " + completedOrder.getCustomer().getLastName(); customerPhone = completedOrder.getCustomer().getPhone(); fireEvent(orderId, amount, customerFullName, customerPhone); } catch (InsufficientQuantityException e) { for (Product product : e.getProducts()) { Contexts.getEventContext().set("prod", product); FacesMessages.instance().addFromResourceBundle( "checkoutInsufficientQuantity"); } } }