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

org.kgrid.shelf.repository.CompoundDigitalObjectStore Maven / Gradle / Ivy

package org.kgrid.shelf.repository;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.kgrid.shelf.ShelfException;

import java.net.URI;
import java.util.List;

public interface CompoundDigitalObjectStore {

  List getChildren();

  URI getAbsoluteLocation(URI relativeLocation);

  ObjectNode getMetadata(URI relativeLocation);

  byte[] getBinary(URI relativeLocation);

  void createContainer(URI relativeLocation);

  void saveMetadata(JsonNode metadata, URI relativeLocation);

  void saveBinary(byte[] data, URI relativeLocation);

  void delete(URI relativeLocation) throws ShelfException;

  String createTransaction();

  void commitTransaction(String transactionID);

  void rollbackTransaction(String transactionID);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy