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

io.mosip.commons.khazana.spi.ObjectStoreAdapter Maven / Gradle / Ivy

There is a newer version: 1.3.0-beta.1
Show newest version
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