类 CmsContentService
CmsContentService
-
字段概要
字段修饰符和类型字段说明private CmsContentAttributeService
private CmsCategoryService
private CmsContentRelatedService
private CmsContentFileService
private CmsContentProductService
private CmsContentDao
private static final String[]
private CmsEditorHistoryService
private SysExtendFieldService
private SysExtendService
protected static final String[]
static final String[]
static final String[]
private CmsContentSearchDao
static final int
static final int
static final int
static final Integer[]
static final int
static final int
private CmsTagService
从类继承的字段 com.publiccms.common.base.BaseService
basedao, log
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明batchUpdate
(List<CmsContent> entityList) void
batchWorkContent
(short siteId, Integer categoryId, String modelId, ObjIntConsumer<List<CmsContent>> worker, int batchSize) void
batchWorkId
(short siteId, Integer categoryId, String modelId, ObjIntConsumer<List<Serializable>> worker, int batchSize) void
changeModel
(Serializable id, String modelId) check
(short siteId, SysUser user, Serializable id) check
(short siteId, SysUser user, Serializable[] ids) checking
(short siteId, Serializable id) checkInProcess
(short siteId, Long userId, Serializable id) copy
(SysSite site, CmsContent content, CmsCategory category, int status, Long userId) private void
dealAttribute
(CmsContent entity, SysSite site, List<SysExtendField> modelExtendList, List<SysExtendField> categoryExtendList, Map<String, String> map, CmsModel cmsModel, List<CmsContentFile> files, List<CmsContentFile> images, List<CmsContentProduct> products, CmsContentAttribute attribute) private static void
dealFiles
(List<CmsContentFile> files, List<CmsContentFile> images, List<CmsContentProduct> products, CmsContentAttribute attribute) delete
(short siteId, SysUser user, Serializable[] ids) int
deleteByCategoryIds
(short siteId, Integer[] categoryIds) facetQuery
(CmsContentSearchQuery queryEntity, Boolean containChild, String orderField, String orderType, Integer pageIndex, Integer pageSize, Integer maxResults) private Integer[]
getCategoryIds
(Boolean containChild, Integer categoryId, Integer[] categoryIds) getList
(CmsContentQuery queryEntity, Boolean containChild, String orderField, String orderType) getListByQuoteId
(short siteId, long quoteId) getListByTopId
(short siteId, long topId) getPage
(CmsContentQuery queryEntity, Boolean containChild, String orderField, String orderType, Integer firstResult, Integer pageIndex, Integer pageSize, Integer maxResults) getWorkLoadList
(short siteId, Integer[] status, Date startCreateDate, Date endCreateDate, String workloadType, String dateField) void
index
(short siteId, Serializable[] ids) static void
initContent
(CmsContent entity, SysSite site, CmsModel cmsModel, Boolean draft, Boolean checked, CmsContentAttribute attribute, boolean base64, Date now) query
(CmsContentSearchQuery queryEntity, Boolean containChild, String orderField, String orderType, Integer pageIndex, Integer pageSize, Integer maxResults) void
realDelete
(Short siteId, Long[] ids) void
rebuildSearchText
(SysSite site, CmsModel cmsModel, List<SysExtendField> categoryExtendList, CmsContent entity) void
rebuildSearchText
(SysSite site, CmsModel cmsModel, List<SysExtendField> categoryExtendList, List<CmsContent> list) recycle
(short siteId, Serializable[] ids) refresh
(short siteId, SysUser user, Serializable[] ids) reject
(short siteId, SysUser user, Serializable id) reject
(short siteId, SysUser user, Serializable[] ids) rejectInProcess
(short siteId, Long userId, Serializable id) void
save
(short siteId, Long userId, Integer deptId, CmsContent entity) void
saveEditorHistory
(CmsContentAttribute oldAttribute, CmsContentAttribute attribute, short siteId, long contentId, long userId, List<SysExtendField> modelExtendList, List<SysExtendField> categoryExtendList, Map<String, String> map) void
saveQuote
(Serializable id, List<CmsCategory> categoryList, CmsCategory category) saveTagAndAttribute
(SysSite site, Long userId, Integer deptId, CmsContent entity, CmsContentParameters contentParameters, CmsModel cmsModel, Integer extendId, CmsContentAttribute attribute) uncheck
(short siteId, SysUser user, Serializable[] ids) updateCategoryId
(short siteId, Serializable id, int categoryId) updateChilds
(Serializable id, int num) updateCollections
(short siteId, Serializable id, int collections) updateComments
(short siteId, Serializable id, int comments) updateQuote
(Serializable id, CmsContentParameters contentParameters) updateScores
(short siteId, Serializable id, int scoreUsers, int scores) void
updateStatistics
(Collection<ClickStatistics> entitys) updateUrl
(Serializable id, String url, boolean hasStatic) 从类继承的方法 com.publiccms.common.base.BaseService
delete, delete, delete, getEntity, getEntity, getEntitys, getEntitys, getEntitys, getEntitys, getId, save, save, update, update
-
字段详细资料
-
DICTIONARY_INPUT_TYPES
-
ignoreCopyProperties
-
ignoreProperties
-
ignorePropertiesWithUrl
-
STATUS_DRAFT
public static final int STATUS_DRAFT- 另请参阅:
-
STATUS_NORMAL
public static final int STATUS_NORMAL- 另请参阅:
-
STATUS_PEND
public static final int STATUS_PEND- 另请参阅:
-
STATUS_REJECT
public static final int STATUS_REJECT- 另请参阅:
-
STATUS_CHECKING
public static final int STATUS_CHECKING- 另请参阅:
-
STATUS_NORMAL_ARRAY
-
categoryService
-
extendService
-
extendFieldService
-
tagService
-
contentFileService
-
editorHistoryService
-
contentProductService
-
attributeService
-
cmsContentRelatedService
-
dao
-
searchDao
-
-
构造器详细资料
-
CmsContentService
public CmsContentService()
-
-
方法详细资料
-
query
@Transactional(readOnly=true) public PageHandler query(CmsContentSearchQuery queryEntity, Boolean containChild, String orderField, String orderType, Integer pageIndex, Integer pageSize, Integer maxResults) - 参数:
queryEntity
-containChild
-orderField
-orderType
-pageIndex
-pageSize
-maxResults
-- 返回:
- results page
-
facetQuery
@Transactional(readOnly=true) public FacetPageHandler facetQuery(CmsContentSearchQuery queryEntity, Boolean containChild, String orderField, String orderType, Integer pageIndex, Integer pageSize, Integer maxResults) - 参数:
queryEntity
-containChild
-orderField
-orderType
-pageIndex
-pageSize
-maxResults
-- 返回:
- results page
-
index
- 参数:
siteId
-ids
-
-
getPage
@Transactional(readOnly=true) public PageHandler getPage(CmsContentQuery queryEntity, Boolean containChild, String orderField, String orderType, Integer firstResult, Integer pageIndex, Integer pageSize, Integer maxResults) - 参数:
queryEntity
-containChild
-orderField
-orderType
-firstResult
-pageIndex
-pageSize
-maxResults
-- 返回:
- results page
-
getList
@Transactional(readOnly=true) public List<CmsContent> getList(CmsContentQuery queryEntity, Boolean containChild, String orderField, String orderType) - 参数:
queryEntity
-containChild
-orderField
-orderType
-- 返回:
- results list
-
getWorkLoadList
@Transactional(readOnly=true) public List<Workload> getWorkLoadList(short siteId, Integer[] status, Date startCreateDate, Date endCreateDate, String workloadType, String dateField) - 参数:
siteId
-status
-startCreateDate
-endCreateDate
-workloadType
-dateField
-- 返回:
- results list
-
getListByQuoteId
- 参数:
siteId
-quoteId
-- 返回:
- results list
-
getListByTopId
-
initContent
public static void initContent(CmsContent entity, SysSite site, CmsModel cmsModel, Boolean draft, Boolean checked, CmsContentAttribute attribute, boolean base64, Date now) -
saveTagAndAttribute
public CmsContent saveTagAndAttribute(SysSite site, Long userId, Integer deptId, CmsContent entity, CmsContentParameters contentParameters, CmsModel cmsModel, Integer extendId, CmsContentAttribute attribute) -
saveEditorHistory
public void saveEditorHistory(CmsContentAttribute oldAttribute, CmsContentAttribute attribute, short siteId, long contentId, long userId, List<SysExtendField> modelExtendList, List<SysExtendField> categoryExtendList, Map<String, String> map) -
batchWorkId
public void batchWorkId(short siteId, Integer categoryId, String modelId, ObjIntConsumer<List<Serializable>> worker, int batchSize) - 参数:
siteId
-categoryId
-modelId
-worker
-batchSize
-
-
batchWorkContent
public void batchWorkContent(short siteId, Integer categoryId, String modelId, ObjIntConsumer<List<CmsContent>> worker, int batchSize) - 参数:
siteId
-categoryId
-modelId
-worker
-batchSize
-
-
rebuildSearchText
public void rebuildSearchText(SysSite site, CmsModel cmsModel, List<SysExtendField> categoryExtendList, List<CmsContent> list) -
rebuildSearchText
public void rebuildSearchText(SysSite site, CmsModel cmsModel, List<SysExtendField> categoryExtendList, CmsContent entity) -
dealAttribute
private void dealAttribute(CmsContent entity, SysSite site, List<SysExtendField> modelExtendList, List<SysExtendField> categoryExtendList, Map<String, String> map, CmsModel cmsModel, List<CmsContentFile> files, List<CmsContentFile> images, List<CmsContentProduct> products, CmsContentAttribute attribute) -
dealFiles
private static void dealFiles(List<CmsContentFile> files, List<CmsContentFile> images, List<CmsContentProduct> products, CmsContentAttribute attribute) -
refresh
- 参数:
siteId
-user
-ids
-- 返回:
- results list
-
checkInProcess
- 参数:
siteId
-userId
-id
-checkPermissions
-- 返回:
- result
-
rejectInProcess
- 参数:
siteId
-userId
-id
-- 返回:
- results list
-
checking
- 参数:
siteId
-id
-user
-checkPermissions
-- 返回:
- result
-
check
- 参数:
siteId
-user
-id
-checkPermissions
-- 返回:
- result
-
check
- 参数:
siteId
-user
-ids
-- 返回:
- results list
-
reject
- 参数:
siteId
-user
-id
-- 返回:
- results list
-
reject
- 参数:
siteId
-user
-ids
-- 返回:
- results list
-
uncheck
- 参数:
siteId
-user
-ids
-- 返回:
- results list
-
saveQuote
- 参数:
id
-categoryList
-category
-
-
updateQuote
- 参数:
id
-contentParameters
-- 返回:
- categoryIds set
-
save
- 参数:
siteId
-userId
-deptId
-entity
-
-
updateStatistics
@Transactional(isolation=READ_COMMITTED) public void updateStatistics(Collection<ClickStatistics> entitys) - 参数:
entitys
-
-
updateComments
@Transactional(isolation=READ_COMMITTED) public CmsContent updateComments(short siteId, Serializable id, int comments) - 参数:
siteId
-id
-comments
-- 返回:
-
updateScores
@Transactional(isolation=READ_COMMITTED) public CmsContent updateScores(short siteId, Serializable id, int scoreUsers, int scores) - 参数:
siteId
-id
-scoreUsers
-scores
-- 返回:
-
updateCollections
@Transactional(isolation=READ_COMMITTED) public CmsContent updateCollections(short siteId, Serializable id, int collections) - 参数:
siteId
-id
-collections
-- 返回:
-
updateCategoryId
- 参数:
siteId
-id
-categoryId
-- 返回:
- result
-
updateChilds
- 参数:
id
-num
-- 返回:
- result
-
changeModel
- 参数:
id
-modelId
-
-
sort
- 参数:
siteId
-id
-sort
-- 返回:
- result
-
updateUrl
- 参数:
id
-url
-hasStatic
-- 返回:
- result
-
deleteByCategoryIds
- 参数:
siteId
-categoryIds
-- 返回:
- number of data deleted
-
delete
- 参数:
siteId
-user
-ids
-- 返回:
- list of data deleted
-
getCategoryIds
-
copy
public CmsContent copy(SysSite site, CmsContent content, CmsCategory category, int status, Long userId) -
recycle
- 参数:
siteId
-ids
-- 返回:
-
realDelete
- 参数:
siteId
-ids
-
-
batchUpdate
- 参数:
entityList
-- 返回:
-