01: /**
02: * $Id: UploadDownloadFileManagerMBean.java,v 1.3 2005/09/08 23:37:52 ru111118 Exp $
03: * Copyright 2004 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.fabric.mbeans;
14:
15: import java.util.HashMap;
16: import com.sun.portal.admin.common.PSMBeanException;
17:
18: /**
19: * This interface declares methods to upload and download files.
20: */
21: public interface UploadDownloadFileManagerMBean {
22: public String[] initiateFileUpload(String fileName, Long fileSize)
23: throws PSMBeanException;
24:
25: public void uploadBytes(String uploadId, byte[] bytesToUpload)
26: throws PSMBeanException;
27:
28: public Object[] initiateFileDownload(String fileName)
29: throws PSMBeanException;
30:
31: public byte[] downloadBytes(String downloadId, Integer downloadSize)
32: throws PSMBeanException;
33:
34: public void cleanUp(String uploadId);
35:
36: }
|