Examples of CampaignVO


Examples of de.xanders.data.customer.vo.CampaignVO

     *
     * Prepares to enter a new campaign entry
     */
    public String initCampaign() throws Exception {
        campaignDetailForm = (CampaignDetailForm) getForm(CAMPAIGN_DETAIL_FORM);
        CustomerMapperFactory.getCampaignMapper().mapToBean(new CampaignVO(), campaignDetailForm);
        return "campaignDetail";
    }
View Full Code Here

Examples of de.xanders.data.customer.vo.CampaignVO

     */
    public String saveCampaign() throws Exception {
        campaignDetailForm = (CampaignDetailForm) getForm(CAMPAIGN_DETAIL_FORM);
        if (validateBeanProperties(campaignDetailForm)) {
          try {
              campaignVO = new CampaignVO();
              CustomerMapperFactory.getCampaignMapper().mapToObj(campaignDetailForm, campaignVO);
                UserVO loggedInUserVO = (UserVO)getSession().getAttribute(Constants.LOGGED_IN_USER);
                if (campaignVO.getCampaignId() == null) {
                    campaignVO.setCreatedOn(new Date());
                    campaignVO.setCreatedBy(loggedInUserVO.getUserIdent());
View Full Code Here

Examples of de.xanders.data.customer.vo.CampaignVO

     */
    public String deleteCampaign() throws Exception {
        campaignDetailForm = (CampaignDetailForm) getForm(CAMPAIGN_DETAIL_FORM);
        try {
            dataServiceLocator.getCampaignService().deleteCampaign(new Long(campaignDetailForm.getCampaignId()));
            CustomerMapperFactory.getCampaignMapper().mapToBean(new CampaignVO(), campaignDetailForm);
        } catch (CampaignServiceException ex) {
            logger.error("DAO exception occured, cause: ", ex);
            MessageUtils.addErrorMessage("error.dataSource");
        }
        return "campaignDetail";
View Full Code Here

Examples of de.xanders.data.customer.vo.CampaignVO

    }

    protected void sort(final String column, final boolean ascending) {
      Comparator comparator = new Comparator() {
          public int compare(Object o1, Object o2) {
              CampaignVO c1 = (CampaignVO) o1;
              CampaignVO c2 = (CampaignVO) o2;

              if (column == null) {
                  return 0;
              }

              if (column.equals("type")) {
                  return ascending
                  ? c1.getName().compareTo(c2.getName())
                  : c2.getName().compareTo(c1.getName());
              } else if (column.equals("type")) {
                  return ascending
                  ? c1.getType().compareTo(c2.getType())
                  : c2.getType().compareTo(c1.getType());
              } else if (column.equals("status")) {
                  return ascending
                  ? c1.getStatus().compareTo(c2.getStatus())
                  : c2.getStatus().compareTo(c1.getStatus());
              } else if (column.equals("beginDate")) {
                  return ascending
                  ? c1.getBeginDate().compareTo(c2.getBeginDate())
                  : c2.getBeginDate().compareTo(c1.getBeginDate());
              } else if (column.equals("endDate")) {
                  return ascending
                  ? c1.getBeginDate().compareTo(c2.getBeginDate())
                  : c2.getBeginDate().compareTo(c1.getBeginDate());
              } else {
                  return 0;
              }
          }
      };
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.