public interface StructuredContentDao
StructuredContent items| Modifier and Type | Method and Description |
|---|---|
StructuredContent |
addOrUpdateContentItem(StructuredContent content)
Persists the changes or saves a new content item.
|
void |
delete(StructuredContent content)
Removes the passed in item from the underlying storage.
|
void |
detach(StructuredContent sc)
Detaches the item from the JPA session.
|
List<StructuredContent> |
findActiveStructuredContentByName(org.broadleafcommerce.common.sandbox.domain.SandBox sandBox,
String name,
org.broadleafcommerce.common.locale.domain.Locale locale)
Pass through function for backwards compatibility to get a list of structured content.
|
List<StructuredContent> |
findActiveStructuredContentByName(org.broadleafcommerce.common.sandbox.domain.SandBox sandBox,
String name,
org.broadleafcommerce.common.locale.domain.Locale fullLocale,
org.broadleafcommerce.common.locale.domain.Locale languageOnlyLocale)
Called by the
DisplayContentTag to locate content based
on the current SandBox, StructuredContentType, Name, fullLocale and/or languageOnlyLocale. |
List<StructuredContent> |
findActiveStructuredContentByNameAndType(org.broadleafcommerce.common.sandbox.domain.SandBox sandBox,
StructuredContentType type,
String name,
org.broadleafcommerce.common.locale.domain.Locale locale)
Pass through function for backwards compatibility to get a list of structured content.
|
List<StructuredContent> |
findActiveStructuredContentByNameAndType(org.broadleafcommerce.common.sandbox.domain.SandBox sandBox,
StructuredContentType type,
String name,
org.broadleafcommerce.common.locale.domain.Locale fullLocale,
org.broadleafcommerce.common.locale.domain.Locale languageOnlyLocale)
Called by the
DisplayContentTag to locate content based
on the current SandBox, StructuredContentType, Name, fullLocale and/or languageOnlyLocale. |
List<StructuredContent> |
findActiveStructuredContentByType(org.broadleafcommerce.common.sandbox.domain.SandBox sandBox,
StructuredContentType type,
org.broadleafcommerce.common.locale.domain.Locale locale)
Pass through function for backwards compatibility to get a list of structured content.
|
List<StructuredContent> |
findActiveStructuredContentByType(org.broadleafcommerce.common.sandbox.domain.SandBox sandBox,
StructuredContentType type,
org.broadleafcommerce.common.locale.domain.Locale fullLocale,
org.broadleafcommerce.common.locale.domain.Locale languageOnlyLocale)
Called by the
DisplayContentTag to locate content based
on the current SandBox, StructuredContentType, fullLocale and/or languageOnlyLocale. |
List<StructuredContent> |
findAllContentItems()
Finds all content regardless of the
Sandbox they are a member of |
StructuredContent |
findStructuredContentById(Long contentId)
Returns the
StructuredContent item that matches
the passed in Id. |
StructuredContentType |
findStructuredContentTypeById(Long contentTypeId)
Returns the
StructuredContentType that matches
the passed in contentTypeId. |
StructuredContentType |
findStructuredContentTypeByName(String name)
Used to lookup the StructuredContentType by name.
|
Map<String,StructuredContentField> |
readFieldsForStructuredContentItem(StructuredContent sc) |
List<StructuredContentType> |
retrieveAllStructuredContentTypes()
Returns the list of all
StructuredContentTypes. |
StructuredContentType |
saveStructuredContentType(StructuredContentType type)
Saves the given type and returns the merged instance
|
StructuredContent findStructuredContentById(Long contentId)
StructuredContent item that matches
the passed in Id.contentId - StructuredContentType findStructuredContentTypeById(Long contentTypeId)
StructuredContentType that matches
the passed in contentTypeId.contentTypeId - List<StructuredContentType> retrieveAllStructuredContentTypes()
StructuredContentTypes.List<StructuredContent> findAllContentItems()
Sandbox they are a member ofStructuredContent, an empty list of none are foundMap<String,StructuredContentField> readFieldsForStructuredContentItem(StructuredContent sc)
StructuredContent addOrUpdateContentItem(StructuredContent content)
content - void delete(StructuredContent content)
content - StructuredContentType saveStructuredContentType(StructuredContentType type)
List<StructuredContent> findActiveStructuredContentByType(org.broadleafcommerce.common.sandbox.domain.SandBox sandBox, StructuredContentType type, org.broadleafcommerce.common.locale.domain.Locale locale)
sandBox - to search for the contenttype - of content to search forlocale - to restrict the search toDisplayContentTagList<StructuredContent> findActiveStructuredContentByType(org.broadleafcommerce.common.sandbox.domain.SandBox sandBox, StructuredContentType type, org.broadleafcommerce.common.locale.domain.Locale fullLocale, org.broadleafcommerce.common.locale.domain.Locale languageOnlyLocale)
DisplayContentTag to locate content based
on the current SandBox, StructuredContentType, fullLocale and/or languageOnlyLocale.sandBox - to search for the contenttype - of content to search forfullLocale - to restrict the search tolanguageOnlyLocale - locale based only on a language specifiedDisplayContentTagList<StructuredContent> findActiveStructuredContentByNameAndType(org.broadleafcommerce.common.sandbox.domain.SandBox sandBox, StructuredContentType type, String name, org.broadleafcommerce.common.locale.domain.Locale locale)
sandBox - type - name - locale - List<StructuredContent> findActiveStructuredContentByNameAndType(org.broadleafcommerce.common.sandbox.domain.SandBox sandBox, StructuredContentType type, String name, org.broadleafcommerce.common.locale.domain.Locale fullLocale, org.broadleafcommerce.common.locale.domain.Locale languageOnlyLocale)
DisplayContentTag to locate content based
on the current SandBox, StructuredContentType, Name, fullLocale and/or languageOnlyLocale.sandBox - type - name - fullLocale - languageOnlyLocale - List<StructuredContent> findActiveStructuredContentByName(org.broadleafcommerce.common.sandbox.domain.SandBox sandBox, String name, org.broadleafcommerce.common.locale.domain.Locale locale)
sandBox - name - locale - List<StructuredContent> findActiveStructuredContentByName(org.broadleafcommerce.common.sandbox.domain.SandBox sandBox, String name, org.broadleafcommerce.common.locale.domain.Locale fullLocale, org.broadleafcommerce.common.locale.domain.Locale languageOnlyLocale)
DisplayContentTag to locate content based
on the current SandBox, StructuredContentType, Name, fullLocale and/or languageOnlyLocale.sandBox - name - fullLocale - languageOnlyLocale - StructuredContentType findStructuredContentTypeByName(String name)
name - void detach(StructuredContent sc)
sc - - the item to detachCopyright © 2019. All rights reserved.