001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.documentlibrary.service;
022:
023: import com.liferay.portal.PortalException;
024: import com.liferay.portal.SystemException;
025:
026: import java.io.File;
027:
028: import java.rmi.RemoteException;
029:
030: /**
031: * <a href="DLService.java.html"><b><i>View Source</i></b></a>
032: *
033: * @author Brian Wing Shun Chan
034: *
035: */
036: public interface DLService {
037:
038: public void addDirectory(long companyId, long repositoryId,
039: String dirName) throws PortalException, RemoteException,
040: SystemException;
041:
042: public void addFile(long companyId, String portletId, long groupId,
043: long repositoryId, String fileName, String properties,
044: String[] tagsEntries, File file) throws PortalException,
045: RemoteException, SystemException;
046:
047: public void addFile(long companyId, String portletId, long groupId,
048: long repositoryId, String fileName, String properties,
049: String[] tagsEntries, byte[] byteArray)
050: throws PortalException, RemoteException, SystemException;
051:
052: public void deleteDirectory(long companyId, String portletId,
053: long repositoryId, String dirName) throws PortalException,
054: RemoteException, SystemException;
055:
056: public void deleteFile(long companyId, String portletId,
057: long repositoryId, String fileName) throws PortalException,
058: RemoteException, SystemException;
059:
060: public void deleteFile(long companyId, String portletId,
061: long repositoryId, String fileName, double versionNumber)
062: throws PortalException, RemoteException, SystemException;
063:
064: public byte[] getFile(long companyId, long repositoryId,
065: String fileName) throws PortalException, RemoteException,
066: SystemException;
067:
068: public byte[] getFile(long companyId, long repositoryId,
069: String fileName, double versionNumber)
070: throws PortalException, RemoteException, SystemException;
071:
072: public String[] getFileNames(long companyId, long repositoryId,
073: String dirName) throws PortalException, RemoteException,
074: SystemException;
075:
076: public long getFileSize(long companyId, long repositoryId,
077: String fileName) throws PortalException, RemoteException,
078: SystemException;
079:
080: public void reIndex(String[] ids) throws RemoteException,
081: SystemException;
082:
083: public void updateFile(long companyId, String portletId,
084: long groupId, long repositoryId, String fileName,
085: double versionNumber, String sourceFileName,
086: String properties, String[] tagsEntries, File file)
087: throws PortalException, RemoteException, SystemException;
088:
089: public void updateFile(long companyId, String portletId,
090: long groupId, long repositoryId, String fileName,
091: double versionNumber, String sourceFileName,
092: String properties, String[] tagsEntries, byte[] byteArray)
093: throws PortalException, RemoteException, SystemException;
094:
095: public void updateFile(long companyId, String portletId,
096: long groupId, long repositoryId, long newRepositoryId,
097: String fileName) throws PortalException, RemoteException,
098: SystemException;
099:
100: }
|