@Service @Transactional public class CmsContentService extends BaseService<CmsContent>
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_DRAFT |
static int |
STATUS_NORMAL |
static int |
STATUS_PEND |
log
Constructor and Description |
---|
CmsContentService() |
Modifier and Type | Method and Description |
---|---|
void |
changeModel(Serializable id,
String modelId) |
List<CmsContent> |
check(short siteId,
Long userId,
Serializable[] ids) |
List<CmsContent> |
delete(short siteId,
Serializable[] ids) |
int |
deleteByCategoryIds(short siteId,
Integer[] categoryIds) |
FacetPageHandler |
facetQuery(Short siteId,
String[] categoryIds,
String[] modelIds,
String text,
Long[] tagIds,
Date startPublishDate,
Date endPublishDate,
String orderField,
Integer pageIndex,
Integer pageSize) |
PageHandler |
getPage(CmsContentQuery queryEntity,
Boolean containChild,
String orderField,
String orderType,
Integer pageIndex,
Integer pageSize) |
void |
index(short siteId,
Serializable[] ids) |
PageHandler |
query(Short siteId,
String text,
Long[] tagIds,
Integer categoryId,
Boolean containChild,
Integer[] categoryIds,
String[] modelIds,
Date startPublishDate,
Date endPublishDate,
String orderField,
Integer pageIndex,
Integer pageSize) |
List<CmsContent> |
realDelete(Short siteId,
Long[] ids) |
Future<?> |
reCreateIndex() |
List<CmsContent> |
recycle(short siteId,
Serializable[] ids) |
void |
refresh(short siteId,
Serializable[] ids) |
CmsContent |
sort(Short siteId,
Long id,
int sort) |
List<CmsContent> |
uncheck(short siteId,
Long userId,
Serializable[] ids) |
CmsContent |
updateCategoryId(short siteId,
Serializable id,
int categoryId) |
CmsContent |
updateChilds(Serializable id,
int num) |
void |
updateStatistics(Collection<CmsContentStatistics> entitys) |
CmsContent |
updateTagIds(Serializable id,
String tagIds) |
CmsContent |
updateUrl(Serializable id,
String url,
boolean hasStatic) |
delete, delete, getEntity, getEntity, getEntitys, getEntitys, save, save, update, update
public static final int STATUS_DRAFT
public static final int STATUS_NORMAL
public static final int STATUS_PEND
@Transactional(readOnly=true) public PageHandler query(Short siteId, String text, Long[] tagIds, Integer categoryId, Boolean containChild, Integer[] categoryIds, String[] modelIds, Date startPublishDate, Date endPublishDate, String orderField, Integer pageIndex, Integer pageSize)
siteId
- text
- tagIds
- categoryId
- containChild
- categoryIds
- modelIds
- startPublishDate
- endPublishDate
- orderField
- pageIndex
- pageSize
- @Transactional(readOnly=true) public FacetPageHandler facetQuery(Short siteId, String[] categoryIds, String[] modelIds, String text, Long[] tagIds, Date startPublishDate, Date endPublishDate, String orderField, Integer pageIndex, Integer pageSize)
siteId
- categoryIds
- modelIds
- text
- tagIds
- startPublishDate
- endPublishDate
- orderField
- pageIndex
- pageSize
- public void index(short siteId, Serializable[] ids)
siteId
- ids
- public Future<?> reCreateIndex()
@Transactional(readOnly=true) public PageHandler getPage(CmsContentQuery queryEntity, Boolean containChild, String orderField, String orderType, Integer pageIndex, Integer pageSize)
queryEntity
- containChild
- orderField
- orderType
- pageIndex
- pageSize
- public void refresh(short siteId, Serializable[] ids)
siteId
- ids
- public List<CmsContent> check(short siteId, Long userId, Serializable[] ids)
siteId
- userId
- ids
- public List<CmsContent> uncheck(short siteId, Long userId, Serializable[] ids)
siteId
- userId
- ids
- public CmsContent updateTagIds(Serializable id, String tagIds)
id
- tagIds
- public void updateStatistics(Collection<CmsContentStatistics> entitys)
entitys
- public CmsContent updateCategoryId(short siteId, Serializable id, int categoryId)
siteId
- id
- categoryId
- public CmsContent updateChilds(Serializable id, int num)
id
- num
- public void changeModel(Serializable id, String modelId)
id
- modelId
- public CmsContent sort(Short siteId, Long id, int sort)
siteId
- id
- sort
- public CmsContent updateUrl(Serializable id, String url, boolean hasStatic)
id
- url
- hasStatic
- public int deleteByCategoryIds(short siteId, Integer[] categoryIds)
siteId
- categoryIds
- public List<CmsContent> delete(short siteId, Serializable[] ids)
siteId
- ids
- public List<CmsContent> recycle(short siteId, Serializable[] ids)
siteId
- ids
- public List<CmsContent> realDelete(Short siteId, Long[] ids)
siteId
- ids
- Copyright © 2018. All rights reserved.