Class AbstractIdentityTypeProvider

java.lang.Object
pl.edu.icm.unity.stdext.identity.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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    pl.edu.icm.unity.base.identity.IdentityParam
    convertFromString(String stringRepresentation, String remoteIdp, String translationProfile)
     
    boolean
    equals(Object anotherO)
     
    int
     
    boolean
    Most of the implementations are removable
    toHumanFriendlyString(pl.edu.icm.unity.base.message.MessageSource msg, pl.edu.icm.unity.base.identity.IdentityParam from)
    Delegated to
    invalid reference
    #toPrettyStringNoPrefix(String)
    toPrettyString(pl.edu.icm.unity.base.identity.IdentityParam from)
     
     
    toString(pl.edu.icm.unity.base.identity.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, isUserSettable, toPrettyStringNoPrefix, validate
  • Constructor Details

    • AbstractIdentityTypeProvider

      public AbstractIdentityTypeProvider()
  • Method Details

    • toPrettyString

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

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

      public String toHumanFriendlyString(pl.edu.icm.unity.base.message.MessageSource msg, pl.edu.icm.unity.base.identity.IdentityParam from)
      Delegated to
      invalid reference
      #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.base.identity.IdentityParam convertFromString(String stringRepresentation, String remoteIdp, String translationProfile) throws pl.edu.icm.unity.base.identity.IllegalIdentityValueException
      Specified by:
      convertFromString in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
      Throws:
      pl.edu.icm.unity.base.identity.IllegalIdentityValueException
    • toString

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

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

      public boolean equals(Object anotherO)
      Overrides:
      equals in class Object