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 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 }