Class ContentReferenceDaoImpl
java.lang.Object
ch.tocco.nice2.dms.impl.reference.ContentReferenceDaoImpl
- All Implemented Interfaces:
ContentReferenceDao
-
Constructor Summary
ConstructorDescriptionContentReferenceDaoImpl
(org.slf4j.Logger log, Context context, CascadingDeleteService cascadingDeleteService, QueryBuilderFactory queryBuilderFactory, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescriptionfindPointingTo
(Entity target) Find all entities that point to the given entity.getTarget
(ContentReference contentReference) Get the target entity the given reference is pointing to.void
update
(Entity entity, String fieldName, Set<ContentReference> contentReferences) Update the content references an entity.
-
Constructor Details
-
ContentReferenceDaoImpl
public ContentReferenceDaoImpl(org.slf4j.Logger log, Context context, CascadingDeleteService cascadingDeleteService, QueryBuilderFactory queryBuilderFactory, BusinessUnitManager businessUnitManager)
-
-
Method Details
-
update
Description copied from interface:ContentReferenceDao
Update the content references an entity.- Specified by:
update
in interfaceContentReferenceDao
- Parameters:
entity
- The entity to update the references of.fieldName
- The text field which contains the references.contentReferences
- The references of the entity.
-
findPointingTo
Description copied from interface:ContentReferenceDao
Find all entities that point to the given entity.- Specified by:
findPointingTo
in interfaceContentReferenceDao
- Parameters:
target
- The target entity to find the referring entities for.- Returns:
- all entities which have a reference to the given entity.
-
getTarget
Description copied from interface:ContentReferenceDao
Get the target entity the given reference is pointing to.- Specified by:
getTarget
in interfaceContentReferenceDao
- Parameters:
contentReference
- The reference pointing to a target.- Returns:
- the target entity.
-