All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openprovenance.prov.service.core.memory.DocumentResourceInMemory Maven / Gradle / Ivy

package org.openprovenance.prov.service.core.memory;

import org.openprovenance.prov.model.Document;
import org.openprovenance.prov.storage.api.DocumentResource;
import org.openprovenance.prov.storage.api.ResourceIndex;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;


public class DocumentResourceInMemory implements DocumentResource {

    public Throwable getThrown() {
        return thrown;
    }

    public void setThrown(Throwable thrown) {
        this.thrown = thrown;
    }

    public Map getExtension() {
        return extension;
    }

    public void setExtension(Map extension) {
        this.extension = extension;
    }


    public String getVisibleId() {
        return visibleId;
    }

    public void setVisibleId(String visibleId) {
        this.visibleId = visibleId;
    }

    public String getStorageId() {
        return storageId;
    }

    public void setStorageId(String storageId) {
        this.storageId = storageId;
    }

    public Date getExpires() {
        return expires;
    }

    public void setExpires(Date expires) {
        this.expires = expires;
    }

    public ResourceIndex.StorageKind getKind() {
        return kind;
    }

    public void setKind(ResourceIndex.StorageKind kind) {
        this.kind = kind;
    }

    private String visibleId;
    private String storageId;
    private Date expires;
    private ResourceIndex.StorageKind kind;

    // transient
    public Throwable thrown;
    public Map extension = new HashMap<>();


    private Document doc;

    public Document document() {
        return doc;
    }

    public void setDocument(Document doc) {
        this.doc = doc;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy