Package org.jayasoft.woj.portal.forms

Examples of org.jayasoft.woj.portal.forms.ClearableDynaValidatorActionForm


                new AbstractActionCall(){
                    public String doInAction(ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServiceException {
                        if (!ActionsHelper.isAdmin(request)) {
                            return ActionsHelper.homepageForwardName();
                        }
                        ClearableDynaValidatorActionForm f = (ClearableDynaValidatorActionForm)form;
                        f.remove(Params.LICENSE.REQUEST.LICENSE_CREATED);
                        f.remove(Params.LICENSE.PARAMS.MESSAGE);
                        retrieveLastLicenses(request);
                        return null;
                    }
                }
                , "license.manageForm");
View Full Code Here


                    public String doInAction(ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServiceException {
                        if (!ActionsHelper.isAdmin(request)) {
                            return ActionsHelper.homepageForwardName();
                        }

                        ClearableDynaValidatorActionForm f = (ClearableDynaValidatorActionForm)form;
                        String message = f.getString(Params.LICENSE.PARAMS.MESSAGE);
                       
                        InvoiceId id = ServiceFactory.getInvoiceIdService().newStandardIdent(message);
                        ServiceFactory.getInvoiceIdService().validateIdent(id);
                        request.setAttribute(Params.LICENSE.REQUEST.LICENSE_CREATED, id);
                       
                        f.remove(Params.LICENSE.PARAMS.MESSAGE);
                        retrieveLastLicenses(request);
                        return null;
                    }
                }
                , "license.manageForm");
View Full Code Here

                        if (!userLogged.isMailVerified()) {
                            addWOJMessages(request, RessourceBundleApplicationMessage.info("woj.page.user.points.email.not.verified", new Object[] {request.getContextPath()}));
                            return "show.user.points";
                        }
                       
                        ClearableDynaValidatorActionForm f = (ClearableDynaValidatorActionForm)form;
                        String email = (String)f.get(Params.FIDELITY_OFFERS.SHOW_USER_POINTS.SPREAD_WOJ.PARAMS.EMAILS);
                        String message = (String)f.get(Params.FIDELITY_OFFERS.SHOW_USER_POINTS.SPREAD_WOJ.PARAMS.MESSAGE);
                       
                        message = message.replaceAll(System.getProperty("line.separator"), "<br />");
                        Portal.getInstance().getMailService().asyncSendMail(Portal.getInstance().getMailFactory().createSpreadWOJMail(userLogged, email, message));
                        LOGGER.info("sent spread mail from " + userLogged.getEmail() + " to " + email);
                       
View Full Code Here

TOP

Related Classes of org.jayasoft.woj.portal.forms.ClearableDynaValidatorActionForm

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.