|
||||||||||
| 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
Created by bpolster.
| 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. |
java.lang.Long |
countContentItems(SandBox sandbox,
org.hibernate.Criteria c)
Returns the count of items that match the passed in criteria. |
void |
deleteStructuredContent(StructuredContent content,
SandBox destinationSandbox)
If deleting and item where content.originalItemId != null then the item is deleted from the database. |
java.util.List<StructuredContent> |
findContentItems(SandBox sandbox,
org.hibernate.Criteria c)
Retuns content items for the passed in sandbox that match the passed in criteria. |
java.util.Map<java.lang.String,StructuredContentField> |
findFieldsByContentId(java.lang.Long contentId)
Returns the fields associated with the passed in contentId. |
StructuredContent |
findStructuredContentById(java.lang.Long contentId)
Returns the StructuredContent item associated with the passed in id. |
StructuredContentType |
findStructuredContentTypeById(java.lang.Long id)
|
StructuredContentType |
findStructuredContentTypeByName(java.lang.String name)
|
java.util.List<StructuredContentRuleProcessor> |
getContentRuleProcessors()
|
void |
itemPromoted(SandBoxItem sandBoxItem,
SandBox destinationSandBox)
|
void |
itemRejected(SandBoxItem sandBoxItem,
SandBox destinationSandBox)
|
void |
itemReverted(SandBoxItem sandBoxItem)
|
java.util.List<StructuredContent> |
lookupStructuredContentItemsByName(SandBox sandBox,
StructuredContentType contentType,
java.lang.String contentName,
Locale locale,
java.lang.Integer count,
java.util.Map<java.lang.String,java.lang.Object> ruleDTOs)
|
java.util.List<StructuredContent> |
lookupStructuredContentItemsByType(SandBox sandBox,
StructuredContentType contentType,
Locale locale,
java.lang.Integer count,
java.util.Map<java.lang.String,java.lang.Object> ruleDTOs)
|
java.util.List<StructuredContentType> |
retrieveAllStructuredContentTypes()
Returns the list of structured content types. |
void |
setContentRuleProcessors(java.util.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(java.lang.Long contentId)
findStructuredContentById in interface StructuredContentServicecontentId - - The id of the content item.
public StructuredContentType findStructuredContentTypeById(java.lang.Long id)
findStructuredContentTypeById in interface StructuredContentServicepublic StructuredContentType findStructuredContentTypeByName(java.lang.String name)
findStructuredContentTypeByName in interface StructuredContentServicepublic java.util.List<StructuredContentType> retrieveAllStructuredContentTypes()
retrieveAllStructuredContentTypes in interface StructuredContentServicepublic java.util.Map<java.lang.String,StructuredContentField> findFieldsByContentId(java.lang.Long contentId)
findFieldsByContentId in interface StructuredContentServicecontentId - - The id of the content.
public java.util.List<StructuredContent> findContentItems(SandBox sandbox,
org.hibernate.Criteria c)
findContentItems in interface StructuredContentServicesandbox - - the sandbox to find structured content items (null indicates items that are in production for
sites that are single tenant.
public java.lang.Long countContentItems(SandBox sandbox,
org.hibernate.Criteria c)
countContentItems in interface StructuredContentService
public StructuredContent addStructuredContent(StructuredContent content,
SandBox destinationSandbox)
addStructuredContent in interface StructuredContentService
public StructuredContent updateStructuredContent(StructuredContent content,
SandBox destSandbox)
updateStructuredContent in interface StructuredContentService
public void deleteStructuredContent(StructuredContent content,
SandBox destinationSandbox)
deleteStructuredContent in interface StructuredContentServicecontent - destinationSandbox -
public java.util.List<StructuredContent> lookupStructuredContentItemsByType(SandBox sandBox,
StructuredContentType contentType,
Locale locale,
java.lang.Integer count,
java.util.Map<java.lang.String,java.lang.Object> ruleDTOs)
lookupStructuredContentItemsByType in interface StructuredContentService
public java.util.List<StructuredContent> lookupStructuredContentItemsByName(SandBox sandBox,
StructuredContentType contentType,
java.lang.String contentName,
Locale locale,
java.lang.Integer count,
java.util.Map<java.lang.String,java.lang.Object> ruleDTOs)
lookupStructuredContentItemsByName in interface StructuredContentService
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 java.util.List<StructuredContentRuleProcessor> getContentRuleProcessors()
public void setContentRuleProcessors(java.util.List<StructuredContentRuleProcessor> contentRuleProcessors)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||