public interface ChannelService extends ITreeService<Channel>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addChannel(Channel channel)
添加栏目
|
void |
genChannelPath()
生成栏目路径(树形结构)
|
void |
genChannelPath(String domain)
生成栏目路径(树形结构)
|
void |
genStaticPage(String ids)
生成指定栏目的静态页面
|
void |
genStaticPage(String ids,
Integer pageSize)
生成指定栏目的静态页面,按照每页条数分页生成
|
List<Channel> |
getAllChannels()
返回所有栏目
|
List<com.jfinal.plugin.activerecord.Record> |
getBackChannels(String domain)
返回原栏目信息,主要用于站点备份
|
List<Channel> |
getChildren(String id)
返回子栏目列表
|
List<String> |
getChildrenIds(String id)
返回全部子栏目的ID列表(包含所有下级子栏目)
|
List<com.jfinal.plugin.activerecord.Record> |
getConbtChannels()
返回允许投稿的栏目列表
|
Integer |
getContentSize(String id)
返回指定栏目的文章总数
|
Channel |
getIndexChannel()
返回首页栏目
|
Channel |
getLastChannel(String pid)
返回指定栏目ID下最后一个子栏目
|
List<Channel> |
getLocation(String path)
根据栏目路径返回栏目的导航信息
|
List<Channel> |
getTreeChannels()
返回所有栏目(树型结构)
|
void |
modifyChannel(Channel channel)
修改栏目
|
void |
removeAllChannels(String domain)
删除全部栏目
|
void |
removeChannels(String ids)
删除栏目
|
void |
removeStaticPage(String ids)
删除指定栏目的静态页面
|
void |
sort(String pid,
String opt,
String ids)
栏目排序
|
arrange, getByIds, getLast, getLast, getLast, getNext, getPerv, sort, sortable, 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, updateChannel getIndexChannel()
返回首页栏目
void addChannel(Channel channel)
添加栏目
channel - void modifyChannel(Channel channel)
修改栏目
channel - void removeChannels(String ids)
删除栏目
ids - void genChannelPath()
生成栏目路径(树形结构)
void genChannelPath(String domain)
生成栏目路径(树形结构)
List<com.jfinal.plugin.activerecord.Record> getBackChannels(String domain)
返回原栏目信息,主要用于站点备份
domain - void removeAllChannels(String domain)
删除全部栏目
domain - void removeStaticPage(String ids)
删除指定栏目的静态页面
ids - void genStaticPage(String ids)
生成指定栏目的静态页面
ids - List<com.jfinal.plugin.activerecord.Record> getConbtChannels()
返回允许投稿的栏目列表
Copyright © 2023. All rights reserved.