public interface ContentService extends IModelService<Content>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
conbt(Content content,
String[] conbtTo)
投稿抄送
|
Content |
first(String channelId)
返回栏目内第一篇文章
|
void |
genStaticPage(String ids)
生成指定文章的静态页面
|
List<com.jfinal.plugin.activerecord.Record> |
getBetweenYears(String domain,
Integer yearf,
Integer yeare)
返回指定年份的文章
|
List<Content> |
getByChannelId(String channelId)
返回指定栏目内的全部文章
|
List<Content> |
getByChannelId(String channelId,
Integer limit)
返回栏目内头几篇文章
注1:按倒叙返回文章列表
注2:不包含子栏目文章
|
List<Content> |
getByChannelId(String channelId,
Integer limit,
Boolean desc)
返回栏目内头几篇文章
注1:不包含子栏目文章
|
List<com.jfinal.plugin.activerecord.Record> |
getDraft()
草稿箱文章列表
|
com.jfinal.plugin.activerecord.Page<Content> |
getPageByChannelId(String channelId,
Integer pageNum,
Integer pageSize,
Boolean desc)
返回栏目内指定页码的文章列表
|
com.jfinal.plugin.activerecord.Page<Content> |
getPageByChannelId(String channelId,
Integer pageNum,
Integer pageSize,
Boolean desc,
Boolean ignoreValid)
返回栏目内指定页码的文章列表
|
List<Content> |
getSameContent(String caption)
检索同名文章
|
List<Content> |
getTops(String pid)
返回栏目内的置顶文章
|
Content |
last(String channelId)
返回栏目内最后一篇文章
|
Content |
next(String channelId,
Integer sort,
Date cdate)
返回栏目内下一篇文章
|
Content |
previous(String channelId,
Integer sort,
Date cdate)
返回栏目内上一篇文章
|
List<Content> |
queryByTag(String codes,
String keyword,
Integer limit,
Boolean desc,
Boolean domainSelf)
根据标签返回文章列表(跨站)
|
com.jfinal.plugin.activerecord.Page<Content> |
queryPageByTag(String codes,
Integer pageNum,
Integer pageSize,
Boolean desc,
Boolean domainSelf)
根据标签分页返回文章列表(跨站)
|
void |
removeBetweenYears(String domain,
Integer yearf,
Integer yeare)
删除指定年份的文章
|
void |
removeByChannels(String channelIds)
删除栏目内的全部文章
|
void |
removeStaticPage(String ids)
删除指定文章的静态页面
|
List<Content> |
searchByChannelId(String channelId,
String keyword,
Boolean desc)
搜索栏目内的文章
|
com.jfinal.plugin.activerecord.Page<Content> |
searchPageByChannelId(String channelId,
String keyword,
Boolean desc,
Integer pageNum,
Integer pageSize)
搜索栏目内的文章
|
List<com.jfinal.plugin.activerecord.Record> |
supSearch(EMap map)
后台文章搜索
|
com.jfinal.plugin.activerecord.Page<com.jfinal.plugin.activerecord.Record> |
supSearchPage(EMap map,
Integer page,
Integer pageSize)
后台文章搜索
|
able, batchSave, batchUpdate, deleteByCodes, deleteById, deleteByIda, deleteByIds, disable, disable, disableByIda, disableByIds, enable, enable, enableByIda, enableByIds, findByCode, findByCodea, findByCodes, findByDomain, findByDomainSingle, findById, findByIda, findByIds, paginate, paginate, removeRepeat, save, saveOrUpdate, select, select, select, select, select, select, select, select, selectAll, selectAll, selectAllBy, selectAllBy, selectCol, selectCol, selectCol, selectFirst, selectFirst, selectFirst, selectFirst, selectFirst, updateList<Content> getByChannelId(String channelId, Integer limit)
返回栏目内头几篇文章 注1:按倒叙返回文章列表 注2:不包含子栏目文章
channelId - limit - List<Content> getByChannelId(String channelId, Integer limit, Boolean desc)
返回栏目内头几篇文章 注1:不包含子栏目文章
channelId - limit - desc - com.jfinal.plugin.activerecord.Page<Content> getPageByChannelId(String channelId, Integer pageNum, Integer pageSize, Boolean desc)
返回栏目内指定页码的文章列表
channelId - pageNum - pageSize - desc - com.jfinal.plugin.activerecord.Page<Content> getPageByChannelId(String channelId, Integer pageNum, Integer pageSize, Boolean desc, Boolean ignoreValid)
返回栏目内指定页码的文章列表
channelId - pageNum - pageSize - desc - List<Content> searchByChannelId(String channelId, String keyword, Boolean desc)
搜索栏目内的文章
channelId - keyword - desc - com.jfinal.plugin.activerecord.Page<Content> searchPageByChannelId(String channelId, String keyword, Boolean desc, Integer pageNum, Integer pageSize)
搜索栏目内的文章
channelId - keyword - desc - pageNum - pageSize - Content next(String channelId, Integer sort, Date cdate)
返回栏目内下一篇文章
channelId - sort - cdate - Content previous(String channelId, Integer sort, Date cdate)
返回栏目内上一篇文章
channelId - sort - cdate - List<Content> queryByTag(String codes, String keyword, Integer limit, Boolean desc, Boolean domainSelf)
根据标签返回文章列表(跨站)
codes - keyword - limit - desc - com.jfinal.plugin.activerecord.Page<Content> queryPageByTag(String codes, Integer pageNum, Integer pageSize, Boolean desc, Boolean domainSelf)
根据标签分页返回文章列表(跨站)
codes - pageNum - pageSize - desc - void removeByChannels(String channelIds)
删除栏目内的全部文章
channelIds - List<com.jfinal.plugin.activerecord.Record> getBetweenYears(String domain, Integer yearf, Integer yeare)
返回指定年份的文章
domain - yearf - yeare - void removeBetweenYears(String domain, Integer yearf, Integer yeare)
删除指定年份的文章
domain - yearf - yeare - void removeStaticPage(String ids)
删除指定文章的静态页面
ids - void genStaticPage(String ids)
生成指定文章的静态页面
ids - List<com.jfinal.plugin.activerecord.Record> getDraft()
草稿箱文章列表
com.jfinal.plugin.activerecord.Page<com.jfinal.plugin.activerecord.Record> supSearchPage(EMap map, Integer page, Integer pageSize)
后台文章搜索
map - Copyright © 2023. All rights reserved.