public interface StructuredContentService extends SandBoxItemListener
StructuredContent items.| Modifier and Type | Method and Description |
|---|---|
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 criteria)
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. |
boolean |
isAutomaticallyApproveAndPromoteStructuredContent() |
List<StructuredContentDTO> |
lookupStructuredContentItemsByName(SandBox sandBox,
String contentName,
Locale locale,
Integer count,
Map<String,Object> ruleDTOs,
boolean secure)
This method returns content by name only.
|
List<StructuredContentDTO> |
lookupStructuredContentItemsByName(SandBox sandBox,
StructuredContentType contentType,
String contentName,
Locale locale,
Integer count,
Map<String,Object> ruleDTOs,
boolean secure)
This method returns content by name and type.
|
List<StructuredContentDTO> |
lookupStructuredContentItemsByType(SandBox sandBox,
StructuredContentType contentType,
Locale locale,
Integer count,
Map<String,Object> ruleDTOs,
boolean secure)
This method returns content
Returns active content items for the passed in sandbox that match the passed in type. |
void |
removeItemFromCache(String nameKey,
String typeKey)
Removes the items from cache that match the passed in name and page keys.
|
List<StructuredContentType> |
retrieveAllStructuredContentTypes() |
void |
setAutomaticallyApproveAndPromoteStructuredContent(boolean automaticallyApproveAndPromoteStructuredContent) |
StructuredContent |
updateStructuredContent(StructuredContent content,
SandBox sandbox)
This method is intended to be called from within the CMS
admin only.
|
itemPromoted, itemRejected, itemRevertedStructuredContent findStructuredContentById(Long contentId)
contentId - - The id of the content item.StructuredContentType findStructuredContentTypeById(Long id)
StructuredContentType associated with the passed in id.id - - The id of the content type.StructuredContentType.StructuredContentType findStructuredContentTypeByName(String name)
StructuredContentType associated with the passed in
String value.name - - The name of the content type.StructuredContentType.List<StructuredContentType> retrieveAllStructuredContentTypes()
StructuredContentTypesMap<String,StructuredContentField> findFieldsByContentId(Long contentId)
contentId - - The id of the content.List<StructuredContent> findContentItems(SandBox sandbox, org.hibernate.Criteria criteria)
SandBoxType of
production is passed in, only those items in that SandBox are returned.
sandbox - - the sandbox to find structured content items (null indicates items that are in production for
sites that are single tenant.criteria - - the criteria used to search for contentLong countContentItems(SandBox sandBox, org.hibernate.Criteria c)
findContentItems.StructuredContent addStructuredContent(StructuredContent content, SandBox destinationSandbox)
StructuredContent updateStructuredContent(StructuredContent content, SandBox sandbox)
void deleteStructuredContent(StructuredContent content, SandBox destinationSandbox)
content - destinationSandbox - List<StructuredContentDTO> lookupStructuredContentItemsByType(SandBox sandBox, StructuredContentType contentType, Locale locale, Integer count, Map<String,Object> ruleDTOs, boolean secure)
SandBoxType of
production is passed in, only those items in that SandBox are returned.
sandBox - - 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.secure - - set to true if the request is being served over httpsDisplayContentTagList<StructuredContentDTO> lookupStructuredContentItemsByName(SandBox sandBox, String contentName, Locale locale, Integer count, Map<String,Object> ruleDTOs, boolean secure)
SandBoxType of
production is passed in, only those items in that SandBox are returned.
sandBox - - the sandbox to find structured content items (null indicates items that are in production for
sites that are single tenant.contentName - - 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.secure - - set to true if the request is being served over httpsDisplayContentTagList<StructuredContentDTO> lookupStructuredContentItemsByName(SandBox sandBox, StructuredContentType contentType, String contentName, Locale locale, Integer count, Map<String,Object> ruleDTOs, boolean secure)
SandBoxType of
production is passed in, only those items in that SandBox are returned.
sandBox - - 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.secure - - set to true if the request is being served over httpsDisplayContentTagvoid removeItemFromCache(String nameKey, String typeKey)
nameKey - - key for a specific content itemtypeKey - - key for a type of content itemboolean isAutomaticallyApproveAndPromoteStructuredContent()
void setAutomaticallyApproveAndPromoteStructuredContent(boolean automaticallyApproveAndPromoteStructuredContent)
Copyright © 2013. All rights reserved.