public class CommentServiceImpl extends GenericHierarchyContentServiceImpl<Comment,CommentAttribute,CommentFacet> implements CommentService, ChangeGenerator<Object[]>
cache, cacheManager, contentSource, contentStatusCriticalForMove, mountPathReLoader, searchMap, templateService
CONTENT_LOOKUP_CACHE_NAME, CONTENT_PUBLISH_CACHE_NAME
Constructor and Description |
---|
CommentServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Page<Comment> |
getComments(String topic,
PageInfo pageInfo) |
protected Comment |
getContentProxyObject() |
protected void |
moveHierarchyOnly(Comment content,
Comment newParent,
Integer sequence,
String parentLastHCode) |
Comment |
publish(Comment content)
Performs operations needed to publish the content and its related attributes, facets etc.
|
addChangeListener, clone, clone, convert, createNewContent, deleteSubHierarchy, getContentSource, getFacets, getLastChildHierarchyCode, getListeners, loadHierarchy, loadHierarchyFlat, mount, move, notifyAllListeners, setContentSource, setListeners, unPublish
clearCache, clearTemplates, deleteContent, getAdditionalCacheNames, getCache, getCacheManager, getContentStatusCriticalForMove, getMountPathReLoader, getRelatedNavigations, getSearchMap, getSearchService, getTemplateService, getURL, index, publish, save, saveFacet, search, searchCount, setAdditionalCacheNames, setCache, setCacheManager, setContentSource, setContentStatusCriticalForMove, setMountPathReLoader, setRelatedNavigations, setSearchMap, setTemplateService, sysAutoIndex, updateContentStatus, updateNav
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearCache, clearTemplates, clone, createNewContent, deleteContent, getCache, getContentSource, getFacets, getSearchService, getURL, index, mount, publish, save, saveFacet, search, searchCount, unPublish, updateContentStatus, updateNav
convert, deleteSubHierarchy, getLastChildHierarchyCode, loadHierarchy, loadHierarchyFlat, move
addChangeListener, getListeners, notifyAllListeners, setListeners
protected Comment getContentProxyObject()
getContentProxyObject
in class GenericHierarchyContentServiceImpl<Comment,CommentAttribute,CommentFacet>
@Transactional(readOnly=false) public Comment publish(Comment content) throws PartialTransactionException
GenericHierarchyContentServiceImpl
Content
record (& related ContentFacet
s, attributes) to publishpublish
in interface GenericContentService<Comment,CommentAttribute,CommentFacet>
publish
in class GenericHierarchyContentServiceImpl<Comment,CommentAttribute,CommentFacet>
content
- (this should be a record with Content.getStatus()
as Status.DRAFT
)PartialTransactionException
@Transactional(readOnly=true) protected void moveHierarchyOnly(Comment content, Comment newParent, Integer sequence, String parentLastHCode) throws Exception
moveHierarchyOnly
in class GenericHierarchyContentServiceImpl<Comment,CommentAttribute,CommentFacet>
Exception
@Transactional(readOnly=true) public Page<Comment> getComments(String topic, PageInfo pageInfo)
getComments
in interface CommentService
Copyright © 2018. All rights reserved.