io.mosip.commons.khazana.spi.ObjectStoreAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of khazana Show documentation
Show all versions of khazana Show documentation
Provides the implementation class for the object store
package io.mosip.commons.khazana.spi;
import java.io.InputStream;
import java.util.List;
import java.util.Map;
import io.mosip.commons.khazana.dto.ObjectDto;
public interface ObjectStoreAdapter {
public InputStream getObject(String account, String container, String source, String process, String objectName);
public boolean exists(String account, String container, String source, String process, String objectName);
public boolean putObject(String account, String container, String source, String process, String objectName, InputStream data);
public Map addObjectMetaData(String account, String container, String source, String process, String objectName, Map metadata);
public Map addObjectMetaData(String account, String container, String source, String process, String objectName, String key, String value);
public Map getMetaData(String account, String container, String source, String process, String objectName);
public Integer incMetadata(String account, String container, String source, String process, String objectName, String metaDataKey);
public Integer decMetadata(String account, String container, String source, String process, String objectName, String metaDataKey);
public boolean deleteObject(String account, String container, String source, String process, String objectName);
public boolean removeContainer(String account, String container, String source, String process);
public boolean pack(String account, String container, String source, String process, String refId);
public List getAllObjects(String account, String container);
public Map addTags(String account, String container, Map tags);
public Map getTags(String account, String container);
public void deleteTags(String account, String container, List tags);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy