Class MetadataImpl
- java.lang.Object
-
- org.gcube.informationsystem.base.impl.ElementImpl
-
- org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
-
- org.gcube.informationsystem.model.impl.properties.PropertyImpl
-
- org.gcube.informationsystem.model.impl.properties.MetadataImpl
-
- All Implemented Interfaces:
Serializable,Element,PropertyElement,SchemaMixedElement,ModelElement,Metadata,Property
public final class MetadataImpl extends PropertyImpl implements Metadata
The default implementation of theMetadatainterface.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcreatedByThe user who created the element.protected DatecreationTimeThe time the element was created.protected StringlastUpdateByThe user who last updated the element.protected DatelastUpdateTimeThe time the element was last updated.-
Fields inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
additionalProperties, allowedAdditionalKeys, expectedtype, supertypes
-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.model.reference.properties.Metadata
CREATED_BY_PROPERTY, CREATION_TIME_PROPERTY, HIDDEN_FOR_PRIVACY_USER, LAST_UPDATE_BY_PROPERTY, LAST_UPDATE_TIME_PROPERTY, NAME, UNKNOWN_USER
-
Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description MetadataImpl()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCreatedBy()Returns the user who created the element.DategetCreationTime()Returns the time when the element was created.StringgetLastUpdateBy()Returns the user who last updated the element.DategetLastUpdateTime()Returns the time when the element was last updated.-
Methods inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, getExpectedtype, getSupertypes, setAdditionalProperties, setAdditionalProperty
-
Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeName
-
Methods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypes
-
Methods inherited from interface org.gcube.informationsystem.model.reference.properties.Property
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
-
-
-
-
Field Detail
-
createdBy
protected String createdBy
The user who created the element.
-
creationTime
protected Date creationTime
The time the element was created.
-
lastUpdateBy
protected String lastUpdateBy
The user who last updated the element.
-
lastUpdateTime
protected Date lastUpdateTime
The time the element was last updated.
-
-
Method Detail
-
getCreatedBy
public String getCreatedBy()
Returns the user who created the element.- Specified by:
getCreatedByin interfaceMetadata- Returns:
- The creator's identifier.
-
getCreationTime
public Date getCreationTime()
Returns the time when the element was created.- Specified by:
getCreationTimein interfaceMetadata- Returns:
- The creation date and time.
-
getLastUpdateBy
public String getLastUpdateBy()
Returns the user who last updated the element.- Specified by:
getLastUpdateByin interfaceMetadata- Returns:
- The last updater's identifier.
-
getLastUpdateTime
public Date getLastUpdateTime()
Returns the time when the element was last updated.- Specified by:
getLastUpdateTimein interfaceMetadata- Returns:
- The last update date and time.
-
-