IArticleBiz.java 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. /**
  2. The MIT License (MIT) * Copyright (c) 2016 铭飞科技(mingsoft.net)
  3. * Permission is hereby granted, free of charge, to any person obtaining a copy of
  4. * this software and associated documentation files (the "Software"), to deal in
  5. * the Software without restriction, including without limitation the rights to
  6. * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
  7. * the Software, and to permit persons to whom the Software is furnished to do so,
  8. * subject to the following conditions:
  9. * The above copyright notice and this permission notice shall be included in all
  10. * copies or substantial portions of the Software.
  11. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
  13. * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  14. * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  15. * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  16. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  17. */
  18. package net.mingsoft.cms.biz;
  19. import java.util.List;
  20. import java.util.Map;
  21. import net.mingsoft.basic.biz.IBasicBiz;
  22. import net.mingsoft.cms.bean.ColumnArticleIdBean;
  23. import net.mingsoft.cms.entity.ArticleEntity;
  24. import net.mingsoft.mdiy.entity.ContentModelEntity;
  25. /**
  26. *
  27. * @ClassName: IArticleBiz
  28. * @Description:TODO(文章管理业务处理层 || 继承IBasicBiz业务处理层)
  29. * @author: 铭飞开发团队
  30. * @date: 2018年1月31日 下午2:53:32
  31. *
  32. * @Copyright: 2018 www.mingsoft.net Inc. All rights reserved.
  33. */
  34. public interface IArticleBiz extends IBasicBiz {
  35. /**
  36. * @para webId 网站编号
  37. * @param basicCategoryId
  38. * 栏目编号
  39. * @param flag
  40. * 文章属性
  41. * @param noFlag
  42. * 文章不存在的属性
  43. * @param article
  44. * 文件实体
  45. * @return
  46. */
  47. @Deprecated
  48. int count(int webId, int[] basicCategoryId, String flag, String noFlag, ArticleEntity article);
  49. /**
  50. * 通过分类id获取文章内容
  51. *
  52. * @param categoryId
  53. * 分类编号
  54. * @return
  55. */
  56. @Deprecated
  57. public ArticleEntity getByCategoryId(int categoryId);
  58. /**
  59. * 通过视图表来查询文章总数
  60. *
  61. * @param basicId
  62. * 文章编号
  63. */
  64. public ArticleEntity getById(int basicId);
  65. /**
  66. * 查找basicId下一篇文章
  67. *
  68. * @param appId
  69. * 应用编号
  70. * @param basicId
  71. * 文章编号
  72. * @return
  73. */
  74. @Deprecated
  75. public ArticleEntity getNext(int appId, int basicId, Integer categoryId);
  76. /**
  77. * 查找basicId上一篇文章
  78. *
  79. * @param appId
  80. * 应用编号
  81. * @param basicId
  82. * 文章编号
  83. * @return
  84. */
  85. @Deprecated
  86. public ArticleEntity getPrevious(int appId, int basicId, Integer categoryId);
  87. /**
  88. * 高级查询接口,主要提供给有自定义模型的栏目,返回總數
  89. *
  90. * @param contentModel
  91. * 自定义模型
  92. * @param whereMap
  93. * 條件
  94. * @param appId
  95. * appId 應用編號
  96. * @param ids
  97. * 子类id
  98. * @return 记录数量
  99. * @see IArticleBiz.count
  100. */
  101. public int getSearchCount(ContentModelEntity contentModel, Map whereMap, int appId, String ids);
  102. /**
  103. * 文章查询
  104. *
  105. * @para webId 网站编号
  106. * @param basicCategoryIds
  107. * 栏目编号集合
  108. * @param flag
  109. * 文章属性
  110. * @param noFlag
  111. * 文章不存在的属性
  112. * @param orderBy
  113. * 排序字段
  114. * @param order
  115. * true 升序 false 降序 排序方式
  116. * @param beginTime 开始时间
  117. * @param endTime 结束时间
  118. * @param article
  119. * 文章实体,便于扩展查询
  120. * @return 文章集合
  121. */
  122. List<ArticleEntity> query(int webId, int[] basicCategoryIds, String flag, String noFlag, String orderBy,
  123. boolean order, String beginTime,String endTime, ArticleEntity article);
  124. /**
  125. * 查询文章编号集合
  126. * @param categoryId 栏目编号
  127. * @param beginTime 开始时间
  128. * @param endTime 结束时间
  129. * @return
  130. */
  131. public List<ColumnArticleIdBean> queryIdsByCategoryIdForParser(int categoryId, String beginTime,String endTime);
  132. /**
  133. * 查询文章编号集合
  134. * @param categoryId 栏目编号
  135. * @param beginTime 开始时间
  136. * @param endTime 结束时间
  137. * @param orderBy 排序字段
  138. * @param order 排序方式
  139. * @return
  140. */
  141. public List<ColumnArticleIdBean> queryIdsByCategoryIdForParser(int categoryId, String beginTime,String endTime,String orderBy,String order);
  142. /**
  143. * 根据页面栏目的id获取与其绑定的文章实体
  144. *
  145. * @param basicCategoryId
  146. * @return 文章实体
  147. */
  148. @Deprecated
  149. public List<ArticleEntity> queryListByColumnId(int basicCategoryId);
  150. /**
  151. * 高级查询接口,主要提供给有自定义模型的栏目,
  152. *
  153. * @param conntentModel
  154. * 自定义模型
  155. * @param whereMap
  156. * 條件
  157. * @param page
  158. * 分頁
  159. * @param appId
  160. * 應用編號
  161. * @param ids
  162. * 子类id
  163. * @return 记录集合
  164. */
  165. @Deprecated
  166. public List<ArticleEntity> queryListForSearch(ContentModelEntity conntentModel, Map whereMap,
  167. int appId, List ids, Map orders);
  168. }