|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.cms.structure.dao.StructuredContentDaoImpl
@Repository(value="blStructuredContentDao") public class StructuredContentDaoImpl
Created by bpolster.
| Field Summary | |
|---|---|
protected javax.persistence.EntityManager |
em
|
protected EntityConfiguration |
entityConfiguration
|
| Constructor Summary | |
|---|---|
StructuredContentDaoImpl()
|
|
| Method Summary | |
|---|---|
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(SandBox sandBox,
String name,
Locale locale)
Pass through function for backwards compatibility to get a list of structured content. |
List<StructuredContent> |
findActiveStructuredContentByName(SandBox sandBox,
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(SandBox sandBox,
StructuredContentType type,
String name,
Locale locale)
Pass through function for backwards compatibility to get a list of structured content. |
List<StructuredContent> |
findActiveStructuredContentByNameAndType(SandBox sandBox,
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(SandBox sandBox,
StructuredContentType type,
Locale locale)
Pass through function for backwards compatibility to get a list of structured content. |
List<StructuredContent> |
findActiveStructuredContentByType(SandBox sandBox,
StructuredContentType type,
Locale fullLocale,
Locale languageOnlyLocale)
Called by the DisplayContentTag to locate content based
on the current SandBox, StructuredContentType, fullLocale and/or languageOnlyLocale. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
| Constructor Detail |
|---|
public StructuredContentDaoImpl()
| Method Detail |
|---|
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 Map<String,StructuredContentField> readFieldsForStructuredContentItem(StructuredContent sc)
readFieldsForStructuredContentItem in interface StructuredContentDaopublic StructuredContent addOrUpdateContentItem(StructuredContent content)
StructuredContentDao
addOrUpdateContentItem in interface StructuredContentDaopublic void delete(StructuredContent content)
StructuredContentDao
delete in interface StructuredContentDao
public List<StructuredContent> findActiveStructuredContentByType(SandBox sandBox,
StructuredContentType type,
Locale locale)
StructuredContentDao
findActiveStructuredContentByType in interface StructuredContentDaosandBox - to search for the contenttype - of content to search forlocale - to restrict the search to
DisplayContentTag
public List<StructuredContent> findActiveStructuredContentByType(SandBox sandBox,
StructuredContentType type,
Locale fullLocale,
Locale languageOnlyLocale)
StructuredContentDaoDisplayContentTag to locate content based
on the current SandBox, StructuredContentType, fullLocale and/or languageOnlyLocale.
findActiveStructuredContentByType in interface StructuredContentDaosandBox - to search for the contenttype - of content to search forfullLocale - to restrict the search tolanguageOnlyLocale - locale based only on a language specified
DisplayContentTag
public List<StructuredContent> findActiveStructuredContentByNameAndType(SandBox sandBox,
StructuredContentType type,
String name,
Locale locale)
StructuredContentDao
findActiveStructuredContentByNameAndType in interface StructuredContentDao
public List<StructuredContent> findActiveStructuredContentByNameAndType(SandBox sandBox,
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 StructuredContentDao
public List<StructuredContent> findActiveStructuredContentByName(SandBox sandBox,
String name,
Locale locale)
StructuredContentDao
findActiveStructuredContentByName in interface StructuredContentDao
public List<StructuredContent> findActiveStructuredContentByName(SandBox sandBox,
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)
StructuredContentDao
findStructuredContentTypeByName in interface StructuredContentDaopublic void detach(StructuredContent sc)
StructuredContentDao
detach in interface StructuredContentDaosc - - the item to detach
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||