Interface ContentReferenceDao

All Known Implementing Classes:
ContentReferenceDaoImpl

public interface ContentReferenceDao
This DAO is responsible for persisting entities of type "Content_reference".
  • Method Details

    • update

      void update(Entity entity, String fieldName, Set<ContentReference> contentReferences)
      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

      Set<ContentReferenceSource> findPointingTo(Entity target)
      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

      Optional<Entity> getTarget(ContentReference contentReference)
      Get the target entity the given reference is pointing to.
      Parameters:
      contentReference - The reference pointing to a target.
      Returns:
      the target entity.