|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.cms.page.service.PageServiceImpl
@Service(value="blPageService") public class PageServiceImpl
Created by bpolster.
| Field Summary | |
|---|---|
protected LocaleService |
localeService
|
protected PageDao |
pageDao
|
protected SandBoxDao |
sandBoxDao
|
protected SandBoxItemDao |
sandBoxItemDao
|
| Constructor Summary | |
|---|---|
PageServiceImpl()
|
|
| Method Summary | |
|---|---|
Page |
addPage(Page page,
SandBox destinationSandbox)
This method is intended to be called from within the CMS admin only. |
Long |
countPages(SandBox sandbox,
org.hibernate.Criteria criteria)
|
void |
deletePage(Page page,
SandBox destinationSandbox)
If deleting and item where page.originalPageId != null then the item is deleted from the database. |
Page |
findPageById(Long pageId)
Returns the page with the passed in id. |
Page |
findPageByURI(SandBox currentSandbox,
Locale locale,
String uri)
Retrieve the page if one is available for the passed in uri. |
Map<String,PageField> |
findPageFieldsByPageId(Long pageId)
Returns the page-fields associated with the passed in page-id. |
List<Page> |
findPages(SandBox sandbox,
org.hibernate.Criteria criteria)
|
PageTemplate |
findPageTemplateById(Long id)
Returns the page template with the passed in id. |
void |
itemPromoted(SandBoxItem sandBoxItem,
SandBox destinationSandBox)
|
void |
itemRejected(SandBoxItem sandBoxItem,
SandBox destinationSandBox)
|
void |
itemReverted(SandBoxItem sandBoxItem)
|
Page |
updatePage(Page page,
SandBox destSandbox)
This method is intended to be called from within the CMS admin only. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PageDao pageDao
protected SandBoxItemDao sandBoxItemDao
protected SandBoxDao sandBoxDao
protected LocaleService localeService
| Constructor Detail |
|---|
public PageServiceImpl()
| Method Detail |
|---|
public Page findPageById(Long pageId)
findPageById in interface PageServicepageId - - The id of the page.
public PageTemplate findPageTemplateById(Long id)
PageService
findPageTemplateById in interface PageServiceid - - the id of the page template
public Map<String,PageField> findPageFieldsByPageId(Long pageId)
findPageFieldsByPageId in interface PageServicepageId - - The id of the page.
public Page addPage(Page page,
SandBox destinationSandbox)
addPage in interface PageService
public Page updatePage(Page page,
SandBox destSandbox)
updatePage in interface PageService
public void deletePage(Page page,
SandBox destinationSandbox)
deletePage in interface PageServicepage - destinationSandbox -
public Page findPageByURI(SandBox currentSandbox,
Locale locale,
String uri)
findPageByURI in interface PageService
public Long countPages(SandBox sandbox,
org.hibernate.Criteria criteria)
countPages in interface PageService
public List<Page> findPages(SandBox sandbox,
org.hibernate.Criteria criteria)
findPages in interface PageService
public void itemPromoted(SandBoxItem sandBoxItem,
SandBox destinationSandBox)
itemPromoted in interface SandBoxItemListener
public void itemRejected(SandBoxItem sandBoxItem,
SandBox destinationSandBox)
itemRejected in interface SandBoxItemListenerpublic void itemReverted(SandBoxItem sandBoxItem)
itemReverted in interface SandBoxItemListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||