Package pl.edu.icm.unity.stdext.identity
Class PersistentIdentity
- java.lang.Object
-
- pl.edu.icm.unity.stdext.identity.AbstractIdentityTypeProvider
-
- pl.edu.icm.unity.stdext.identity.PersistentIdentity
-
- All Implemented Interfaces:
pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
@Component public class PersistentIdentity extends AbstractIdentityTypeProvider
Identity type definition holding a persistent id. It is associated with each and every entity. Can not be removed, without removing the whole containing entity.- Author:
- K. Benedyczak
-
-
Constructor Summary
Constructors Constructor Description PersistentIdentity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description pl.edu.icm.unity.types.basic.IdentitycreateNewIdentity(String realm, String target, long entityId)StringgetComparableValue(String from, String realm, String target)StringgetDefaultDescriptionKey()StringgetHumanFriendlyDescription(pl.edu.icm.unity.MessageSource msg)StringgetHumanFriendlyName(pl.edu.icm.unity.MessageSource msg)StringgetId()booleanisDynamic()booleanisEmailVerifiable()booleanisExpired(pl.edu.icm.unity.types.basic.Identity representation)booleanisTargeted()StringtoHumanFriendlyString(pl.edu.icm.unity.MessageSource msg, pl.edu.icm.unity.types.basic.IdentityParam from)Delegated to#toPrettyStringNoPrefix(String)StringtoPrettyStringNoPrefix(pl.edu.icm.unity.types.basic.IdentityParam from)voidvalidate(String value)-
Methods inherited from class pl.edu.icm.unity.stdext.identity.AbstractIdentityTypeProvider
convertFromString, equals, hashCode, isRemovable, toPrettyString, toString, toString
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public String getId()
-
getDefaultDescriptionKey
public String getDefaultDescriptionKey()
-
validate
public void validate(String value)
-
toPrettyStringNoPrefix
public String toPrettyStringNoPrefix(pl.edu.icm.unity.types.basic.IdentityParam from)
-
isDynamic
public boolean isDynamic()
-
createNewIdentity
public pl.edu.icm.unity.types.basic.Identity createNewIdentity(String realm, String target, long entityId)
-
isTargeted
public boolean isTargeted()
-
isExpired
public boolean isExpired(pl.edu.icm.unity.types.basic.Identity representation)
-
getHumanFriendlyDescription
public String getHumanFriendlyDescription(pl.edu.icm.unity.MessageSource msg)
-
toHumanFriendlyString
public String toHumanFriendlyString(pl.edu.icm.unity.MessageSource msg, pl.edu.icm.unity.types.basic.IdentityParam from)
Description copied from class:AbstractIdentityTypeProviderDelegated to#toPrettyStringNoPrefix(String)- Specified by:
toHumanFriendlyStringin interfacepl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition- Overrides:
toHumanFriendlyStringin classAbstractIdentityTypeProvider
-
isEmailVerifiable
public boolean isEmailVerifiable()
-
getHumanFriendlyName
public String getHumanFriendlyName(pl.edu.icm.unity.MessageSource msg)
-
-