001    /**
002     * Copyright (c) 2000-2013 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 destinationFileVersion,
076                    com.liferay.portal.kernel.repository.model.FileVersion draftFileVersion,
077                    com.liferay.portal.service.ServiceContext serviceContext)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException;
080    
081            public void checkAssetEntry(long userId,
082                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
083                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException;
086    
087            public void deleteFileEntry(
088                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
089                    throws com.liferay.portal.kernel.exception.PortalException,
090                            com.liferay.portal.kernel.exception.SystemException;
091    
092            public void deleteFolder(
093                    com.liferay.portal.kernel.repository.model.Folder folder)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException;
096    
097            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
098            public void getFileAsStream(long userId,
099                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
100                    boolean incrementCounter)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts(
105                    long groupId, long folderId, int status)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109            public int getFileShortcutsCount(long groupId, long folderId, int status)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113            public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getNoAssetFileEntries();
114    
115            public void moveFileEntry(
116                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException;
119    
120            public void moveFolder(
121                    com.liferay.portal.kernel.repository.model.Folder folder)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException;
124    
125            public com.liferay.portlet.asset.model.AssetEntry updateAsset(long userId,
126                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
127                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
128                    long assetClassPk)
129                    throws com.liferay.portal.kernel.exception.PortalException,
130                            com.liferay.portal.kernel.exception.SystemException;
131    
132            public com.liferay.portlet.asset.model.AssetEntry updateAsset(long userId,
133                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
134                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
135                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
136                    long[] assetLinkEntryIds)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException;
139    
140            public void updateFileEntry(long userId,
141                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
142                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
143                    long assetClassPk)
144                    throws com.liferay.portal.kernel.exception.PortalException,
145                            com.liferay.portal.kernel.exception.SystemException;
146    
147            public void updateFileEntry(long userId,
148                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
149                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
150                    com.liferay.portal.service.ServiceContext serviceContext)
151                    throws com.liferay.portal.kernel.exception.PortalException,
152                            com.liferay.portal.kernel.exception.SystemException;
153    
154            public void updateFolder(
155                    com.liferay.portal.kernel.repository.model.Folder folder,
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 void updateStatus(long userId,
161                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
162                    com.liferay.portal.kernel.repository.model.FileVersion latestFileVersion,
163                    int status,
164                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
165                    throws com.liferay.portal.kernel.exception.PortalException,
166                            com.liferay.portal.kernel.exception.SystemException;
167    }