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
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
ConstructorDescriptionIdentity
(com.fasterxml.jackson.databind.node.ObjectNode src) Partial creation from JSON (used by RDBMS storage)Identity
(IdentityParam idParam, long entityId, String comparableValue) Allows for creatingIdentity
out ofIdentityParam
. -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
long
getName()
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
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 Details
-
Identity
-
Identity
Allows for creatingIdentity
out ofIdentityParam
.- Parameters:
idParam
-entityId
-comparableValue
-
-
Identity
public Identity(com.fasterxml.jackson.databind.node.ObjectNode src) -
Identity
Partial creation from JSON (used by RDBMS storage)- Parameters:
type
-entityId
-comparableValue
-src
-
-
-
Method Details
-
getEntityId
public long getEntityId() -
setEntityId
public void setEntityId(long entityId) -
getCreationTs
-
setCreationTs
-
getUpdateTs
-
setUpdateTs
-
getComparableValue
-
setComparableValue
-
getName
- Specified by:
getName
in interfaceNamedObject
- Returns:
- human readable name of the object. Must be unique for the object class.
-
clone
-
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
- Overrides:
equals
in classIdentityParam
-