Package pl.edu.icm.unity.types.basic
Class AttributeExt
- java.lang.Object
-
- pl.edu.icm.unity.types.basic.Attribute
-
- pl.edu.icm.unity.types.basic.AttributeExt
-
- All Implemented Interfaces:
NamedObject
- Direct Known Subclasses:
ExternalizedAttribute
public class AttributeExt extends Attribute
Extends the basicAttribute
with metadata which is set by the server when returning attributes.- Author:
- K. Benedyczak
-
-
Constructor Summary
Constructors Constructor Description AttributeExt(com.fasterxml.jackson.databind.node.ObjectNode src)
AttributeExt(String name, String valueSyntax, String groupPath, com.fasterxml.jackson.databind.node.ObjectNode src)
AttributeExt(AttributeExt source)
Cloning constructor.AttributeExt(AttributeExt source, Date creationTs, Date updateTs)
Cloning constructor.AttributeExt(Attribute baseAttribute, boolean isDirect)
UpcastsAttribute
to AttributeExt, creation and update dates are set to current time.AttributeExt(Attribute baseAttribute, boolean isDirect, Date creationTs, Date updateTs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
protected void
fromJsonExt(com.fasterxml.jackson.databind.node.ObjectNode main)
Date
getCreationTs()
Date
getUpdateTs()
int
hashCode()
boolean
isDirect()
void
setCreationTs(Date creationTs)
void
setDirect(boolean direct)
void
setUpdateTs(Date updateTs)
com.fasterxml.jackson.databind.node.ObjectNode
toJson()
com.fasterxml.jackson.databind.node.ObjectNode
toJsonBase()
protected com.fasterxml.jackson.databind.node.ObjectNode
toJsonExt(com.fasterxml.jackson.databind.node.ObjectNode root)
-
Methods inherited from class pl.edu.icm.unity.types.basic.Attribute
clone, fromJson, fromJsonBase, getGroupPath, getName, getRemoteIdp, getTranslationProfile, getValues, getValueSyntax, setGroupPath, setName, setRemoteIdp, setTranslationProfile, setValues, setValues, setValueSyntax, toString
-
-
-
-
Constructor Detail
-
AttributeExt
public AttributeExt(Attribute baseAttribute, boolean isDirect, Date creationTs, Date updateTs)
-
AttributeExt
public AttributeExt(AttributeExt source, Date creationTs, Date updateTs)
Cloning constructor. Deep cloning is performed.
-
AttributeExt
public AttributeExt(Attribute baseAttribute, boolean isDirect)
UpcastsAttribute
to AttributeExt, creation and update dates are set to current time.
-
AttributeExt
public AttributeExt(AttributeExt source)
Cloning constructor. Deep cloning is performed.
-
AttributeExt
public AttributeExt(com.fasterxml.jackson.databind.node.ObjectNode src)
-
-
Method Detail
-
isDirect
public boolean isDirect()
- Returns:
- if true, the attribute is direclt defined in the group of its scope. If false it is an implied attribute, assigned by group's attribute statements.
-
setDirect
public void setDirect(boolean direct)
-
getCreationTs
public Date getCreationTs()
-
setCreationTs
public void setCreationTs(Date creationTs)
-
getUpdateTs
public Date getUpdateTs()
-
setUpdateTs
public void setUpdateTs(Date updateTs)
-
toJson
public com.fasterxml.jackson.databind.node.ObjectNode toJson()
-
toJsonBase
public com.fasterxml.jackson.databind.node.ObjectNode toJsonBase()
- Overrides:
toJsonBase
in classAttribute
-
toJsonExt
protected com.fasterxml.jackson.databind.node.ObjectNode toJsonExt(com.fasterxml.jackson.databind.node.ObjectNode root)
-
fromJsonExt
protected final void fromJsonExt(com.fasterxml.jackson.databind.node.ObjectNode main)
-
-