org.broadleafcommerce.core.content.service
Class ContentServiceImpl

java.lang.Object
  extended by org.broadleafcommerce.core.content.service.ContentServiceImpl
All Implemented Interfaces:
ContentService

@Service(value="blContentService")
public class ContentServiceImpl
extends Object
implements ContentService

Author:
dwtalk

Nested Class Summary
 class ContentServiceImpl.ContentComparator
           
 
Field Summary
protected  ContentDao contentDao
           
protected  ContentDetailsDao contentDetailsDao
           
 
Constructor Summary
ContentServiceImpl()
           
 
Method Summary
 void approveContent(List<Integer> contentIds, String sandboxName, String username)
           
 List<Content> checkoutContentToSandbox(List<Integer> contentIds, String sandboxName)
           
 Map<Integer,String> constructParentUrlMap()
           
protected  Boolean executeExpression(String expression, Map<String,Object> vars)
           
 List<Content> findContent(String sandbox, String contentType, Map<String,Object> mvelParameters, Date displayDate)
           
 Content findContentById(Integer id)
           
 List<ContentDetails> findContentDetails(String sandbox, String contentType, Map<String,Object> mvelParameters)
           
 List<ContentDetails> findContentDetails(String sandbox, String contentType, Map<String,Object> mvelParameters, Date displayDate)
           
 ContentDetails findContentDetailsById(Integer id)
           
 List<ContentXmlData> findContentDetailsListById(Integer id)
           
 Map<String,Object> findContentDetailsMapById(Integer id)
           
 String findContentDetailsXmlById(Integer id)
           
 List<ContentPageInfo> readAllContentPageInfos()
           
 List<Content> readContentAwaitingApproval()
           
 List<Content> readContentForSandbox(String sandbox)
           
 List<Content> readContentForSandboxAndType(String sandbox, String contentType)
           
 void rejectContent(List<Integer> contentIds, String sandbox, String username)
           
 void removeContentFromSandbox(List<Integer> contentIds, String sandbox)
           
 String renderedContent(String styleSheetString, List<Content> contentList, int rowCount)
           
 String renderedContentDetails(String styleSheetString, List<ContentDetails> contentDetails)
           
 String renderedContentDetails(String styleSheetString, List<ContentDetails> contentDetails, int rowCount)
           
 Content saveContent(Content content, List<ContentXmlData> details)
           
 void submitContentFromSandbox(List<Integer> contentIds, String sandboxName, String username, String note)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentDao

protected ContentDao contentDao

contentDetailsDao

protected ContentDetailsDao contentDetailsDao
Constructor Detail

ContentServiceImpl

public ContentServiceImpl()
Method Detail

findContentById

public Content findContentById(Integer id)
Specified by:
findContentById in interface ContentService

findContentDetailsById

public ContentDetails findContentDetailsById(Integer id)
Specified by:
findContentDetailsById in interface ContentService

findContentDetailsXmlById

public String findContentDetailsXmlById(Integer id)
Specified by:
findContentDetailsXmlById in interface ContentService

findContentDetailsMapById

public Map<String,Object> findContentDetailsMapById(Integer id)
                                             throws Exception
Specified by:
findContentDetailsMapById in interface ContentService
Throws:
Exception

findContentDetailsListById

public List<ContentXmlData> findContentDetailsListById(Integer id)
                                                throws Exception
Specified by:
findContentDetailsListById in interface ContentService
Throws:
Exception

findContentDetails

public List<ContentDetails> findContentDetails(String sandbox,
                                               String contentType,
                                               Map<String,Object> mvelParameters)
Specified by:
findContentDetails in interface ContentService

findContentDetails

public List<ContentDetails> findContentDetails(String sandbox,
                                               String contentType,
                                               Map<String,Object> mvelParameters,
                                               Date displayDate)
Specified by:
findContentDetails in interface ContentService

findContent

public List<Content> findContent(String sandbox,
                                 String contentType,
                                 Map<String,Object> mvelParameters,
                                 Date displayDate)
Specified by:
findContent in interface ContentService

renderedContentDetails

public String renderedContentDetails(String styleSheetString,
                                     List<ContentDetails> contentDetails)
                              throws Exception
Specified by:
renderedContentDetails in interface ContentService
Throws:
Exception

renderedContentDetails

public String renderedContentDetails(String styleSheetString,
                                     List<ContentDetails> contentDetails,
                                     int rowCount)
                              throws Exception
Specified by:
renderedContentDetails in interface ContentService
Throws:
Exception

renderedContent

public String renderedContent(String styleSheetString,
                              List<Content> contentList,
                              int rowCount)
                       throws Exception
Specified by:
renderedContent in interface ContentService
Throws:
Exception

executeExpression

protected Boolean executeExpression(String expression,
                                    Map<String,Object> vars)

approveContent

public void approveContent(List<Integer> contentIds,
                           String sandboxName,
                           String username)
Specified by:
approveContent in interface ContentService

checkoutContentToSandbox

public List<Content> checkoutContentToSandbox(List<Integer> contentIds,
                                              String sandboxName)
Specified by:
checkoutContentToSandbox in interface ContentService

readContentAwaitingApproval

public List<Content> readContentAwaitingApproval()
Specified by:
readContentAwaitingApproval in interface ContentService

readContentForSandbox

public List<Content> readContentForSandbox(String sandbox)
Specified by:
readContentForSandbox in interface ContentService

readContentForSandboxAndType

public List<Content> readContentForSandboxAndType(String sandbox,
                                                  String contentType)
Specified by:
readContentForSandboxAndType in interface ContentService

rejectContent

public void rejectContent(List<Integer> contentIds,
                          String sandbox,
                          String username)
Specified by:
rejectContent in interface ContentService

removeContentFromSandbox

public void removeContentFromSandbox(List<Integer> contentIds,
                                     String sandbox)
Specified by:
removeContentFromSandbox in interface ContentService

submitContentFromSandbox

public void submitContentFromSandbox(List<Integer> contentIds,
                                     String sandboxName,
                                     String username,
                                     String note)
Specified by:
submitContentFromSandbox in interface ContentService

saveContent

public Content saveContent(Content content,
                           List<ContentXmlData> details)
Specified by:
saveContent in interface ContentService

readAllContentPageInfos

public List<ContentPageInfo> readAllContentPageInfos()
Specified by:
readAllContentPageInfos in interface ContentService

constructParentUrlMap

public Map<Integer,String> constructParentUrlMap()
Specified by:
constructParentUrlMap in interface ContentService


Copyright © 2012. All Rights Reserved.