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    
023    /**
024     * The interface for the d l app helper local service.
025     *
026     * <p>
027     * 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.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see DLAppHelperLocalServiceUtil
032     * @see com.liferay.portlet.documentlibrary.service.base.DLAppHelperLocalServiceBaseImpl
033     * @see com.liferay.portlet.documentlibrary.service.impl.DLAppHelperLocalServiceImpl
034     * @generated
035     */
036    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
037            PortalException.class, SystemException.class})
038    public interface DLAppHelperLocalService {
039            /*
040             * NOTE FOR DEVELOPERS:
041             *
042             * 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.
043             */
044    
045            /**
046            * Returns the Spring bean ID for this bean.
047            *
048            * @return the Spring bean ID for this bean
049            */
050            public java.lang.String getBeanIdentifier();
051    
052            /**
053            * Sets the Spring bean ID for this bean.
054            *
055            * @param beanIdentifier the Spring bean ID for this bean
056            */
057            public void setBeanIdentifier(java.lang.String beanIdentifier);
058    
059            public void addFileEntry(long userId,
060                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
061                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
062                    com.liferay.portal.service.ServiceContext serviceContext)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException;
065    
066            public void addFolder(
067                    com.liferay.portal.kernel.repository.model.Folder folder,
068                    com.liferay.portal.service.ServiceContext serviceContext)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    
071            public void checkAssetEntry(long userId,
072                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
073                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException;
076    
077            public void deleteFileEntry(
078                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException;
081    
082            public void deleteFolder(
083                    com.liferay.portal.kernel.repository.model.Folder folder)
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 void getFileAsStream(long userId,
089                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
090                    boolean incrementCounter)
091                    throws com.liferay.portal.kernel.exception.SystemException;
092    
093            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
094            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts(
095                    long groupId, long folderId, int status)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
099            public int getFileShortcutsCount(long groupId, long folderId, int status)
100                    throws com.liferay.portal.kernel.exception.SystemException;
101    
102            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103            public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getNoAssetFileEntries();
104    
105            public void moveFileEntry(
106                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
107                    throws com.liferay.portal.kernel.exception.PortalException,
108                            com.liferay.portal.kernel.exception.SystemException;
109    
110            public void moveFolder(
111                    com.liferay.portal.kernel.repository.model.Folder folder)
112                    throws com.liferay.portal.kernel.exception.PortalException,
113                            com.liferay.portal.kernel.exception.SystemException;
114    
115            public com.liferay.portlet.asset.model.AssetEntry updateAsset(long userId,
116                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
117                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
118                    long assetClassPk)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException;
121    
122            public com.liferay.portlet.asset.model.AssetEntry updateAsset(long userId,
123                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
124                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
125                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
126                    long[] assetLinkEntryIds)
127                    throws com.liferay.portal.kernel.exception.PortalException,
128                            com.liferay.portal.kernel.exception.SystemException;
129    
130            public void updateFileEntry(long userId,
131                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
132                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
133                    long assetClassPk)
134                    throws com.liferay.portal.kernel.exception.PortalException,
135                            com.liferay.portal.kernel.exception.SystemException;
136    
137            public void updateFileEntry(long userId,
138                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
139                    com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
140                    com.liferay.portal.service.ServiceContext serviceContext)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException;
143    
144            public void updateFolder(
145                    com.liferay.portal.kernel.repository.model.Folder folder,
146                    com.liferay.portal.service.ServiceContext serviceContext)
147                    throws com.liferay.portal.kernel.exception.PortalException,
148                            com.liferay.portal.kernel.exception.SystemException;
149    
150            public void updateStatus(long userId,
151                    com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
152                    com.liferay.portal.kernel.repository.model.FileVersion latestFileVersion,
153                    int status,
154                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
155                    throws com.liferay.portal.kernel.exception.PortalException,
156                            com.liferay.portal.kernel.exception.SystemException;
157    }