Package com.jeecms.cms.entity.assist

Examples of com.jeecms.cms.entity.assist.CmsAcquisitionTemp


    }
  }

  private CmsAcquisitionTemp newTemp(String channelUrl, String contentUrl,
      Integer id, Float curr, Float total, CmsSite site) {
    CmsAcquisitionTemp temp = new CmsAcquisitionTemp();
    temp.setChannelUrl(channelUrl);
    temp.setContentUrl(contentUrl);
    temp.setSeq(id);
    NumberFormat nf = NumberFormat.getPercentInstance();
    String percent = nf.format(curr / total);
    temp.setPercent(Integer.parseInt(percent.substring(0,
        percent.length() - 1)));
    temp.setSite(site);
    return temp;
  }
View Full Code Here


            }
          }
          link = contentList.get(j);
          float curr = contentList.size() - j;
          float total = contentList.size();
          CmsAcquisitionTemp temp = AcquisitionSvcImpl.this.newTemp(
              url, link, contentList.size() - j, curr, total,
              acqu.getSite());
          CmsAcquisitionHistory history = AcquisitionSvcImpl.this
              .newHistory(url, link, acqu);
          saveContent(client, handler, acquId, link, acqu
View Full Code Here

    return dao.getList(siteId);
  }

  @Transactional(readOnly = true)
  public CmsAcquisitionTemp findById(Integer id) {
    CmsAcquisitionTemp entity = dao.findById(id);
    return entity;
  }
View Full Code Here

    bean = dao.updateByUpdater(updater);
    return bean;
  }

  public CmsAcquisitionTemp deleteById(Integer id) {
    CmsAcquisitionTemp bean = dao.deleteById(id);
    return bean;
  }
View Full Code Here

    f.append(" order by bean.id desc");
    return find(f);
  }

  public CmsAcquisitionTemp findById(Integer id) {
    CmsAcquisitionTemp entity = get(id);
    return entity;
  }
View Full Code Here

    getSession().save(bean);
    return bean;
  }

  public CmsAcquisitionTemp deleteById(Integer id) {
    CmsAcquisitionTemp entity = super.get(id);
    if (entity != null) {
      getSession().delete(entity);
    }
    return entity;
  }
View Full Code Here

TOP

Related Classes of com.jeecms.cms.entity.assist.CmsAcquisitionTemp

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.