Package com.jeecms.cms.entity.assist

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


    return temp;
  }

  private CmsAcquisitionHistory newHistory(String channelUrl,
      String contentUrl, CmsAcquisition acqu) {
    CmsAcquisitionHistory history = new CmsAcquisitionHistory();
    history.setChannelUrl(channelUrl);
    history.setContentUrl(contentUrl);
    history.setAcquisition(acqu);
    return history;
  }
View Full Code Here


          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
              .getTitleStart(), acqu.getTitleEnd(), acqu
              .getContentStart(), acqu.getContentEnd(), temp,
              history);
View Full Code Here

  private boolean vldHistoryExist(Integer id, Integer siteId, WebErrors errors) {
    if (errors.ifNull(id, "id")) {
      return true;
    }
    CmsAcquisitionHistory entity = cmsAcquisitionHistoryMng.findById(id);
    if (errors.ifNotExist(entity, CmsAcquisitionHistory.class, id)) {
      return true;
    }
    if (!entity.getAcquisition().getSite().getId().equals(siteId)) {
      errors.notInSite(CmsAcquisitionHistory.class, id);
      return true;
    }
    return false;
  }
View Full Code Here

    return dao.getPage(siteId, acquId, pageNo, pageSize);
  }

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

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

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

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

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

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

  public CmsAcquisitionHistory deleteById(Integer id) {
    CmsAcquisitionHistory 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.CmsAcquisitionHistory

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.