Interface EntityResolver


  • public interface EntityResolver
    Various helper operations allowing for converting and checking identity and entity related parameters.
    Author:
    K. Benedyczak
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long getEntityId​(pl.edu.icm.unity.types.basic.EntityParam entity)
      Resolves EntityParam, if missing throws exception
      long getEntityId​(pl.edu.icm.unity.types.basic.IdentityTaV entity)
      Resolves IdentityTaV, if missing throws exception
      pl.edu.icm.unity.types.basic.Identity getFullIdentity​(pl.edu.icm.unity.types.basic.IdentityTaV entity)
      Resolves IdentityTaV into a full Identity, if missing throws exception
    • Method Detail

      • getFullIdentity

        pl.edu.icm.unity.types.basic.Identity getFullIdentity​(pl.edu.icm.unity.types.basic.IdentityTaV entity)
                                                       throws pl.edu.icm.unity.exceptions.IllegalIdentityValueException
        Resolves IdentityTaV into a full Identity, if missing throws exception
        Parameters:
        entity -
        Returns:
        Throws:
        pl.edu.icm.unity.exceptions.IllegalIdentityValueException
      • getEntityId

        long getEntityId​(pl.edu.icm.unity.types.basic.IdentityTaV entity)
                  throws pl.edu.icm.unity.exceptions.IllegalIdentityValueException
        Resolves IdentityTaV, if missing throws exception
        Parameters:
        entity -
        Returns:
        Throws:
        pl.edu.icm.unity.exceptions.IllegalIdentityValueException
      • getEntityId

        long getEntityId​(pl.edu.icm.unity.types.basic.EntityParam entity)
                  throws pl.edu.icm.unity.exceptions.IllegalIdentityValueException
        Resolves EntityParam, if missing throws exception
        Parameters:
        entity -
        Returns:
        Throws:
        pl.edu.icm.unity.exceptions.IllegalIdentityValueException