public class PostServiceImpl extends GenericHierarchyContentServiceImpl<Post,PostAttribute,PostFacet> implements PostService, ChangeGenerator<Object[]>
cache, cacheManager, contentSource, contentStatusCriticalForMove, mountPathReLoader, searchMap, templateService
CONTENT_LOOKUP_CACHE_NAME, CONTENT_PUBLISH_CACHE_NAME
Constructor and Description |
---|
PostServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected Post |
getContentProxyObject() |
void |
init() |
protected void |
moveHierarchyOnly(Post content,
Post newParent,
Integer sequence,
String parentLastHCode) |
Post |
publish(Post 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
@PostConstruct public void init()
protected Post getContentProxyObject()
getContentProxyObject
in class GenericHierarchyContentServiceImpl<Post,PostAttribute,PostFacet>
@Transactional(readOnly=false) public Post publish(Post content) throws PartialTransactionException
GenericHierarchyContentServiceImpl
Content
record (& related ContentFacet
s, attributes) to publishpublish
in interface GenericContentService<Post,PostAttribute,PostFacet>
publish
in class GenericHierarchyContentServiceImpl<Post,PostAttribute,PostFacet>
content
- (this should be a record with Content.getStatus()
as Status.DRAFT
)PartialTransactionException
@Transactional(readOnly=true) protected void moveHierarchyOnly(Post content, Post newParent, Integer sequence, String parentLastHCode) throws Exception
moveHierarchyOnly
in class GenericHierarchyContentServiceImpl<Post,PostAttribute,PostFacet>
Exception
Copyright © 2018. All rights reserved.