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

rapture.kernel.script.ScriptBlob Maven / Gradle / Ivy

The newest version!
/**
 * The MIT License (MIT)
 *
 * Copyright (C) 2011-2016 Incapture Technologies LLC
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

/**
 * This is an autogenerated file. You should not edit this file as any changes
 * will be overwritten.
 */
package rapture.kernel.script;

import java.util.List;
import java.util.Map;

import rapture.common.api.BlobApi;
import rapture.common.api.ScriptBlobApi;
import org.apache.log4j.Logger;
import rapture.common.exception.RaptureException;

import rapture.common.BlobContainer;
import rapture.common.RaptureFolderInfo;
import rapture.common.model.BlobRepoConfig;


@SuppressWarnings("all")
public class ScriptBlob extends KernelScriptImplBase implements ScriptBlobApi {
	private BlobApi api;
    private static final Logger log = Logger.getLogger(ScriptBlob.class);

	public ScriptBlob(BlobApi api) {
		this.api = api;
	}
	
	   @Override
	   public void createBlobRepo(String blobRepoUri,String config,String metaConfig) {	
	      api.createBlobRepo(callingCtx, blobRepoUri, config, metaConfig);   }

	   @Override
	   public BlobRepoConfig getBlobRepoConfig(String blobRepoUri) {	
	      BlobRepoConfig ret = api.getBlobRepoConfig(callingCtx, blobRepoUri);
	      return ret;   }

	   @Override
	   public List getBlobRepoConfigs() {	
	      List ret = api.getBlobRepoConfigs(callingCtx);
	      return ret;   }

	   @Override
	   public void deleteBlobRepo(String repoUri) {	
	      api.deleteBlobRepo(callingCtx, repoUri);   }

	   @Override
	   public Boolean blobRepoExists(String repoUri) {	
	      Boolean ret = api.blobRepoExists(callingCtx, repoUri);
	      return ret;   }

	   @Override
	   public Boolean blobExists(String blobUri) {	
	      Boolean ret = api.blobExists(callingCtx, blobUri);
	      return ret;   }

	   @Override
	   public void addBlobContent(String blobUri,byte[] content) {	
	      api.addBlobContent(callingCtx, blobUri, content);   }

	   @Override
	   public void putBlob(String blobUri,byte[] content,String contentType) {	
	      api.putBlob(callingCtx, blobUri, content, contentType);   }

	   @Override
	   public BlobContainer getBlob(String blobUri) {	
	      BlobContainer ret = api.getBlob(callingCtx, blobUri);
	      return ret;   }

	   @Override
	   public void deleteBlob(String blobUri) {	
	      api.deleteBlob(callingCtx, blobUri);   }

	   @Override
	   public Long getBlobSize(String blobUri) {	
	      Long ret = api.getBlobSize(callingCtx, blobUri);
	      return ret;   }

	   @Override
	   public void putBlobMetaData(String blobUri,Map metadata) {	
	      api.putBlobMetaData(callingCtx, blobUri, metadata);   }

	   @Override
	   public Map getBlobMetaData(String blobUri) {	
	      Map ret = api.getBlobMetaData(callingCtx, blobUri);
	      return ret;   }

	   @Override
	   public Map listBlobsByUriPrefix(String blobUri,int depth) {	
	      Map ret = api.listBlobsByUriPrefix(callingCtx, blobUri, depth);
	      return ret;   }

	   @Override
	   public List deleteBlobsByUriPrefix(String blobUri) {	
	      List ret = api.deleteBlobsByUriPrefix(callingCtx, blobUri);
	      return ret;   }


}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy