Package ch.tocco.nice2.dms.api.reference
Interface ContentReferenceDao
- All Known Implementing Classes:
 ContentReferenceDaoImpl
public interface ContentReferenceDao
This DAO is responsible for persisting entities of type "Content_reference".
- 
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. 
- 
Method Details
- 
update
Update the content references an entity.- Parameters:
 entity- The entity to update the references of.fieldName- The text field which contains the references.contentReferences- The references of the entity.
 - 
findPointingTo
Find all entities that point to the given entity.- Parameters:
 target- The target entity to find the referring entities for.- Returns:
 - all entities which have a reference to the given entity.
 
 - 
getTarget
Get the target entity the given reference is pointing to.- Parameters:
 contentReference- The reference pointing to a target.- Returns:
 - the target entity.
 
 
 -