Package pl.edu.icm.unity.types.basic
Class Identity
- java.lang.Object
-
- pl.edu.icm.unity.types.basic.IdentityTaV
-
- pl.edu.icm.unity.types.basic.IdentityParam
-
- pl.edu.icm.unity.types.basic.Identity
-
- All Implemented Interfaces:
VerifiableElement
,NamedObject
public class Identity extends IdentityParam implements NamedObject
Represents an identity with full information as returned from the engine.- Author:
- K. Benedyczak
-
-
Field Summary
-
Fields inherited from class pl.edu.icm.unity.types.basic.IdentityTaV
realm, target, value
-
-
Constructor Summary
Constructors Constructor Description Identity(com.fasterxml.jackson.databind.node.ObjectNode src)
Identity(String type, long entityId, com.fasterxml.jackson.databind.node.ObjectNode src)
Partial creation from JSON (used by RDBMS storage)Identity(String type, String value, long entityId, String comparableValue)
Identity(IdentityParam idParam, long entityId, String comparableValue)
Allows for creatingIdentity
out ofIdentityParam
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Identity
clone()
boolean
equals(Object obj)
String
getComparableValue()
Date
getCreationTs()
long
getEntityId()
String
getName()
Date
getUpdateTs()
int
hashCode()
void
setComparableValue(String comparableValue)
void
setCreationTs(Date creationTs)
void
setEntityId(long entityId)
void
setUpdateTs(Date updateTs)
com.fasterxml.jackson.databind.node.ObjectNode
toJson()
com.fasterxml.jackson.databind.node.ObjectNode
toJsonBase()
-
Methods inherited from class pl.edu.icm.unity.types.basic.IdentityParam
getConfirmationInfo, getMetadata, getRemoteIdp, getTranslationProfile, isConfirmed, isLocal, setConfirmationInfo, setMetadata, setRemoteIdp, setTranslationProfile, toHumanReadableString, toString
-
Methods inherited from class pl.edu.icm.unity.types.basic.IdentityTaV
getRealm, getTarget, getTypeId, getValue, setRealm, setTarget, setTypeId, setValue
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface pl.edu.icm.unity.types.confirmation.VerifiableElement
getValue
-
-
-
-
Constructor Detail
-
Identity
public Identity(IdentityParam idParam, long entityId, String comparableValue)
Allows for creatingIdentity
out ofIdentityParam
.- Parameters:
idParam
-entityId
-comparableValue
-
-
Identity
public Identity(com.fasterxml.jackson.databind.node.ObjectNode src)
-
Identity
public Identity(String type, long entityId, com.fasterxml.jackson.databind.node.ObjectNode src)
Partial creation from JSON (used by RDBMS storage)- Parameters:
type
-entityId
-comparableValue
-src
-
-
-
Method Detail
-
getEntityId
public long getEntityId()
-
setEntityId
public void setEntityId(long entityId)
-
getCreationTs
public Date getCreationTs()
-
setCreationTs
public void setCreationTs(Date creationTs)
-
getUpdateTs
public Date getUpdateTs()
-
setUpdateTs
public void setUpdateTs(Date updateTs)
-
getComparableValue
public String getComparableValue()
-
setComparableValue
public void setComparableValue(String comparableValue)
-
getName
public String getName()
- Specified by:
getName
in interfaceNamedObject
- Returns:
- human readable name of the object. Must be unique for the object class.
-
toJson
public com.fasterxml.jackson.databind.node.ObjectNode toJson()
- Overrides:
toJson
in classIdentityParam
-
toJsonBase
public com.fasterxml.jackson.databind.node.ObjectNode toJsonBase()
- Overrides:
toJsonBase
in classIdentityParam
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classIdentityParam
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classIdentityParam
-
-