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 java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      pl.edu.icm.unity.types.basic.IdentityParam convertFromString​(java.lang.String stringRepresentation, java.lang.String remoteIdp, java.lang.String translationProfile)  
      boolean equals​(java.lang.Object anotherO)  
      int hashCode()  
      boolean isRemovable()
      Most of the implementations are removable
      java.lang.String toHumanFriendlyString​(pl.edu.icm.unity.MessageSource msg, pl.edu.icm.unity.types.basic.IdentityParam from)
      Delegated to #toPrettyStringNoPrefix(String)
      java.lang.String toPrettyString​(pl.edu.icm.unity.types.basic.IdentityParam from)  
      java.lang.String toString()  
      java.lang.String toString​(pl.edu.icm.unity.types.basic.IdentityParam from)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition

        createNewIdentity, getComparableValue, getDefaultDescriptionKey, getHumanFriendlyDescription, getHumanFriendlyName, getId, isDynamic, isEmailVerifiable, isExpired, isTargeted, toPrettyStringNoPrefix, validate
    • Constructor Detail

      • AbstractIdentityTypeProvider

        public AbstractIdentityTypeProvider()
    • Method Detail

      • toPrettyString

        public java.lang.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 java.lang.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 java.lang.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​(java.lang.String stringRepresentation,
                                                                            java.lang.String remoteIdp,
                                                                            java.lang.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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object anotherO)
        Overrides:
        equals in class java.lang.Object