|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.cms.structure.service.StructuredContentServiceImpl
@Service(value="blStructuredContentService") public class StructuredContentServiceImpl
| Field Summary | |
|---|---|
protected SandBoxDao |
sandBoxDao
|
protected SandBoxItemDao |
sandBoxItemDao
|
protected StructuredContentDao |
structuredContentDao
|
| Constructor Summary | |
|---|---|
StructuredContentServiceImpl()
|
|
| Method Summary | |
|---|---|
StructuredContent |
addStructuredContent(StructuredContent content,
SandBox destinationSandbox)
This method is intended to be called from within the CMS admin only. |
Long |
countContentItems(SandBox sandbox,
org.hibernate.Criteria c)
Follows the same rules as findContentItems. |
void |
deleteStructuredContent(StructuredContent content,
SandBox destinationSandbox)
If deleting and item where content.originalItemId != null then the item is deleted from the database. |
List<StructuredContent> |
findContentItems(SandBox sandbox,
org.hibernate.Criteria c)
This method is intended to be called solely from the CMS admin. |
Map<String,StructuredContentField> |
findFieldsByContentId(Long contentId)
Returns the fields associated with the passed in contentId. |
StructuredContent |
findStructuredContentById(Long contentId)
Returns the StructuredContent item associated with the passed in id. |
StructuredContentType |
findStructuredContentTypeById(Long id)
Returns the StructuredContentType associated with the passed in id. |
StructuredContentType |
findStructuredContentTypeByName(String name)
Returns the StructuredContentType associated with the passed in
String value. |
List<StructuredContentRuleProcessor> |
getContentRuleProcessors()
|
void |
itemPromoted(SandBoxItem sandBoxItem,
SandBox destinationSandBox)
|
void |
itemRejected(SandBoxItem sandBoxItem,
SandBox destinationSandBox)
|
void |
itemReverted(SandBoxItem sandBoxItem)
|
List<StructuredContent> |
lookupStructuredContentItemsByName(SandBox sandBox,
StructuredContentType contentType,
String contentName,
Locale locale,
Integer count,
Map<String,Object> ruleDTOs)
This method returns content Returns active content items for the passed in sandbox that match the passed in type. |
List<StructuredContent> |
lookupStructuredContentItemsByType(SandBox sandBox,
StructuredContentType contentType,
Locale locale,
Integer count,
Map<String,Object> ruleDTOs)
This method returns content Returns active content items for the passed in sandbox that match the passed in type. |
List<StructuredContentType> |
retrieveAllStructuredContentTypes()
|
void |
setContentRuleProcessors(List<StructuredContentRuleProcessor> contentRuleProcessors)
|
StructuredContent |
updateStructuredContent(StructuredContent content,
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 StructuredContentDao structuredContentDao
protected SandBoxItemDao sandBoxItemDao
protected SandBoxDao sandBoxDao
| Constructor Detail |
|---|
public StructuredContentServiceImpl()
| Method Detail |
|---|
public StructuredContent findStructuredContentById(Long contentId)
StructuredContentService
findStructuredContentById in interface StructuredContentServicecontentId - - The id of the content item.
public StructuredContentType findStructuredContentTypeById(Long id)
StructuredContentServiceStructuredContentType associated with the passed in id.
findStructuredContentTypeById in interface StructuredContentServiceid - - The id of the content type.
StructuredContentType.public StructuredContentType findStructuredContentTypeByName(String name)
StructuredContentServiceStructuredContentType associated with the passed in
String value.
findStructuredContentTypeByName in interface StructuredContentServicename - - The name of the content type.
StructuredContentType.public List<StructuredContentType> retrieveAllStructuredContentTypes()
retrieveAllStructuredContentTypes in interface StructuredContentServiceStructuredContentTypespublic Map<String,StructuredContentField> findFieldsByContentId(Long contentId)
StructuredContentService
findFieldsByContentId in interface StructuredContentServicecontentId - - The id of the content.
public List<StructuredContent> findContentItems(SandBox sandbox,
org.hibernate.Criteria c)
StructuredContentServiceSandBoxType of
production is passed in, only those items in that SandBox are returned.
findContentItems in interface StructuredContentServicesandbox - - the sandbox to find structured content items (null indicates items that are in production for
sites that are single tenant.c - - the criteria used to search for content
public Long countContentItems(SandBox sandbox,
org.hibernate.Criteria c)
StructuredContentServicefindContentItems.
countContentItems in interface StructuredContentService
public StructuredContent addStructuredContent(StructuredContent content,
SandBox destinationSandbox)
StructuredContentService
addStructuredContent in interface StructuredContentService
public StructuredContent updateStructuredContent(StructuredContent content,
SandBox destSandbox)
StructuredContentService
updateStructuredContent in interface StructuredContentService
public void deleteStructuredContent(StructuredContent content,
SandBox destinationSandbox)
StructuredContentService
deleteStructuredContent in interface StructuredContentService
public List<StructuredContent> lookupStructuredContentItemsByType(SandBox sandBox,
StructuredContentType contentType,
Locale locale,
Integer count,
Map<String,Object> ruleDTOs)
StructuredContentServiceSandBoxType of
production is passed in, only those items in that SandBox are returned.
lookupStructuredContentItemsByType in interface StructuredContentServicesandBox - - the sandbox to find structured content items (null indicates items that are in production for
sites that are single tenant.contentType - - the type of content to returncount - - the max number of content items to returnruleDTOs - - a Map of objects that will be used in MVEL processing.
DisplayContentTag
public List<StructuredContent> lookupStructuredContentItemsByName(SandBox sandBox,
StructuredContentType contentType,
String contentName,
Locale locale,
Integer count,
Map<String,Object> ruleDTOs)
StructuredContentServiceSandBoxType of
production is passed in, only those items in that SandBox are returned.
lookupStructuredContentItemsByName in interface StructuredContentServicesandBox - - the sandbox to find structured content items (null indicates items that are in production for
sites that are single tenant.contentType - - the type of content to returncontentName - - the name of content to returncount - - the max number of content items to returnruleDTOs - - a Map of objects that will be used in MVEL processing.
DisplayContentTag
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 SandBoxItemListenerpublic List<StructuredContentRuleProcessor> getContentRuleProcessors()
public void setContentRuleProcessors(List<StructuredContentRuleProcessor> contentRuleProcessors)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||