001    /**
002     * Copyright (c) 2000-2012 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.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.transaction.Isolation;
020    import com.liferay.portal.kernel.transaction.Propagation;
021    import com.liferay.portal.kernel.transaction.Transactional;
022    import com.liferay.portal.service.BaseLocalService;
023    
024    /**
025     * The interface for the d l app helper local service.
026     *
027     * <p>
028     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see DLAppHelperLocalServiceUtil
033     * @see com.liferay.portlet.documentlibrary.service.base.DLAppHelperLocalServiceBaseImpl
034     * @see com.liferay.portlet.documentlibrary.service.impl.DLAppHelperLocalServiceImpl
035     * @generated
036     */
037    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
038            PortalException.class, SystemException.class})
039    public interface DLAppHelperLocalService extends BaseLocalService {
040            /*
041             * NOTE FOR DEVELOPERS:
042             *
043             * Never modify or reference this interface directly. Always use {@link DLAppHelperLocalServiceUtil} to access the d l app helper local service. Add custom service methods to {@link com.liferay.portlet.documentlibrary.service.impl.DLAppHelperLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
044             */
045    
046            /**
047            * Returns the Spring bean ID for this bean.
048            *
049            * @return the Spring bean ID for this bean
050            */
051            public java.lang.String getBeanIdentifier();
052    
053            /**
054            * Sets the Spring bean ID for this bean.
055            *
056            * @param beanIdentifier the Spring bean ID for this bean
057            */
058            public void setBeanIdentifier(java.lang.String beanIdentifier);
059    
060            public void addFileEntry(long userId,
061                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
062                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
063                    com.liferay.portal.service.ServiceContext serviceContext)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException;
066    
067            public void addFolder(
068                    com.liferay.portal.kernel.repository.model.Folder folder,
069                    com.liferay.portal.service.ServiceContext serviceContext)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            public void cancelCheckOut(long userId,
074                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
075                    com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
076                    com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion,
077                    com.liferay.portal.kernel.repository.model.FileVersion draftFileVersion,
078                    com.liferay.portal.service.ServiceContext serviceContext)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException;
081    
082            public void checkAssetEntry(long userId,
083                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
084                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException;
087    
088            public void deleteFileEntry(
089                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException;
092    
093            public void deleteFolder(
094                    com.liferay.portal.kernel.repository.model.Folder folder)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException;
097    
098            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
099            public void getFileAsStream(long userId,
100                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
101                    boolean incrementCounter)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts(
106                    long groupId, long folderId, boolean active, int status)
107                    throws com.liferay.portal.kernel.exception.SystemException;
108    
109            /**
110            * @deprecated {@link #getFileShortcuts(long, long, boolean, int)}
111            */
112            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts(
114                    long groupId, long folderId, int status)
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118            public int getFileShortcutsCount(long groupId, long folderId,
119                    boolean active, int status)
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    
122            /**
123            * @deprecated {@link #getFileShortcutsCount(long, long, boolean, int)}
124            */
125            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126            public int getFileShortcutsCount(long groupId, long folderId, int status)
127                    throws com.liferay.portal.kernel.exception.SystemException;
128    
129            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130            public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getNoAssetFileEntries();
131    
132            public void moveFileEntry(
133                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
134                    throws com.liferay.portal.kernel.exception.PortalException,
135                            com.liferay.portal.kernel.exception.SystemException;
136    
137            public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryFromTrash(
138                    long userId,
139                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
140                    long newFolderId,
141                    com.liferay.portal.service.ServiceContext serviceContext)
142                    throws com.liferay.portal.kernel.exception.PortalException,
143                            com.liferay.portal.kernel.exception.SystemException;
144    
145            public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryToTrash(
146                    long userId,
147                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
148                    throws com.liferay.portal.kernel.exception.PortalException,
149                            com.liferay.portal.kernel.exception.SystemException;
150    
151            public com.liferay.portlet.documentlibrary.model.DLFileShortcut moveFileShortcutFromTrash(
152                    long userId,
153                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
154                    long newFolderId,
155                    com.liferay.portal.service.ServiceContext serviceContext)
156                    throws com.liferay.portal.kernel.exception.PortalException,
157                            com.liferay.portal.kernel.exception.SystemException;
158    
159            public com.liferay.portlet.documentlibrary.model.DLFileShortcut moveFileShortcutToTrash(
160                    long userId,
161                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException;
164    
165            public void moveFolder(
166                    com.liferay.portal.kernel.repository.model.Folder folder)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException;
169    
170            public com.liferay.portal.kernel.repository.model.Folder moveFolderFromTrash(
171                    long userId, com.liferay.portal.kernel.repository.model.Folder folder,
172                    long parentFolderId,
173                    com.liferay.portal.service.ServiceContext serviceContext)
174                    throws com.liferay.portal.kernel.exception.PortalException,
175                            com.liferay.portal.kernel.exception.SystemException;
176    
177            public com.liferay.portal.kernel.repository.model.Folder moveFolderToTrash(
178                    long userId, com.liferay.portal.kernel.repository.model.Folder folder)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException;
181    
182            public void restoreFileEntryFromTrash(long userId,
183                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
184                    throws com.liferay.portal.kernel.exception.PortalException,
185                            com.liferay.portal.kernel.exception.SystemException;
186    
187            public void restoreFileShortcutFromTrash(long userId,
188                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
189                    throws com.liferay.portal.kernel.exception.PortalException,
190                            com.liferay.portal.kernel.exception.SystemException;
191    
192            public void restoreFolderFromTrash(long userId,
193                    com.liferay.portal.kernel.repository.model.Folder folder)
194                    throws com.liferay.portal.kernel.exception.PortalException,
195                            com.liferay.portal.kernel.exception.SystemException;
196    
197            public com.liferay.portlet.asset.model.AssetEntry updateAsset(long userId,
198                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
199                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
200                    long assetClassPk)
201                    throws com.liferay.portal.kernel.exception.PortalException,
202                            com.liferay.portal.kernel.exception.SystemException;
203    
204            public com.liferay.portlet.asset.model.AssetEntry updateAsset(long userId,
205                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
206                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
207                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
208                    long[] assetLinkEntryIds)
209                    throws com.liferay.portal.kernel.exception.PortalException,
210                            com.liferay.portal.kernel.exception.SystemException;
211    
212            public void updateFileEntry(long userId,
213                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
214                    com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
215                    com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion,
216                    long assetClassPk)
217                    throws com.liferay.portal.kernel.exception.PortalException,
218                            com.liferay.portal.kernel.exception.SystemException;
219    
220            public void updateFileEntry(long userId,
221                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
222                    com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
223                    com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion,
224                    com.liferay.portal.service.ServiceContext serviceContext)
225                    throws com.liferay.portal.kernel.exception.PortalException,
226                            com.liferay.portal.kernel.exception.SystemException;
227    
228            public void updateFolder(
229                    com.liferay.portal.kernel.repository.model.Folder folder,
230                    com.liferay.portal.service.ServiceContext serviceContext)
231                    throws com.liferay.portal.kernel.exception.PortalException,
232                            com.liferay.portal.kernel.exception.SystemException;
233    
234            public void updateStatus(long userId,
235                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
236                    com.liferay.portal.kernel.repository.model.FileVersion latestFileVersion,
237                    int oldStatus, int newStatus,
238                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
239                    throws com.liferay.portal.kernel.exception.PortalException,
240                            com.liferay.portal.kernel.exception.SystemException;
241    
242            public void updateStatuses(com.liferay.portal.model.User user,
243                    java.util.List<java.lang.Object> dlFileEntriesAndDLFolders, int status)
244                    throws com.liferay.portal.kernel.exception.PortalException,
245                            com.liferay.portal.kernel.exception.SystemException;
246    }