Package com.jeecms.cms.entity.main

Examples of com.jeecms.cms.entity.main.ContentType


      return null;
    }
  }

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


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

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

    ext.setTitle(title);
    ext.setAuthor(author);
    ext.setDescription(description);
    ContentTxt t = new ContentTxt();
    t.setTxt(txt);
    ContentType type = contentTypeMng.getDef();
    if (type == null) {
      throw new RuntimeException("Default ContentType not found.");
    }
    Integer typeId = type.getId();
    String[] tagArr = StrUtils.splitAndTrim(tagStr, ",", null);
    c = contentMng.save(c, ext, t, null, null, null, tagArr, null, null,
        null, null, null, channelId, typeId, null, user, true);
    log.info("member contribute save Content success. id={}", c.getId());
    return FrontUtils.showSuccess(request, model, nextUrl);
View Full Code Here

  private boolean vldExist(Integer id, Integer siteId, WebErrors errors) {
    if (errors.ifNull(id, "id")) {
      return true;
    }
    ContentType entity = manager.findById(id);
    if (errors.ifNotExist(entity, ContentType.class, id)) {
      return true;
    }
    return false;
  }
View Full Code Here

    return dao.getDef();
  }

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

    return bean;
  }

  public ContentType update(ContentType bean) {
    Updater<ContentType> updater = new Updater<ContentType>(bean);
    ContentType entity = dao.updateByUpdater(updater);
    return entity;
  }
View Full Code Here

    ContentType entity = dao.updateByUpdater(updater);
    return entity;
  }

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

TOP

Related Classes of com.jeecms.cms.entity.main.ContentType

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.