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
Extends the basic
Attribute
with metadata which is set by the server when returning
attributes.- Author:
- K. Benedyczak
-
Constructor Summary
ConstructorDescriptionAttributeExt
(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
Modifier and TypeMethodDescriptionboolean
protected final void
fromJsonExt
(com.fasterxml.jackson.databind.node.ObjectNode main) 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
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 Details
-
AttributeExt
-
AttributeExt
Cloning constructor. Deep cloning is performed. -
AttributeExt
UpcastsAttribute
to AttributeExt, creation and update dates are set to current time. -
AttributeExt
Cloning constructor. Deep cloning is performed. -
AttributeExt
public AttributeExt(com.fasterxml.jackson.databind.node.ObjectNode src) -
AttributeExt
-
-
Method Details
-
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
-
setCreationTs
-
getUpdateTs
-
setUpdateTs
-
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) -
hashCode
public int hashCode() -
equals
-