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 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 AbstractIdentityTypeProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description pl.edu.icm.unity.types.basic.IdentityParamconvertFromString(String stringRepresentation, String remoteIdp, String translationProfile)booleanequals(Object anotherO)inthashCode()booleanisRemovable()Most of the implementations are removableStringtoHumanFriendlyString(pl.edu.icm.unity.MessageSource msg, pl.edu.icm.unity.types.basic.IdentityParam from)Delegated to#toPrettyStringNoPrefix(String)StringtoPrettyString(pl.edu.icm.unity.types.basic.IdentityParam from)StringtoString()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 String toPrettyString(pl.edu.icm.unity.types.basic.IdentityParam from)
- Specified by:
toPrettyStringin interfacepl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
-
toString
public String toString(pl.edu.icm.unity.types.basic.IdentityParam from)
- Specified by:
toStringin interfacepl.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:
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(String stringRepresentation, String remoteIdp, 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
-
-