@Service @Transactional public class CmsContentService extends BaseService<CmsContent>
限定符和类型 | 字段和说明 |
---|---|
private CmsContentAttributeService |
attributeService |
private CmsCategoryService |
categoryService |
private CmsContentRelatedService |
cmsContentRelatedService |
private CmsContentFileService |
contentFileService |
private CmsContentProductService |
contentProductService |
private CmsContentDao |
dao |
private static java.lang.String[] |
DICTIONARY_INPUT_TYPES |
private CmsEditorHistoryService |
editorHistoryService |
private SysExtendFieldService |
extendFieldService |
private SysExtendService |
extendService |
static java.lang.String[] |
ignoreProperties |
static int |
STATUS_DRAFT |
static int |
STATUS_NORMAL |
static java.lang.Integer[] |
STATUS_NORMAL_ARRAY |
static int |
STATUS_PEND |
static int |
STATUS_REJECT |
private CmsTagService |
tagService |
log
构造器和说明 |
---|
CmsContentService() |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<CmsContent> |
batchUpdate(java.util.List<CmsContent> entityList) |
void |
batchWorkContent(short siteId,
java.lang.Integer categoryId,
java.lang.String modelId,
java.util.function.BiConsumer<java.util.List<CmsContent>,java.lang.Integer> worker,
int batchSize) |
void |
batchWorkId(short siteId,
java.lang.Integer categoryId,
java.lang.String modelId,
java.util.function.BiConsumer<java.util.List<java.io.Serializable>,java.lang.Integer> worker,
int batchSize) |
void |
changeModel(java.io.Serializable id,
java.lang.String modelId) |
CmsContent |
check(short siteId,
SysUser user,
java.io.Serializable id) |
java.util.List<CmsContent> |
check(short siteId,
SysUser user,
java.io.Serializable[] ids) |
CmsContent |
copy(SysSite site,
CmsContent content,
CmsCategory category,
int status,
java.lang.Long userId) |
private void |
dealAttribute(CmsContent entity,
SysSite site,
java.util.List<SysExtendField> modelExtendList,
java.util.List<SysExtendField> categoryExtendList,
java.util.Map<java.lang.String,java.lang.String> map,
CmsModel cmsModel,
java.util.List<CmsContentFile> files,
java.util.List<CmsContentFile> images,
java.util.List<CmsContentProduct> products,
CmsContentAttribute attribute) |
private static void |
dealExtend(java.util.List<SysExtendField> extendList,
java.util.Set<java.lang.String> dictionaryValueList,
java.util.Set<java.lang.String> extendsFieldList,
java.util.Map<java.lang.String,java.lang.String> map,
java.lang.StringBuilder searchTextBuilder,
SysSite site) |
private static void |
dealFiles(java.util.List<CmsContentFile> files,
java.util.List<CmsContentFile> images,
java.util.List<CmsContentProduct> products,
CmsContentAttribute attribute) |
java.util.List<CmsContent> |
delete(short siteId,
SysUser user,
java.io.Serializable[] ids) |
int |
deleteByCategoryIds(short siteId,
java.lang.Integer[] categoryIds) |
FacetPageHandler |
facetQuery(CmsContentSearchQuery queryEntity,
java.lang.Boolean containChild,
java.lang.String orderField,
java.lang.Integer pageIndex,
java.lang.Integer pageSize,
java.lang.Integer maxResults) |
private java.lang.Integer[] |
getCategoryIds(java.lang.Boolean containChild,
java.lang.Integer categoryId,
java.lang.Integer[] categoryIds) |
java.util.List<CmsContent> |
getListByQuoteId(short siteId,
long quoteId) |
java.util.List<CmsContent> |
getListByTopId(short siteId,
long topId) |
PageHandler |
getPage(CmsContentQuery queryEntity,
java.lang.Boolean containChild,
java.lang.String orderField,
java.lang.String orderType,
java.lang.Integer firstResult,
java.lang.Integer pageIndex,
java.lang.Integer pageSize,
java.lang.Integer maxResults) |
PageHandler |
getWorkLoadPage(short siteId,
java.lang.Integer[] status,
java.util.Date startCreateDate,
java.util.Date endCreateDate,
java.lang.String workloadType,
java.lang.String dateField,
java.lang.Integer pageIndex,
java.lang.Integer pageSize) |
void |
index(short siteId,
java.io.Serializable[] ids) |
PageHandler |
query(CmsContentSearchQuery queryEntity,
java.lang.Boolean containChild,
java.lang.String orderField,
java.lang.Integer pageIndex,
java.lang.Integer pageSize,
java.lang.Integer maxResults) |
void |
realDelete(java.lang.Short siteId,
java.lang.Long[] ids) |
void |
rebuildSearchText(SysSite site,
CmsModel cmsModel,
java.util.List<SysExtendField> categoryExtendList,
java.util.List<CmsContent> list) |
java.util.List<CmsContent> |
recycle(short siteId,
java.io.Serializable[] ids) |
java.util.List<CmsContent> |
refresh(short siteId,
SysUser user,
java.io.Serializable[] ids) |
java.util.List<CmsContent> |
reject(short siteId,
SysUser user,
java.io.Serializable[] ids) |
void |
save(short siteId,
SysUser user,
CmsContent entity) |
private void |
saveEditorHistory(CmsContentAttribute oldAttribute,
CmsContentAttribute attribute,
short siteId,
long contentId,
long userId,
java.util.List<SysExtendField> modelExtendList,
java.util.List<SysExtendField> categoryExtendList,
java.util.Map<java.lang.String,java.lang.String> map) |
void |
saveQuote(java.io.Serializable id,
java.util.List<CmsCategory> categoryList,
CmsCategory category) |
CmsContent |
saveTagAndAttribute(SysSite site,
java.lang.Long userId,
java.lang.Long id,
CmsContentParameters contentParameters,
CmsModel cmsModel,
java.lang.Integer extendId,
CmsContentAttribute attribute) |
CmsContent |
sort(short siteId,
java.lang.Long id,
int sort) |
java.util.List<CmsContent> |
uncheck(short siteId,
SysUser user,
java.io.Serializable[] ids) |
CmsContent |
updateCategoryId(short siteId,
java.io.Serializable id,
int categoryId) |
CmsContent |
updateChilds(java.io.Serializable id,
int num) |
CmsContent |
updateComments(short siteId,
java.io.Serializable id,
int comments) |
java.util.Set<java.io.Serializable> |
updateQuote(java.io.Serializable id,
CmsContentParameters contentParameters) |
CmsContent |
updateScores(short siteId,
java.io.Serializable id,
int scoreUsers,
int scores) |
void |
updateStatistics(java.util.Collection<ClickStatistics> entitys) |
CmsContent |
updateUrl(java.io.Serializable id,
java.lang.String url,
boolean hasStatic) |
delete, delete, delete, getEntity, getEntity, getEntitys, getEntitys, getEntitys, getEntitys, save, save, saveOrUpdate, saveOrUpdate, update, update
private static java.lang.String[] DICTIONARY_INPUT_TYPES
public static final java.lang.String[] ignoreProperties
public static final int STATUS_DRAFT
public static final int STATUS_NORMAL
public static final int STATUS_PEND
public static final int STATUS_REJECT
public static final java.lang.Integer[] STATUS_NORMAL_ARRAY
private CmsCategoryService categoryService
private SysExtendService extendService
private SysExtendFieldService extendFieldService
private CmsTagService tagService
private CmsContentFileService contentFileService
private CmsEditorHistoryService editorHistoryService
private CmsContentProductService contentProductService
private CmsContentAttributeService attributeService
private CmsContentRelatedService cmsContentRelatedService
private CmsContentDao dao
@Transactional(readOnly=true) public PageHandler query(CmsContentSearchQuery queryEntity, java.lang.Boolean containChild, java.lang.String orderField, java.lang.Integer pageIndex, java.lang.Integer pageSize, java.lang.Integer maxResults)
queryEntity
- containChild
- orderField
- pageIndex
- pageSize
- maxResults
- @Transactional(readOnly=true) public FacetPageHandler facetQuery(CmsContentSearchQuery queryEntity, java.lang.Boolean containChild, java.lang.String orderField, java.lang.Integer pageIndex, java.lang.Integer pageSize, java.lang.Integer maxResults)
queryEntity
- containChild
- orderField
- pageIndex
- pageSize
- maxResults
- public void index(short siteId, java.io.Serializable[] ids)
siteId
- ids
- @Transactional(readOnly=true) public PageHandler getPage(CmsContentQuery queryEntity, java.lang.Boolean containChild, java.lang.String orderField, java.lang.String orderType, java.lang.Integer firstResult, java.lang.Integer pageIndex, java.lang.Integer pageSize, java.lang.Integer maxResults)
queryEntity
- containChild
- orderField
- orderType
- firstResult
- pageIndex
- pageSize
- maxResults
- @Transactional(readOnly=true) public PageHandler getWorkLoadPage(short siteId, java.lang.Integer[] status, java.util.Date startCreateDate, java.util.Date endCreateDate, java.lang.String workloadType, java.lang.String dateField, java.lang.Integer pageIndex, java.lang.Integer pageSize)
siteId
- status
- startCreateDate
- endCreateDate
- workloadType
- dateField
- pageIndex
- pageSize
- @Transactional(readOnly=true) public java.util.List<CmsContent> getListByQuoteId(short siteId, long quoteId)
siteId
- quoteId
- public java.util.List<CmsContent> getListByTopId(short siteId, long topId)
public CmsContent saveTagAndAttribute(SysSite site, java.lang.Long userId, java.lang.Long id, CmsContentParameters contentParameters, CmsModel cmsModel, java.lang.Integer extendId, CmsContentAttribute attribute)
private void saveEditorHistory(CmsContentAttribute oldAttribute, CmsContentAttribute attribute, short siteId, long contentId, long userId, java.util.List<SysExtendField> modelExtendList, java.util.List<SysExtendField> categoryExtendList, java.util.Map<java.lang.String,java.lang.String> map)
public void batchWorkId(short siteId, java.lang.Integer categoryId, java.lang.String modelId, java.util.function.BiConsumer<java.util.List<java.io.Serializable>,java.lang.Integer> worker, int batchSize)
siteId
- categoryId
- modelId
- worker
- batchSize
- public void batchWorkContent(short siteId, java.lang.Integer categoryId, java.lang.String modelId, java.util.function.BiConsumer<java.util.List<CmsContent>,java.lang.Integer> worker, int batchSize)
siteId
- categoryId
- modelId
- worker
- batchSize
- public void rebuildSearchText(SysSite site, CmsModel cmsModel, java.util.List<SysExtendField> categoryExtendList, java.util.List<CmsContent> list)
private void dealAttribute(CmsContent entity, SysSite site, java.util.List<SysExtendField> modelExtendList, java.util.List<SysExtendField> categoryExtendList, java.util.Map<java.lang.String,java.lang.String> map, CmsModel cmsModel, java.util.List<CmsContentFile> files, java.util.List<CmsContentFile> images, java.util.List<CmsContentProduct> products, CmsContentAttribute attribute)
private static void dealFiles(java.util.List<CmsContentFile> files, java.util.List<CmsContentFile> images, java.util.List<CmsContentProduct> products, CmsContentAttribute attribute)
private static void dealExtend(java.util.List<SysExtendField> extendList, java.util.Set<java.lang.String> dictionaryValueList, java.util.Set<java.lang.String> extendsFieldList, java.util.Map<java.lang.String,java.lang.String> map, java.lang.StringBuilder searchTextBuilder, SysSite site)
public java.util.List<CmsContent> refresh(short siteId, SysUser user, java.io.Serializable[] ids)
siteId
- user
- ids
- public CmsContent check(short siteId, SysUser user, java.io.Serializable id)
siteId
- user
- id
- public java.util.List<CmsContent> check(short siteId, SysUser user, java.io.Serializable[] ids)
siteId
- user
- ids
- public java.util.List<CmsContent> reject(short siteId, SysUser user, java.io.Serializable[] ids)
siteId
- user
- ids
- public java.util.List<CmsContent> uncheck(short siteId, SysUser user, java.io.Serializable[] ids)
siteId
- user
- ids
- public void saveQuote(java.io.Serializable id, java.util.List<CmsCategory> categoryList, CmsCategory category)
id
- categoryList
- category
- public java.util.Set<java.io.Serializable> updateQuote(java.io.Serializable id, CmsContentParameters contentParameters)
id
- contentParameters
- public void save(short siteId, SysUser user, CmsContent entity)
siteId
- user
- entity
- public void updateStatistics(java.util.Collection<ClickStatistics> entitys)
entitys
- @Transactional public CmsContent updateComments(short siteId, java.io.Serializable id, int comments)
siteId
- id
- comments
- @Transactional public CmsContent updateScores(short siteId, java.io.Serializable id, int scoreUsers, int scores)
siteId
- id
- scoreUsers
- scores
- public CmsContent updateCategoryId(short siteId, java.io.Serializable id, int categoryId)
siteId
- id
- categoryId
- public CmsContent updateChilds(java.io.Serializable id, int num)
id
- num
- public void changeModel(java.io.Serializable id, java.lang.String modelId)
id
- modelId
- public CmsContent sort(short siteId, java.lang.Long id, int sort)
siteId
- id
- sort
- public CmsContent updateUrl(java.io.Serializable id, java.lang.String url, boolean hasStatic)
id
- url
- hasStatic
- public int deleteByCategoryIds(short siteId, java.lang.Integer[] categoryIds)
siteId
- categoryIds
- public java.util.List<CmsContent> delete(short siteId, SysUser user, java.io.Serializable[] ids)
siteId
- user
- ids
- private java.lang.Integer[] getCategoryIds(java.lang.Boolean containChild, java.lang.Integer categoryId, java.lang.Integer[] categoryIds)
public CmsContent copy(SysSite site, CmsContent content, CmsCategory category, int status, java.lang.Long userId)
public java.util.List<CmsContent> recycle(short siteId, java.io.Serializable[] ids)
siteId
- ids
- public void realDelete(java.lang.Short siteId, java.lang.Long[] ids)
siteId
- ids
- public java.util.List<CmsContent> batchUpdate(java.util.List<CmsContent> entityList)
entityList
-