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="DLFolderService.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.DLFolderServiceImpl</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.DLFolderServiceFactory
045: * @see com.liferay.portlet.documentlibrary.service.DLFolderServiceUtil
046: *
047: */
048: public interface DLFolderService {
049: public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
050: long plid, long parentFolderId, java.lang.String name,
051: java.lang.String description,
052: boolean addCommunityPermissions, boolean addGuestPermissions)
053: throws java.rmi.RemoteException,
054: com.liferay.portal.SystemException,
055: com.liferay.portal.PortalException;
056:
057: public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
058: long plid, long parentFolderId, java.lang.String name,
059: java.lang.String description,
060: java.lang.String[] communityPermissions,
061: java.lang.String[] guestPermissions)
062: throws java.rmi.RemoteException,
063: com.liferay.portal.SystemException,
064: com.liferay.portal.PortalException;
065:
066: public com.liferay.portlet.documentlibrary.model.DLFolder copyFolder(
067: long plid, long sourceFolderId, long parentFolderId,
068: java.lang.String name, java.lang.String description,
069: boolean addCommunityPermissions, boolean addGuestPermissions)
070: throws java.rmi.RemoteException,
071: com.liferay.portal.SystemException,
072: com.liferay.portal.PortalException;
073:
074: public void deleteFolder(long folderId)
075: throws java.rmi.RemoteException,
076: com.liferay.portal.SystemException,
077: com.liferay.portal.PortalException;
078:
079: public void deleteFolder(long groupId, long parentFolderId,
080: java.lang.String name) throws java.rmi.RemoteException,
081: com.liferay.portal.SystemException,
082: com.liferay.portal.PortalException;
083:
084: public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
085: long folderId) throws java.rmi.RemoteException,
086: com.liferay.portal.SystemException,
087: com.liferay.portal.PortalException;
088:
089: public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
090: long groupId, long parentFolderId, java.lang.String name)
091: throws java.rmi.RemoteException,
092: com.liferay.portal.SystemException,
093: com.liferay.portal.PortalException;
094:
095: public long getFolderId(long groupId, long parentFolderId,
096: java.lang.String name) throws java.rmi.RemoteException,
097: com.liferay.portal.SystemException,
098: com.liferay.portal.PortalException;
099:
100: public void reIndexSearch(long companyId)
101: throws java.rmi.RemoteException,
102: com.liferay.portal.SystemException,
103: com.liferay.portal.PortalException;
104:
105: public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
106: long folderId, long parentFolderId, java.lang.String name,
107: java.lang.String description)
108: throws java.rmi.RemoteException,
109: com.liferay.portal.SystemException,
110: com.liferay.portal.PortalException;
111: }
|