Class AssociationResolverServiceImpl

java.lang.Object
ch.tocco.nice2.optional.functionmutation.impl.AssociationResolverServiceImpl
All Implemented Interfaces:
AssociationResolverService

@Component public class AssociationResolverServiceImpl extends Object implements AssociationResolverService
  • Constructor Details

    • AssociationResolverServiceImpl

      public AssociationResolverServiceImpl()
  • Method Details

    • getAssociationAddress

      @Nullable public @Nullable Entity getAssociationAddress(Entity function)
      Description copied from interface: AssociationResolverService
      Resolves the association (Address) related to a given Function entity as followed:

       1. if Function.relAddress is set → return it
       2. if Function.relInstitution.relAddress is set → return it
       3. return null
       
      Specified by:
      getAssociationAddress in interface AssociationResolverService