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 -
Method Summary
Modifier and TypeMethodDescriptionpl.edu.icm.unity.base.identity.IdentityParamconvertFromString(String stringRepresentation, String remoteIdp, String translationProfile) booleaninthashCode()booleanMost of the implementations are removabletoHumanFriendlyString(pl.edu.icm.unity.base.message.MessageSource msg, pl.edu.icm.unity.base.identity.IdentityParam from) Delegated to#toPrettyStringNoPrefix(String)toPrettyString(pl.edu.icm.unity.base.identity.IdentityParam from) toString()toString(pl.edu.icm.unity.base.identity.IdentityParam from) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
- Specified by:
toPrettyStringin interfacepl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
-
toString
- Specified by:
toStringin interfacepl.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#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.base.identity.IdentityParam convertFromString(String stringRepresentation, String remoteIdp, String translationProfile) throws pl.edu.icm.unity.base.identity.IllegalIdentityValueException - Specified by:
convertFromStringin interfacepl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition- Throws:
pl.edu.icm.unity.base.identity.IllegalIdentityValueException
-
toString
-
hashCode
public int hashCode() -
equals
-