Package org.rhq.enterprise.gui.legacy.action

Examples of org.rhq.enterprise.gui.legacy.action.BaseValidatorForm


        Integer userId = addForm.getU();

        ActionForward forward = checkSubmit(request, mapping, form, Constants.USER_PARAM, userId);

        if (forward != null) {
            BaseValidatorForm spiderForm = (BaseValidatorForm) form;

            if (spiderForm.isCancelClicked() || spiderForm.isResetClicked()) {
                log.trace("removing pending roles list");
                SessionUtils.removeList(session, Constants.PENDING_ROLES_SES_ATTR);
            } else if (spiderForm.isAddClicked()) {
                log.trace("adding to pending roles list");
                SessionUtils.addToList(session, Constants.PENDING_ROLES_SES_ATTR, addForm.getAvailableRoles());
            } else if (spiderForm.isRemoveClicked()) {
                log.trace("removing from pending roles list");
                SessionUtils.removeFromList(session, Constants.PENDING_ROLES_SES_ATTR, addForm.getPendingRoles());
            }

            return forward;
View Full Code Here


        AddLdapGroupsForm addForm = (AddLdapGroupsForm) form;
        Integer roleId = addForm.getR();

        ActionForward forward = checkSubmit(request, mapping, form, Constants.ROLE_PARAM, roleId);
        if (forward != null) {
            BaseValidatorForm spiderForm = (BaseValidatorForm) form;

            if (spiderForm.isCancelClicked() || spiderForm.isResetClicked()) {
                log.debug("removing pending group list");
                SessionUtils.removeList(session, Constants.PENDING_RESGRPS_SES_ATTR);
            } else if (spiderForm.isAddClicked()) {
                log.debug("adding to pending group list");
                SessionUtils.addToList(session, Constants.PENDING_RESGRPS_SES_ATTR, addForm.getAvailableGroups());
            } else if (spiderForm.isRemoveClicked()) {
                log.debug("removing from pending group list");
                SessionUtils.removeFromList(session, Constants.PENDING_RESGRPS_SES_ATTR, addForm.getPendingGroups());
            }

            return forward;
View Full Code Here

        WebUserPreferences preferences = user.getWebPreferences();
        AddResourcesForm addForm = (AddResourcesForm) form;

        ActionForward forward = checkSubmit(request, mapping, form, Constants.USER_PARAM, user.getId());
        if (forward != null) {
            BaseValidatorForm spiderForm = (BaseValidatorForm) form;

            if (spiderForm.isCancelClicked() || spiderForm.isResetClicked()) {
                log.trace("removing pending resources list");
                SessionUtils.removeList(session, Constants.PENDING_RESOURCES_SES_ATTR);
            } else if (spiderForm.isAddClicked()) {
                log.trace("adding to pending resources list");
                SessionUtils.addToList(session, Constants.PENDING_RESOURCES_SES_ATTR, addForm.getAvailableResources());
            } else if (spiderForm.isRemoveClicked()) {
                log.trace("removing from pending resources list");
                SessionUtils.removeFromList(session, Constants.PENDING_RESOURCES_SES_ATTR, addForm
                    .getPendingResources());
            }
View Full Code Here

        AddUsersForm addForm = (AddUsersForm) form;
        Integer roleId = addForm.getR();
        ActionForward forward = checkSubmit(request, mapping, form, Constants.ROLE_PARAM, roleId);

        if (forward != null) {
            BaseValidatorForm spiderForm = (BaseValidatorForm) form;

            if (spiderForm.isCancelClicked() || spiderForm.isResetClicked()) {
                log.trace("removing pending user list");
                SessionUtils.removeList(session, Constants.PENDING_USERS_SES_ATTR);
            } else if (spiderForm.isAddClicked()) {
                log.trace("adding to pending user list");
                SessionUtils.addToList(session, Constants.PENDING_USERS_SES_ATTR, addForm.getAvailableUsers());
            } else if (spiderForm.isRemoveClicked()) {
                log.trace("removing from pending user list");
                SessionUtils.removeFromList(session, Constants.PENDING_USERS_SES_ATTR, addForm.getPendingUsers());
            }

            return forward;
View Full Code Here

        params.put("oldMode", oldMode);
        params.put(Constants.METRIC_NAME_PARAM, mname);

        ActionForward forward = checkSubmit(request, mapping, form, params);
        if (forward != null) {
            BaseValidatorForm spiderForm = metricBaselineForm;
            if (spiderForm.isCancelClicked()) {
                params.put("mode", oldMode);
                params.remove("oldMode");
                forward = checkSubmit(request, mapping, form, params);
            }
View Full Code Here

        forwardParams.put(HubConstants.PARAM_GROUP_CATEGORY, category);

        try {
            ActionForward forward = checkSubmit(request, mapping, form, forwardParams);
            if (forward != null) {
                BaseValidatorForm spiderForm = (BaseValidatorForm) form;

                if (spiderForm.isCancelClicked() || spiderForm.isResetClicked()) {
                    log.trace("removing pending/removed resources list");
                    SessionUtils.removeList(session, Constants.PENDING_RESOURCES_SES_ATTR);
                } else if (spiderForm.isAddClicked()) {
                    log.trace("adding to pending resources list");
                    SessionUtils.addToList(session, Constants.PENDING_RESOURCES_SES_ATTR, addForm
                        .getAvailableResources());
                } else if (spiderForm.isRemoveClicked()) {
                    log.trace("removing from pending resources list");
                    SessionUtils.removeFromList(session, Constants.PENDING_RESOURCES_SES_ATTR, addForm
                        .getPendingResources());
                }
View Full Code Here

        AddResourceGroupsForm addForm = (AddResourceGroupsForm) form;
        Integer roleId = addForm.getR();

        ActionForward forward = checkSubmit(request, mapping, form, Constants.ROLE_PARAM, roleId);
        if (forward != null) {
            BaseValidatorForm spiderForm = (BaseValidatorForm) form;

            if (spiderForm.isCancelClicked() || spiderForm.isResetClicked()) {
                log.debug("removing pending group list");
                SessionUtils.removeList(session, Constants.PENDING_RESGRPS_SES_ATTR);
            } else if (spiderForm.isAddClicked()) {
                log.debug("adding to pending group list");
                SessionUtils.addToList(session, Constants.PENDING_RESGRPS_SES_ATTR, addForm.getAvailableGroups());
            } else if (spiderForm.isRemoveClicked()) {
                log.debug("removing from pending group list");
                SessionUtils.removeFromList(session, Constants.PENDING_RESGRPS_SES_ATTR, addForm.getPendingGroups());
            }

            return forward;
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.gui.legacy.action.BaseValidatorForm

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.