@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 |
protected static java.lang.String[] |
ignoreCopyProperties |
static java.lang.String[] |
ignoreProperties |
static java.lang.String[] |
ignorePropertiesWithUrl |
private CmsContentSearchDao |
searchDao |
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 |
basedao, 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.ObjIntConsumer<java.util.List<CmsContent>> worker,
int batchSize) |
void |
batchWorkId(short siteId,
java.lang.Integer categoryId,
java.lang.String modelId,
java.util.function.ObjIntConsumer<java.util.List<java.io.Serializable>> 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 |
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.String orderType,
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> |
getList(CmsContentQuery queryEntity,
java.lang.Boolean containChild,
java.lang.String orderField,
java.lang.String orderType) |
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) |
java.util.List<Workload> |
getWorkLoadList(short siteId,
java.lang.Integer[] status,
java.util.Date startCreateDate,
java.util.Date endCreateDate,
java.lang.String workloadType,
java.lang.String dateField) |
void |
index(short siteId,
java.io.Serializable[] ids) |
static void |
initContent(CmsContent entity,
SysSite site,
CmsModel cmsModel,
java.lang.Boolean draft,
java.lang.Boolean checked,
CmsContentAttribute attribute,
boolean base64,
java.util.Date now) |
PageHandler |
query(CmsContentSearchQuery queryEntity,
java.lang.Boolean containChild,
java.lang.String orderField,
java.lang.String orderType,
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,
java.lang.Long userId,
java.lang.Integer deptId,
CmsContent entity) |
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.Integer deptId,
CmsContent entity,
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 |
updateCollections(short siteId,
java.io.Serializable id,
int collections) |
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, getId, save, save, update, update
private static final java.lang.String[] DICTIONARY_INPUT_TYPES
protected static final java.lang.String[] ignoreCopyProperties
public static final java.lang.String[] ignoreProperties
public static final java.lang.String[] ignorePropertiesWithUrl
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
private CmsContentSearchDao searchDao
@Transactional(readOnly=true) public PageHandler query(CmsContentSearchQuery queryEntity, java.lang.Boolean containChild, java.lang.String orderField, java.lang.String orderType, java.lang.Integer pageIndex, java.lang.Integer pageSize, java.lang.Integer maxResults)
queryEntity
- containChild
- orderField
- orderType
- pageIndex
- pageSize
- maxResults
- @Transactional(readOnly=true) public FacetPageHandler facetQuery(CmsContentSearchQuery queryEntity, java.lang.Boolean containChild, java.lang.String orderField, java.lang.String orderType, java.lang.Integer pageIndex, java.lang.Integer pageSize, java.lang.Integer maxResults)
queryEntity
- containChild
- orderField
- orderType
- 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 java.util.List<CmsContent> getList(CmsContentQuery queryEntity, java.lang.Boolean containChild, java.lang.String orderField, java.lang.String orderType)
queryEntity
- containChild
- orderField
- orderType
- @Transactional(readOnly=true) public java.util.List<Workload> getWorkLoadList(short siteId, java.lang.Integer[] status, java.util.Date startCreateDate, java.util.Date endCreateDate, java.lang.String workloadType, java.lang.String dateField)
siteId
- status
- startCreateDate
- endCreateDate
- workloadType
- dateField
- @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 static void initContent(CmsContent entity, SysSite site, CmsModel cmsModel, java.lang.Boolean draft, java.lang.Boolean checked, CmsContentAttribute attribute, boolean base64, java.util.Date now)
public CmsContent saveTagAndAttribute(SysSite site, java.lang.Long userId, java.lang.Integer deptId, CmsContent entity, CmsContentParameters contentParameters, CmsModel cmsModel, java.lang.Integer extendId, CmsContentAttribute attribute)
public 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.ObjIntConsumer<java.util.List<java.io.Serializable>> worker, int batchSize)
siteId
- categoryId
- modelId
- worker
- batchSize
- public void batchWorkContent(short siteId, java.lang.Integer categoryId, java.lang.String modelId, java.util.function.ObjIntConsumer<java.util.List<CmsContent>> 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)
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, java.lang.Long userId, java.lang.Integer deptId, CmsContent entity)
siteId
- userId
- deptId
- entity
- @Transactional(isolation=READ_COMMITTED) public void updateStatistics(java.util.Collection<ClickStatistics> entitys)
entitys
- @Transactional(isolation=READ_COMMITTED) public CmsContent updateComments(short siteId, java.io.Serializable id, int comments)
siteId
- id
- comments
- @Transactional(isolation=READ_COMMITTED) public CmsContent updateScores(short siteId, java.io.Serializable id, int scoreUsers, int scores)
siteId
- id
- scoreUsers
- scores
- @Transactional(isolation=READ_COMMITTED) public CmsContent updateCollections(short siteId, java.io.Serializable id, int collections)
siteId
- id
- collections
- public CmsContent updateCategoryId(short siteId, java.io.Serializable id, int categoryId)
siteId
- id
- categoryId
- @Transactional(isolation=READ_COMMITTED) 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
-