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 java.util.List;
import org.kgrid.shelf.ShelfException;

public interface CompoundDigitalObjectStore {

  List getChildren(String... relativeLocationParts);

  boolean isMetadata(String... relativeLocationParts);

  String getAbsoluteLocation(String... relativeLocationParts);

  ObjectNode getMetadata(String... relativeLocationParts);

  byte[] getBinary(String... relativeLocationParts);

  void createContainer(String... relativeLocationParts);

  void saveMetadata(JsonNode metadata, String... relativeLocationParts);

  void saveBinary(byte[] data, String... relativeLocationParts);

  void delete(String... relativeLocationParts) throws ShelfException;

  String createTransaction();

  void commitTransaction(String transactionID);

  void rollbackTransaction(String transactionID);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy