Class ContentReferenceDaoImpl
java.lang.Object
ch.tocco.nice2.dms.impl.reference.ContentReferenceDaoImpl
- All Implemented Interfaces:
ContentReferenceDao
-
Constructor Summary
ConstructorsConstructorDescriptionContentReferenceDaoImpl(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.voidupdate(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:ContentReferenceDaoUpdate the content references an entity.- Specified by:
updatein 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:ContentReferenceDaoFind all entities that point to the given entity.- Specified by:
findPointingToin 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:ContentReferenceDaoGet the target entity the given reference is pointing to.- Specified by:
getTargetin interfaceContentReferenceDao- Parameters:
contentReference- The reference pointing to a target.- Returns:
- the target entity.
-