Class AbstractIdentityTypeProvider

  • All Implemented Interfaces:
    pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
    Direct Known Subclasses:
    AbstractStaticIdentityTypeProvider, PersistentIdentity, TargetedPersistentIdentity, TransientIdentity

    public abstract class AbstractIdentityTypeProvider
    extends Object
    implements pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
    Base identity type definition. Provides equals and hashcode based on id and default implementations of toPrettyString and toString.
    Author:
    K. Benedyczak
    • Constructor Detail

      • AbstractIdentityTypeProvider

        public AbstractIdentityTypeProvider()
    • Method Detail

      • toPrettyString

        public String toPrettyString​(pl.edu.icm.unity.types.basic.IdentityParam from)
        Specified by:
        toPrettyString in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
      • toString

        public String toString​(pl.edu.icm.unity.types.basic.IdentityParam from)
        Specified by:
        toString in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
      • toHumanFriendlyString

        public String toHumanFriendlyString​(pl.edu.icm.unity.MessageSource msg,
                                            pl.edu.icm.unity.types.basic.IdentityParam from)
        Delegated to #toPrettyStringNoPrefix(String)
        Specified by:
        toHumanFriendlyString in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
      • isRemovable

        public boolean isRemovable()
        Most of the implementations are removable
        Specified by:
        isRemovable in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
      • convertFromString

        public pl.edu.icm.unity.types.basic.IdentityParam convertFromString​(String stringRepresentation,
                                                                            String remoteIdp,
                                                                            String translationProfile)
                                                                     throws pl.edu.icm.unity.exceptions.IllegalIdentityValueException
        Specified by:
        convertFromString in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
        Throws:
        pl.edu.icm.unity.exceptions.IllegalIdentityValueException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object