Package pl.edu.icm.unity.stdext.identity
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 java.lang.Object implements pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinitionBase 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 AbstractIdentityTypeProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description pl.edu.icm.unity.types.basic.IdentityParamconvertFromString(java.lang.String stringRepresentation, java.lang.String remoteIdp, java.lang.String translationProfile)booleanequals(java.lang.Object anotherO)inthashCode()booleanisRemovable()Most of the implementations are removablejava.lang.StringtoHumanFriendlyString(pl.edu.icm.unity.MessageSource msg, pl.edu.icm.unity.types.basic.IdentityParam from)Delegated to#toPrettyStringNoPrefix(String)java.lang.StringtoPrettyString(pl.edu.icm.unity.types.basic.IdentityParam from)java.lang.StringtoString()java.lang.StringtoString(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
-
-
-
-
Method Detail
-
toPrettyString
public java.lang.String toPrettyString(pl.edu.icm.unity.types.basic.IdentityParam from)
- Specified by:
toPrettyStringin interfacepl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
-
toString
public java.lang.String toString(pl.edu.icm.unity.types.basic.IdentityParam from)
- Specified by:
toStringin interfacepl.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:
toHumanFriendlyStringin interfacepl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
-
isRemovable
public boolean isRemovable()
Most of the implementations are removable- Specified by:
isRemovablein interfacepl.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:
convertFromStringin interfacepl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition- Throws:
pl.edu.icm.unity.exceptions.IllegalIdentityValueException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object anotherO)
- Overrides:
equalsin classjava.lang.Object
-
-