@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(SandBox sandBox,
String name,
Locale locale)
Called by the
DisplayContentTag to locate content based
on the current SandBox, StructuredContentType, Name, and Locale. |
List<StructuredContent> |
findActiveStructuredContentByNameAndType(SandBox sandBox,
StructuredContentType type,
String name,
Locale locale)
Called by the
DisplayContentTag to locate content based
on the current SandBox, StructuredContentType, Name, and Locale. |
List<StructuredContent> |
findActiveStructuredContentByType(SandBox sandBox,
StructuredContentType type,
Locale locale)
Called by the
DisplayContentTag to locate content based
on the current SandBox, StructuredContentType, and Locale. |
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. |
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 Map<String,StructuredContentField> readFieldsForStructuredContentItem(StructuredContent sc)
readFieldsForStructuredContentItem in interface StructuredContentDaopublic StructuredContent addOrUpdateContentItem(StructuredContent content)
StructuredContentDaoaddOrUpdateContentItem in interface StructuredContentDaopublic void delete(StructuredContent content)
StructuredContentDaodelete in interface StructuredContentDaopublic List<StructuredContent> findActiveStructuredContentByType(SandBox sandBox, StructuredContentType type, Locale locale)
StructuredContentDaoDisplayContentTag to locate content based
on the current SandBox, StructuredContentType, and Locale.findActiveStructuredContentByType in interface StructuredContentDaosandBox - to search for the contenttype - of content to search forlocale - to restrict the search toDisplayContentTagpublic List<StructuredContent> findActiveStructuredContentByNameAndType(SandBox sandBox, StructuredContentType type, String name, Locale locale)
StructuredContentDaoDisplayContentTag to locate content based
on the current SandBox, StructuredContentType, Name, and Locale.findActiveStructuredContentByNameAndType in interface StructuredContentDaopublic List<StructuredContent> findActiveStructuredContentByName(SandBox sandBox, String name, Locale locale)
StructuredContentDaoDisplayContentTag to locate content based
on the current SandBox, StructuredContentType, Name, and Locale.findActiveStructuredContentByName in interface StructuredContentDaopublic StructuredContentType findStructuredContentTypeByName(String name)
StructuredContentDaofindStructuredContentTypeByName in interface StructuredContentDaopublic void detach(StructuredContent sc)
StructuredContentDaodetach in interface StructuredContentDaosc - - the item to detachCopyright © 2013. All rights reserved.