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.portlet.documentlibrary.service;
022:
023: /**
024: * <a href="DLFileEntryService.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This interface defines the service. The default implementation is
033: * <code>com.liferay.portlet.documentlibrary.service.impl.DLFileEntryServiceImpl</code>.
034: * Modify methods in that class and rerun ServiceBuilder to populate this class
035: * and all other generated classes.
036: * </p>
037: *
038: * <p>
039: * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.documentlibrary.service.DLFileEntryServiceFactory
045: * @see com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil
046: *
047: */
048: public interface DLFileEntryService {
049: public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
050: long folderId, java.lang.String name,
051: java.lang.String title, java.lang.String description,
052: java.lang.String[] tagsEntries,
053: java.lang.String extraSettings, byte[] byteArray,
054: boolean addCommunityPermissions, boolean addGuestPermissions)
055: throws java.rmi.RemoteException,
056: com.liferay.portal.SystemException,
057: com.liferay.portal.PortalException;
058:
059: public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
060: long folderId, java.lang.String name,
061: java.lang.String title, java.lang.String description,
062: java.lang.String[] tagsEntries,
063: java.lang.String extraSettings, byte[] byteArray,
064: java.lang.String[] communityPermissions,
065: java.lang.String[] guestPermissions)
066: throws java.rmi.RemoteException,
067: com.liferay.portal.SystemException,
068: com.liferay.portal.PortalException;
069:
070: public void deleteFileEntry(long folderId, java.lang.String name)
071: throws com.liferay.portal.SystemException,
072: com.liferay.portal.PortalException,
073: java.rmi.RemoteException;
074:
075: public void deleteFileEntry(long folderId, java.lang.String name,
076: double version) throws com.liferay.portal.SystemException,
077: com.liferay.portal.PortalException,
078: java.rmi.RemoteException;
079:
080: public void deleteFileEntryByTitle(long folderId,
081: java.lang.String titleWithExtension)
082: throws com.liferay.portal.SystemException,
083: com.liferay.portal.PortalException,
084: java.rmi.RemoteException;
085:
086: public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
087: long folderId, java.lang.String name)
088: throws java.rmi.RemoteException,
089: com.liferay.portal.SystemException,
090: com.liferay.portal.PortalException;
091:
092: public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
093: long folderId, java.lang.String titleWithExtension)
094: throws java.rmi.RemoteException,
095: com.liferay.portal.SystemException,
096: com.liferay.portal.PortalException;
097:
098: public void lockFileEntry(long folderId, java.lang.String name)
099: throws com.liferay.portal.SystemException,
100: com.liferay.portal.PortalException,
101: java.rmi.RemoteException;
102:
103: public void unlockFileEntry(long folderId, java.lang.String name)
104: throws com.liferay.portal.SystemException,
105: com.liferay.portal.PortalException,
106: java.rmi.RemoteException;
107:
108: public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
109: long folderId, long newFolderId, java.lang.String name,
110: java.lang.String sourceFileName, java.lang.String title,
111: java.lang.String description,
112: java.lang.String[] tagsEntries,
113: java.lang.String extraSettings, byte[] byteArray)
114: throws com.liferay.portal.SystemException,
115: com.liferay.portal.PortalException,
116: java.rmi.RemoteException;
117: }
|