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

cn.hyperchain.sdk.service.FileMgrService Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
package cn.hyperchain.sdk.service;

import cn.hyperchain.sdk.account.Account;
import cn.hyperchain.sdk.exception.FileMgrException;
import cn.hyperchain.sdk.request.Request;
import cn.hyperchain.sdk.response.filemgr.FileDownloadResponse;
import cn.hyperchain.sdk.response.filemgr.FileExtraFromFileHashResponse;
import cn.hyperchain.sdk.response.filemgr.FileUpdateResponse;
import cn.hyperchain.sdk.response.filemgr.FileUploadResponse;
import cn.hyperchain.sdk.response.filemgr.FilePushResponse;
import cn.hyperchain.sdk.response.filemgr.FileExtraFromTxHashResponse;
import cn.hyperchain.sdk.service.params.FileUploadParams;

public interface FileMgrService {

    FileUploadResponse fileUpload(String filePath, String description, Account account, int... nodeIdList) throws FileMgrException;

    FileUploadResponse fileUpload(FileUploadParams params,int nodeId) throws FileMgrException;

    FileDownloadResponse fileDownload(String filePath, String txHash, Account account, int nodeId) throws FileMgrException;

    FileDownloadResponse fileDownload(String filePath, String fileHash, String fileOwner, Account account, int nodeId) throws FileMgrException;

    Request fileInfoUpdate(String fileHash, int[] nodeIdList, String[] userList, String description, Account account, int... nodeIds);

    Request filePush(String fileHash, int[] pushNodes, Account account, int nodeId);

    Request getFileExtraByFilter(String fileOwner, String fileHash, int... nodeIds);

    Request getFileExtraByTxHash(String txHash, int... nodeIds);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy