public class MetacardVersionImpl extends MetacardImpl implements MetacardVersion
Action
that was
performed, who it was edited by, and what time it was edited on.MetacardVersion.Action
ACTION, EDITED_BY, HISTORY_METACARDS_PROPERTY, PREFIX, PREFIXER, SKIP_VERSIONING, VERSION_OF_ID, VERSION_TAG, VERSION_TAGS, VERSION_TYPE, VERSION_TYPE_BINARY, VERSIONED_ON, VERSIONED_RESOURCE_URI
ANY_DATE, ANY_GEO, ANY_TEXT, CHECKSUM, CHECKSUM_ALGORITHM, CONTENT_TYPE, CONTENT_TYPE_VERSION, CREATED, DEFAULT_TAG, DERIVED, DERIVED_RESOURCE_DOWNLOAD_URL, DERIVED_RESOURCE_URI, DESCRIPTION, EFFECTIVE, EXPIRATION, GEOGRAPHY, ID, METADATA, MODIFIED, POINT_OF_CONTACT, RELATED, RESOURCE_DOWNLOAD_URL, RESOURCE_SIZE, RESOURCE_URI, SECURITY, SECURITY_MATCH_ALL, SECURITY_MATCH_ONE, SOURCE_ID, TAGS, TARGET_NAMESPACE, THUMBNAIL, TITLE
Constructor and Description |
---|
MetacardVersionImpl(String id,
Metacard sourceMetacard,
MetacardVersion.Action action,
org.apache.shiro.subject.Subject subject)
Will convert the given
Metacard to a MetacardVersionImpl by cloning it and
adding the current subject, time, and a random UUID. |
MetacardVersionImpl(String id,
Metacard sourceMetacard,
MetacardVersion.Action action,
org.apache.shiro.subject.Subject subject,
List<MetacardType> types)
Will convert the given
Metacard to a MetacardVersionImpl by cloning it and
adding the current subject, time, and a random UUID. |
getAttribute, getContentTypeName, getContentTypeNamespace, getContentTypeVersion, getCreatedDate, getDescription, getEffectiveDate, getExpirationDate, getId, getLocation, getMetacardType, getMetadata, getModifiedDate, getPointOfContact, getResourceSize, getResourceURI, getSecurity, getSourceId, getThumbnail, getTitle, hashCode, requestBytes, requestData, requestDate, requestDouble, requestInputStream, requestInteger, requestLong, requestString, setAttribute, setAttribute, setContentTypeName, setContentTypeVersion, setCreatedDate, setDescription, setEffectiveDate, setExpirationDate, setId, setLocation, setMetadata, setModifiedDate, setPointOfContact, setResourceSize, setResourceURI, setSecurity, setSourceId, setTags, setTargetNamespace, setThumbnail, setTitle, setType
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAttribute, getContentTypeName, getContentTypeNamespace, getContentTypeVersion, getCreatedDate, getEffectiveDate, getExpirationDate, getId, getLocation, getMetacardType, getMetadata, getModifiedDate, getResourceSize, getResourceURI, getSourceId, getTags, getThumbnail, getTitle, setAttribute, setSourceId
public MetacardVersionImpl(String id, Metacard sourceMetacard, MetacardVersion.Action action, org.apache.shiro.subject.Subject subject)
Metacard
to a MetacardVersionImpl
by cloning it and
adding the current subject, time, and a random UUID. Cannot take a MetacardVersionImpl
as the sourceMetacard.sourceMetacard
- Metacard to clone and create a history item fromaction
- Which action was done to modify the metacardIllegalArgumentException
public MetacardVersionImpl(String id, Metacard sourceMetacard, MetacardVersion.Action action, org.apache.shiro.subject.Subject subject, List<MetacardType> types)
Metacard
to a MetacardVersionImpl
by cloning it and
adding the current subject, time, and a random UUID. Cannot take a MetacardVersionImpl
as the sourceMetacard. MetacardType
s list will affect whether the metacard type is stored by name or
entirely by serializing the type and storing it in the metacard.sourceMetacard
- Metacard to clone and create a history item fromaction
- Which action was done to modify the metacardtypes
- A list of currently defined types in the systemIllegalArgumentException
@Deprecated public Metacard getMetacard(List<MetacardType> types)
MetacardVersionImpl
to the original Metacard
public Metacard getMetacard()
MetacardVersionImpl
to the original Metacard
@Deprecated public static Metacard toMetacard(Metacard source, List<MetacardType> types)
public static Metacard toMetacard(Metacard source)
source
- The metacard to revertprotected static MetacardVersion toVersion(Metacard metacard)
public URI getVersionResourceUri()
public void setVersionResourceUri(String uri)
public void setVersionResourceUri(URI uri)
public String getVersionOfId()
public void setVersionOfId(String idHistory)
public Date getVersionedOn()
public void setVersionedOn(Date date)
public String getEditedBy()
public void setEditedBy(String editedBy)
public byte[] getVersionType()
public void setVersionType(String versionType)
public String getVersionTypeBinary()
public void setVersionTypeBinary(byte[] versionType)
public MetacardVersion.Action getAction()
public void setAction(MetacardVersion.Action action)
public static MetacardType getMetacardVersionType()
This work is licensed under a Creative Commons Attribution 4.0 International License.