001
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
036 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
037 PortalException.class, SystemException.class})
038 public interface DLAppHelperLocalService {
039
044
045
050 public java.lang.String getBeanIdentifier();
051
052
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 deleteFileEntry(
072 com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException;
075
076 public void deleteFolder(
077 com.liferay.portal.kernel.repository.model.Folder folder)
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 void getFileAsStream(long userId,
083 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
084 boolean incrementCounter)
085 throws com.liferay.portal.kernel.exception.SystemException;
086
087 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts(
089 long groupId, long folderId, int status)
090 throws com.liferay.portal.kernel.exception.SystemException;
091
092 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
093 public int getFileShortcutsCount(long groupId, long folderId, int status)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getNoAssetFileEntries();
098
099 public com.liferay.portlet.asset.model.AssetEntry updateAsset(long userId,
100 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
101 com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
102 long assetClassPk)
103 throws com.liferay.portal.kernel.exception.PortalException,
104 com.liferay.portal.kernel.exception.SystemException;
105
106 public com.liferay.portlet.asset.model.AssetEntry updateAsset(long userId,
107 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
108 com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
109 long[] assetCategoryIds, java.lang.String[] assetTagNames,
110 long[] assetLinkEntryIds)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 public void updateFileEntry(long userId,
115 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
116 com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
117 com.liferay.portal.service.ServiceContext serviceContext)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 public void updateFolder(
122 com.liferay.portal.kernel.repository.model.Folder folder,
123 com.liferay.portal.service.ServiceContext serviceContext)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException;
126
127 public void updateStatus(long userId,
128 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
129 com.liferay.portal.kernel.repository.model.FileVersion latestFileVersion,
130 int status,
131 java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
132 throws com.liferay.portal.kernel.exception.PortalException,
133 com.liferay.portal.kernel.exception.SystemException;
134 }