Interface CustomRelationCounter

All Known Implementing Classes:
DmsRelationCounter

public interface CustomRelationCounter
The MultiCountResource counts the number of related entities for each relation tab. If a custom count logic is necessary a CustomRelationCounter should be implemented for this relation.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    getCount(Entity sourceEntity)
     
    boolean
    supports(String relationName)
     
  • Method Details

    • getCount

      long getCount(Entity sourceEntity)
      Returns:
      the number of related entities
    • supports

      boolean supports(String relationName)
      Returns:
      `true` if this CustomRelationCounter supports the given relation name.