001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service;
016    
017    import com.liferay.portal.kernel.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * The interface for the d l file entry remote service.
025     *
026     * <p>
027     * Never modify or reference this interface directly. Always use {@link DLFileEntryServiceUtil} to access the d l file entry remote service. Add custom service methods to {@link com.liferay.portlet.documentlibrary.service.impl.DLFileEntryServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
028     * </p>
029     *
030     * <p>
031     * 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.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see DLFileEntryServiceUtil
036     * @see com.liferay.portlet.documentlibrary.service.base.DLFileEntryServiceBaseImpl
037     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileEntryServiceImpl
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface DLFileEntryService {
043            public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
044                    long groupId, long folderId, java.lang.String name,
045                    java.lang.String title, java.lang.String description,
046                    java.lang.String changeLog, java.lang.String extraSettings,
047                    byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
048                    throws com.liferay.portal.kernel.exception.PortalException,
049                            com.liferay.portal.kernel.exception.SystemException;
050    
051            public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
052                    long groupId, long folderId, java.lang.String name,
053                    java.lang.String title, java.lang.String description,
054                    java.lang.String changeLog, java.lang.String extraSettings,
055                    java.io.File file,
056                    com.liferay.portal.service.ServiceContext serviceContext)
057                    throws com.liferay.portal.kernel.exception.PortalException,
058                            com.liferay.portal.kernel.exception.SystemException;
059    
060            public void deleteFileEntry(long groupId, long folderId,
061                    java.lang.String name)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException;
064    
065            public void deleteFileEntry(long groupId, long folderId,
066                    java.lang.String name, java.lang.String version)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException;
069    
070            public void deleteFileEntryByTitle(long groupId, long folderId,
071                    java.lang.String titleWithExtension)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException;
074    
075            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
076            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
077                    long groupId, long folderId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException;
080    
081            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
082            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
083                    long groupId, long folderId, int start, int end)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException;
086    
087            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
089                    long groupId, long folderId, int start, int end,
090                    com.liferay.portal.kernel.util.OrderByComparator obc)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException;
093    
094            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
095            public int getFileEntriesCount(long groupId, long folderId)
096                    throws com.liferay.portal.kernel.exception.PortalException,
097                            com.liferay.portal.kernel.exception.SystemException;
098    
099            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
101                    long groupId, long folderId, java.lang.String name)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException;
104    
105            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
107                    long groupId, long folderId, java.lang.String titleWithExtension)
108                    throws com.liferay.portal.kernel.exception.PortalException,
109                            com.liferay.portal.kernel.exception.SystemException;
110    
111            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
113                    java.lang.String uuid, long groupId)
114                    throws com.liferay.portal.kernel.exception.PortalException,
115                            com.liferay.portal.kernel.exception.SystemException;
116    
117            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118            public int getFoldersFileEntriesCount(long groupId,
119                    java.util.List<java.lang.Long> folderIds, int status)
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    
122            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
124                    long groupId, long userId, int start, int end)
125                    throws com.liferay.portal.kernel.exception.SystemException;
126    
127            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
129                    long groupId, long userId, int start, int end,
130                    com.liferay.portal.kernel.util.OrderByComparator obc)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134            public int getGroupFileEntriesCount(long groupId, long userId)
135                    throws com.liferay.portal.kernel.exception.SystemException;
136    
137            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138            public boolean hasFileEntryLock(long groupId, long folderId,
139                    java.lang.String name)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException;
142    
143            public com.liferay.portal.model.Lock lockFileEntry(long groupId,
144                    long folderId, java.lang.String name)
145                    throws com.liferay.portal.kernel.exception.PortalException,
146                            com.liferay.portal.kernel.exception.SystemException;
147    
148            public com.liferay.portal.model.Lock lockFileEntry(long groupId,
149                    long folderId, java.lang.String name, java.lang.String owner,
150                    long expirationTime)
151                    throws com.liferay.portal.kernel.exception.PortalException,
152                            com.liferay.portal.kernel.exception.SystemException;
153    
154            public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
155                    long groupId, long folderId, long newFolderId, java.lang.String name,
156                    com.liferay.portal.service.ServiceContext serviceContext)
157                    throws com.liferay.portal.kernel.exception.PortalException,
158                            com.liferay.portal.kernel.exception.SystemException;
159    
160            public com.liferay.portal.model.Lock refreshFileEntryLock(
161                    java.lang.String lockUuid, long expirationTime)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException;
164    
165            public void unlockFileEntry(long groupId, long folderId,
166                    java.lang.String name)
167                    throws com.liferay.portal.kernel.exception.SystemException;
168    
169            public void unlockFileEntry(long groupId, long folderId,
170                    java.lang.String name, java.lang.String lockUuid)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException;
173    
174            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
175                    long groupId, long folderId, java.lang.String name,
176                    java.lang.String sourceFileName, java.lang.String title,
177                    java.lang.String description, java.lang.String changeLog,
178                    boolean majorVersion, java.lang.String extraSettings, byte[] bytes,
179                    com.liferay.portal.service.ServiceContext serviceContext)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException;
182    
183            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
184                    long groupId, long folderId, java.lang.String name,
185                    java.lang.String sourceFileName, java.lang.String title,
186                    java.lang.String description, java.lang.String changeLog,
187                    boolean majorVersion, java.lang.String extraSettings,
188                    java.io.File file,
189                    com.liferay.portal.service.ServiceContext serviceContext)
190                    throws com.liferay.portal.kernel.exception.PortalException,
191                            com.liferay.portal.kernel.exception.SystemException;
192    
193            public boolean verifyFileEntryLock(long groupId, long folderId,
194                    java.lang.String name, java.lang.String lockUuid)
195                    throws com.liferay.portal.kernel.exception.PortalException,
196                            com.liferay.portal.kernel.exception.SystemException;
197    }