Package com.jeecms.cms.entity.assist

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


    }
  }

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


    return bean;
  }

  public void updateKeywords(Integer[] ids, String[] names, String[] urls,
      Boolean[] disableds) {
    CmsKeyword keyword;
    for (int i = 0, len = ids.length; i < len; i++) {
      keyword = findById(ids[i]);
      keyword.setName(names[i]);
      keyword.setUrl(urls[i]);
      keyword.setDisabled(disableds[i]);
    }
  }
View Full Code Here

      keyword.setDisabled(disableds[i]);
    }
  }

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

  private boolean vldExist(Integer id, Integer siteId, WebErrors errors) {
    if (errors.ifNull(id, "id")) {
      return true;
    }
    CmsKeyword entity = manager.findById(id);
    if (errors.ifNotExist(entity, CmsKeyword.class, id)) {
      return true;
    }
    // TODO 暂时不判断站点相关权限
    // if (!entity.getSite().getId().equals(siteId)) {
View Full Code Here

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

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

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

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

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.