001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class DLAppHelperLocalServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static void addFileEntry(long userId,
059 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
060 com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
061 com.liferay.portal.service.ServiceContext serviceContext)
062 throws com.liferay.portal.kernel.exception.PortalException,
063 com.liferay.portal.kernel.exception.SystemException {
064 getService().addFileEntry(userId, fileEntry, fileVersion, serviceContext);
065 }
066
067 public static 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 getService().addFolder(folder, serviceContext);
073 }
074
075 public static void cancelCheckOut(long userId,
076 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
077 com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion,
078 com.liferay.portal.kernel.repository.model.FileVersion draftFileVersion,
079 com.liferay.portal.service.ServiceContext serviceContext)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException {
082 getService()
083 .cancelCheckOut(userId, fileEntry, destinationFileVersion,
084 draftFileVersion, serviceContext);
085 }
086
087 public static void checkAssetEntry(long userId,
088 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
089 com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException {
092 getService().checkAssetEntry(userId, fileEntry, fileVersion);
093 }
094
095 public static void deleteFileEntry(
096 com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
097 throws com.liferay.portal.kernel.exception.PortalException,
098 com.liferay.portal.kernel.exception.SystemException {
099 getService().deleteFileEntry(fileEntry);
100 }
101
102 public static void deleteFolder(
103 com.liferay.portal.kernel.repository.model.Folder folder)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException {
106 getService().deleteFolder(folder);
107 }
108
109 public static void getFileAsStream(long userId,
110 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
111 boolean incrementCounter)
112 throws com.liferay.portal.kernel.exception.SystemException {
113 getService().getFileAsStream(userId, fileEntry, incrementCounter);
114 }
115
116 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts(
117 long groupId, long folderId, int status)
118 throws com.liferay.portal.kernel.exception.SystemException {
119 return getService().getFileShortcuts(groupId, folderId, status);
120 }
121
122 public static int getFileShortcutsCount(long groupId, long folderId,
123 int status) throws com.liferay.portal.kernel.exception.SystemException {
124 return getService().getFileShortcutsCount(groupId, folderId, status);
125 }
126
127 public static java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getNoAssetFileEntries() {
128 return getService().getNoAssetFileEntries();
129 }
130
131 public static void moveFileEntry(
132 com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
133 throws com.liferay.portal.kernel.exception.PortalException,
134 com.liferay.portal.kernel.exception.SystemException {
135 getService().moveFileEntry(fileEntry);
136 }
137
138 public static void moveFolder(
139 com.liferay.portal.kernel.repository.model.Folder folder)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException {
142 getService().moveFolder(folder);
143 }
144
145 public static com.liferay.portlet.asset.model.AssetEntry updateAsset(
146 long userId,
147 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
148 com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
149 long assetClassPk)
150 throws com.liferay.portal.kernel.exception.PortalException,
151 com.liferay.portal.kernel.exception.SystemException {
152 return getService()
153 .updateAsset(userId, fileEntry, fileVersion, assetClassPk);
154 }
155
156 public static com.liferay.portlet.asset.model.AssetEntry updateAsset(
157 long userId,
158 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
159 com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
160 long[] assetCategoryIds, java.lang.String[] assetTagNames,
161 long[] assetLinkEntryIds)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException {
164 return getService()
165 .updateAsset(userId, fileEntry, fileVersion,
166 assetCategoryIds, assetTagNames, assetLinkEntryIds);
167 }
168
169 public static void updateFileEntry(long userId,
170 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
171 com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
172 long assetClassPk)
173 throws com.liferay.portal.kernel.exception.PortalException,
174 com.liferay.portal.kernel.exception.SystemException {
175 getService()
176 .updateFileEntry(userId, fileEntry, fileVersion, assetClassPk);
177 }
178
179 public static void updateFileEntry(long userId,
180 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
181 com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
182 com.liferay.portal.service.ServiceContext serviceContext)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 getService()
186 .updateFileEntry(userId, fileEntry, fileVersion, serviceContext);
187 }
188
189 public static void updateFolder(
190 com.liferay.portal.kernel.repository.model.Folder folder,
191 com.liferay.portal.service.ServiceContext serviceContext)
192 throws com.liferay.portal.kernel.exception.PortalException,
193 com.liferay.portal.kernel.exception.SystemException {
194 getService().updateFolder(folder, serviceContext);
195 }
196
197 public static void updateStatus(long userId,
198 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
199 com.liferay.portal.kernel.repository.model.FileVersion latestFileVersion,
200 int status,
201 java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
202 throws com.liferay.portal.kernel.exception.PortalException,
203 com.liferay.portal.kernel.exception.SystemException {
204 getService()
205 .updateStatus(userId, fileEntry, latestFileVersion, status,
206 workflowContext);
207 }
208
209 public static DLAppHelperLocalService getService() {
210 if (_service == null) {
211 _service = (DLAppHelperLocalService)PortalBeanLocatorUtil.locate(DLAppHelperLocalService.class.getName());
212
213 ReferenceRegistry.registerReference(DLAppHelperLocalServiceUtil.class,
214 "_service");
215 }
216
217 return _service;
218 }
219
220
223 public void setService(DLAppHelperLocalService service) {
224 }
225
226 private static DLAppHelperLocalService _service;
227 }