@Repository(value="blStructuredContentDao") public class StructuredContentDaoImpl extends Object implements StructuredContentDao
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
protected EntityConfiguration |
entityConfiguration |
| Constructor and Description |
|---|
StructuredContentDaoImpl() |
| 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(String name,
Locale locale)
Pass through function for backwards compatibility to get a list of structured content.
|
List<StructuredContent> |
findActiveStructuredContentByName(String name,
Locale fullLocale,
Locale languageOnlyLocale)
Called by the
DisplayContentTag to locate content based
on the current SandBox, StructuredContentType, Name, fullLocale and/or languageOnlyLocale. |
List<StructuredContent> |
findActiveStructuredContentByNameAndType(StructuredContentType type,
String name,
Locale locale)
Pass through function for backwards compatibility to get a list of structured content.
|
List<StructuredContent> |
findActiveStructuredContentByNameAndType(StructuredContentType type,
String name,
Locale fullLocale,
Locale languageOnlyLocale)
Called by the
DisplayContentTag to locate content based
on the current SandBox, StructuredContentType, Name, fullLocale and/or languageOnlyLocale. |
List<StructuredContent> |
findActiveStructuredContentByType(StructuredContentType type,
Locale locale)
Pass through function for backwards compatibility to get a list of structured content.
|
List<StructuredContent> |
findActiveStructuredContentByType(StructuredContentType type,
Locale fullLocale,
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.
|
List<StructuredContentType> |
retrieveAllStructuredContentTypes()
Returns the list of all
StructuredContentTypes. |
StructuredContentType |
saveStructuredContentType(StructuredContentType type)
Saves the given type and returns the merged instance
|
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
public StructuredContent findStructuredContentById(Long contentId)
StructuredContentDaoStructuredContent item that matches
the passed in Id.findStructuredContentById in interface StructuredContentDaopublic StructuredContentType findStructuredContentTypeById(Long contentTypeId)
StructuredContentDaoStructuredContentType that matches
the passed in contentTypeId.findStructuredContentTypeById in interface StructuredContentDaopublic List<StructuredContentType> retrieveAllStructuredContentTypes()
StructuredContentDaoStructuredContentTypes.retrieveAllStructuredContentTypes in interface StructuredContentDaopublic List<StructuredContent> findAllContentItems()
StructuredContentDaoSandbox they are a member offindAllContentItems in interface StructuredContentDaoStructuredContent, an empty list of none are foundpublic StructuredContent addOrUpdateContentItem(StructuredContent content)
StructuredContentDaoaddOrUpdateContentItem in interface StructuredContentDaopublic void delete(StructuredContent content)
StructuredContentDaodelete in interface StructuredContentDaopublic StructuredContentType saveStructuredContentType(StructuredContentType type)
StructuredContentDaosaveStructuredContentType in interface StructuredContentDaopublic List<StructuredContent> findActiveStructuredContentByType(StructuredContentType type, Locale locale)
StructuredContentDaofindActiveStructuredContentByType in interface StructuredContentDaotype - of content to search forlocale - to restrict the search toorg.broadleafcommerce.cms.web.structure.DisplayContentTagpublic List<StructuredContent> findActiveStructuredContentByType(StructuredContentType type, Locale fullLocale, Locale languageOnlyLocale)
StructuredContentDaoDisplayContentTag to locate content based
on the current SandBox, StructuredContentType, fullLocale and/or languageOnlyLocale.findActiveStructuredContentByType in interface StructuredContentDaotype - of content to search forfullLocale - to restrict the search tolanguageOnlyLocale - locale based only on a language specifiedorg.broadleafcommerce.cms.web.structure.DisplayContentTagpublic List<StructuredContent> findActiveStructuredContentByNameAndType(StructuredContentType type, String name, Locale locale)
StructuredContentDaofindActiveStructuredContentByNameAndType in interface StructuredContentDaopublic List<StructuredContent> findActiveStructuredContentByNameAndType(StructuredContentType type, String name, Locale fullLocale, Locale languageOnlyLocale)
StructuredContentDaoDisplayContentTag to locate content based
on the current SandBox, StructuredContentType, Name, fullLocale and/or languageOnlyLocale.findActiveStructuredContentByNameAndType in interface StructuredContentDaopublic List<StructuredContent> findActiveStructuredContentByName(String name, Locale locale)
StructuredContentDaofindActiveStructuredContentByName in interface StructuredContentDaopublic List<StructuredContent> findActiveStructuredContentByName(String name, Locale fullLocale, Locale languageOnlyLocale)
StructuredContentDaoDisplayContentTag to locate content based
on the current SandBox, StructuredContentType, Name, fullLocale and/or languageOnlyLocale.findActiveStructuredContentByName in interface StructuredContentDaopublic StructuredContentType findStructuredContentTypeByName(String name)
StructuredContentDaofindStructuredContentTypeByName in interface StructuredContentDaopublic void detach(StructuredContent sc)
StructuredContentDaodetach in interface StructuredContentDaosc - - the item to detachCopyright © 2019. All rights reserved.