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 import com.liferay.portal.service.BaseLocalService;
023
024
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface DLAppHelperLocalService extends BaseLocalService {
040
045
046
051 public java.lang.String getBeanIdentifier();
052
053
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 }