Class 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 Detail

      • PersistentIdentity

        public PersistentIdentity()
    • Method Detail

      • getId

        public java.lang.String getId()
      • getDefaultDescriptionKey

        public java.lang.String getDefaultDescriptionKey()
      • validate

        public void validate​(java.lang.String value)
      • getComparableValue

        public java.lang.String getComparableValue​(java.lang.String from,
                                                   java.lang.String realm,
                                                   java.lang.String target)
      • toPrettyStringNoPrefix

        public java.lang.String toPrettyStringNoPrefix​(pl.edu.icm.unity.types.basic.IdentityParam from)
      • isDynamic

        public boolean isDynamic()
      • createNewIdentity

        public pl.edu.icm.unity.types.basic.Identity createNewIdentity​(java.lang.String realm,
                                                                       java.lang.String target,
                                                                       long entityId)
      • isTargeted

        public boolean isTargeted()
      • isExpired

        public boolean isExpired​(pl.edu.icm.unity.types.basic.Identity representation)
      • getHumanFriendlyDescription

        public java.lang.String getHumanFriendlyDescription​(pl.edu.icm.unity.MessageSource msg)
      • toHumanFriendlyString

        public java.lang.String toHumanFriendlyString​(pl.edu.icm.unity.MessageSource msg,
                                                      pl.edu.icm.unity.types.basic.IdentityParam from)
        Description copied from class: AbstractIdentityTypeProvider
        Delegated to #toPrettyStringNoPrefix(String)
        Specified by:
        toHumanFriendlyString in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
        Overrides:
        toHumanFriendlyString in class AbstractIdentityTypeProvider
      • isEmailVerifiable

        public boolean isEmailVerifiable()
      • getHumanFriendlyName

        public java.lang.String getHumanFriendlyName​(pl.edu.icm.unity.MessageSource msg)