Package com.adito.wizard

Examples of com.adito.wizard.WizardActionStatus


            } catch (Exception e) {
                CoreServlet.getServlet().fireCoreEvent(
                    new ResourceChangeEvent(this, CoreEventConstants.CREATE_PROPERTY_PROFILE, info, e));
                throw e;
            }
            actionStatus.add(new WizardActionStatus(WizardActionStatus.COMPLETED_OK,
                            "profileWizard.profileFinish.status.profileCreated"));
        } catch (Exception e) {
            log.error("Failed to create profile.", e);
            actionStatus.add(new WizardActionStatus(WizardActionStatus.COMPLETED_WITH_ERRORS,
                            "profileWizard.profileFinish.status.failedToCreateProfile", e.getMessage()));
        }
        if (newProfile != null) {
            actionStatus.add(attachToPolicies(seq, info, newProfile));
        }
View Full Code Here


     */
    WizardActionStatus attachToPolicies(AbstractWizardSequence seq, SessionInfo info, Resource resource) {
        PropertyList selectedPolicies = (PropertyList) seq.getAttribute(ProfilePolicySelectionForm.ATTR_SELECTED_POLICIES, null);
        try {
            PolicyDatabaseFactory.getInstance().attachResourceToPolicyList(resource, selectedPolicies, info);
            return new WizardActionStatus(WizardActionStatus.COMPLETED_OK, "profileWizard.profileFinish.status.attachedToPolicies");
        } catch (Exception e) {
            log.error("Failed to create profile.", e);
            return new WizardActionStatus(WizardActionStatus.COMPLETED_WITH_ERRORS,
                            "profileWizard.profileFinish.status.failedToAttachToPolicies", e.getMessage());
        }
    }
View Full Code Here

            } catch (Exception e) {
                CoreServlet.getServlet().fireCoreEvent(
                    new ResourceChangeEvent(this, CoreEventConstants.CREATE_AUTHENTICATION_SCHEME, getSessionInfo(request), e));
                throw e;
            }
            actionStatus.add(new WizardActionStatus(WizardActionStatus.COMPLETED_OK,
                            "authwizard.athenticationSchemeFinish.status.authenticationSchemeCreated"));
        } catch (Exception e) {
            log.error("Failed to create profile.", e);
            actionStatus.add(new WizardActionStatus(WizardActionStatus.COMPLETED_WITH_ERRORS,
                            "authwizard.athenticationSchemeFinish.status.failedToCreateAuthenticationScheme", e.getMessage()));
        }
        if (defaultAuthenticationScheme != null) {
            actionStatus.add(attachToPoliciesAndAddToFavorites("authwizard.athenticationSchemeFinish", seq, defaultAuthenticationScheme, false, request));
        }
View Full Code Here

                                                                TunnelsEventConstants.EVENT_ATTR_TUNNEL_TYPE,
                                                                ((LabelValueBean) TransportType.TYPES.get(tunnel.getType()))
                                                                                .getLabel()));
                throw e;
            }
            actionStatus.add(new WizardActionStatus(WizardActionStatus.COMPLETED_OK,
                            "tunnelWizard.tunnelFinish.status.profileCreated"));
        } catch (Exception e) {
            log.error("Failed to create profile.", e);
            actionStatus.add(new WizardActionStatus(WizardActionStatus.COMPLETED_WITH_ERRORS,
                            "tunnelWizard.tunnelFinish.status.failedToCreateProfile", e.getMessage()));
        }
        if (tunnel != null) {
            actionStatus.add(attachToPoliciesAndAddToFavorites("tunnelWizard.tunnelFinish", seq, tunnel, favorite, request));
        }
View Full Code Here

        ApplicationShortcut shortcut = null;
        try {
            int shortcutId = ApplicationShortcutDatabaseFactory.getInstance().createApplicationShortcut(application, name, description,
                            parameterMap, autoStart, getSessionInfo(request).getRealmId());
            shortcut = ApplicationShortcutDatabaseFactory.getInstance().getShortcut(shortcutId);
            actionStatus.add(new WizardActionStatus(WizardActionStatus.COMPLETED_OK,
                            "applicationShortcutWizard.applicationShortcutFinish.status.applicationShortcutCreated"));
            CoreServlet.getServlet().fireCoreEvent(
                new ApplicationShortcutChangeEvent(this, ApplicationShortcutEventConstants.CREATE_APPLICATION_SHORTCUT, shortcut,
                                getSessionInfo(request), CoreEvent.STATE_SUCCESSFUL));
        } catch (Exception e) {
            log.error("Failed to create application shortcut.", e);
            actionStatus.add(new WizardActionStatus(WizardActionStatus.COMPLETED_WITH_ERRORS,
                            "applicationShortcutWizard.applicationShortcutFinish.status.failedToCreateApplicationShortcut", e
                                            .getMessage()));
            CoreServlet.getServlet().fireCoreEvent(
                new ApplicationShortcutChangeEvent(this, ApplicationShortcutEventConstants.CREATE_APPLICATION_SHORTCUT, getSessionInfo(request), e));
        }
View Full Code Here

TOP

Related Classes of com.adito.wizard.WizardActionStatus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.