PageRenderTime 27ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/portal-kernel/src/com/liferay/document/library/kernel/service/DLFolderServiceWrapper.java

https://github.com/matethurzo/liferay-portal
Java | 422 lines | 303 code | 85 blank | 34 comment | 0 complexity | 386a126415aaa07dbec1e68ca99a5f6c MD5 | raw file
  1. /**
  2. * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
  3. *
  4. * This library is free software; you can redistribute it and/or modify it under
  5. * the terms of the GNU Lesser General Public License as published by the Free
  6. * Software Foundation; either version 2.1 of the License, or (at your option)
  7. * any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  11. * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  12. * details.
  13. */
  14. package com.liferay.document.library.kernel.service;
  15. import com.liferay.portal.kernel.service.ServiceWrapper;
  16. import org.osgi.annotation.versioning.ProviderType;
  17. /**
  18. * Provides a wrapper for {@link DLFolderService}.
  19. *
  20. * @author Brian Wing Shun Chan
  21. * @see DLFolderService
  22. * @generated
  23. */
  24. @ProviderType
  25. public class DLFolderServiceWrapper
  26. implements DLFolderService, ServiceWrapper<DLFolderService> {
  27. public DLFolderServiceWrapper(DLFolderService dlFolderService) {
  28. _dlFolderService = dlFolderService;
  29. }
  30. @Override
  31. public com.liferay.document.library.kernel.model.DLFolder addFolder(
  32. long groupId, long repositoryId, boolean mountPoint,
  33. long parentFolderId, String name, String description,
  34. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  35. throws com.liferay.portal.kernel.exception.PortalException {
  36. return _dlFolderService.addFolder(
  37. groupId, repositoryId, mountPoint, parentFolderId, name,
  38. description, serviceContext);
  39. }
  40. @Override
  41. public void deleteFolder(long folderId)
  42. throws com.liferay.portal.kernel.exception.PortalException {
  43. _dlFolderService.deleteFolder(folderId);
  44. }
  45. @Override
  46. public void deleteFolder(long folderId, boolean includeTrashedEntries)
  47. throws com.liferay.portal.kernel.exception.PortalException {
  48. _dlFolderService.deleteFolder(folderId, includeTrashedEntries);
  49. }
  50. @Override
  51. public void deleteFolder(long groupId, long parentFolderId, String name)
  52. throws com.liferay.portal.kernel.exception.PortalException {
  53. _dlFolderService.deleteFolder(groupId, parentFolderId, name);
  54. }
  55. @Override
  56. public java.util.List<Object> getFileEntriesAndFileShortcuts(
  57. long groupId, long folderId, int status, int start, int end)
  58. throws com.liferay.portal.kernel.exception.PortalException {
  59. return _dlFolderService.getFileEntriesAndFileShortcuts(
  60. groupId, folderId, status, start, end);
  61. }
  62. @Override
  63. public int getFileEntriesAndFileShortcutsCount(
  64. long groupId, long folderId, int status)
  65. throws com.liferay.portal.kernel.exception.PortalException {
  66. return _dlFolderService.getFileEntriesAndFileShortcutsCount(
  67. groupId, folderId, status);
  68. }
  69. @Override
  70. public int getFileEntriesAndFileShortcutsCount(
  71. long groupId, long folderId, int status, String[] mimeTypes)
  72. throws com.liferay.portal.kernel.exception.PortalException {
  73. return _dlFolderService.getFileEntriesAndFileShortcutsCount(
  74. groupId, folderId, status, mimeTypes);
  75. }
  76. @Override
  77. public com.liferay.document.library.kernel.model.DLFolder getFolder(
  78. long folderId)
  79. throws com.liferay.portal.kernel.exception.PortalException {
  80. return _dlFolderService.getFolder(folderId);
  81. }
  82. @Override
  83. public com.liferay.document.library.kernel.model.DLFolder getFolder(
  84. long groupId, long parentFolderId, String name)
  85. throws com.liferay.portal.kernel.exception.PortalException {
  86. return _dlFolderService.getFolder(groupId, parentFolderId, name);
  87. }
  88. @Override
  89. public java.util.List<Long> getFolderIds(long groupId, long folderId)
  90. throws com.liferay.portal.kernel.exception.PortalException {
  91. return _dlFolderService.getFolderIds(groupId, folderId);
  92. }
  93. @Override
  94. public java.util.List<com.liferay.document.library.kernel.model.DLFolder>
  95. getFolders(
  96. long groupId, long parentFolderId, int status,
  97. boolean includeMountfolders, int start, int end,
  98. com.liferay.portal.kernel.util.OrderByComparator
  99. <com.liferay.document.library.kernel.model.DLFolder> obc)
  100. throws com.liferay.portal.kernel.exception.PortalException {
  101. return _dlFolderService.getFolders(
  102. groupId, parentFolderId, status, includeMountfolders, start, end,
  103. obc);
  104. }
  105. @Override
  106. public java.util.List<com.liferay.document.library.kernel.model.DLFolder>
  107. getFolders(
  108. long groupId, long parentFolderId, int start, int end,
  109. com.liferay.portal.kernel.util.OrderByComparator
  110. <com.liferay.document.library.kernel.model.DLFolder> obc)
  111. throws com.liferay.portal.kernel.exception.PortalException {
  112. return _dlFolderService.getFolders(
  113. groupId, parentFolderId, start, end, obc);
  114. }
  115. @Override
  116. public java.util.List<Object> getFoldersAndFileEntriesAndFileShortcuts(
  117. long groupId, long folderId, int status,
  118. boolean includeMountFolders, int start, int end,
  119. com.liferay.portal.kernel.util.OrderByComparator<?> obc)
  120. throws com.liferay.portal.kernel.exception.PortalException {
  121. return _dlFolderService.getFoldersAndFileEntriesAndFileShortcuts(
  122. groupId, folderId, status, includeMountFolders, start, end, obc);
  123. }
  124. @Override
  125. public java.util.List<Object> getFoldersAndFileEntriesAndFileShortcuts(
  126. long groupId, long folderId, int status, String[] mimeTypes,
  127. boolean includeMountFolders, int start, int end,
  128. com.liferay.portal.kernel.util.OrderByComparator<?> obc)
  129. throws com.liferay.portal.kernel.exception.PortalException {
  130. return _dlFolderService.getFoldersAndFileEntriesAndFileShortcuts(
  131. groupId, folderId, status, mimeTypes, includeMountFolders, start,
  132. end, obc);
  133. }
  134. @Override
  135. public java.util.List<Object> getFoldersAndFileEntriesAndFileShortcuts(
  136. long groupId, long folderId, String[] mimeTypes,
  137. boolean includeMountFolders,
  138. com.liferay.portal.kernel.dao.orm.QueryDefinition<?>
  139. queryDefinition)
  140. throws com.liferay.portal.kernel.exception.PortalException {
  141. return _dlFolderService.getFoldersAndFileEntriesAndFileShortcuts(
  142. groupId, folderId, mimeTypes, includeMountFolders, queryDefinition);
  143. }
  144. @Override
  145. public int getFoldersAndFileEntriesAndFileShortcutsCount(
  146. long groupId, long folderId, int status,
  147. boolean includeMountFolders)
  148. throws com.liferay.portal.kernel.exception.PortalException {
  149. return _dlFolderService.getFoldersAndFileEntriesAndFileShortcutsCount(
  150. groupId, folderId, status, includeMountFolders);
  151. }
  152. @Override
  153. public int getFoldersAndFileEntriesAndFileShortcutsCount(
  154. long groupId, long folderId, int status, String[] mimeTypes,
  155. boolean includeMountFolders)
  156. throws com.liferay.portal.kernel.exception.PortalException {
  157. return _dlFolderService.getFoldersAndFileEntriesAndFileShortcutsCount(
  158. groupId, folderId, status, mimeTypes, includeMountFolders);
  159. }
  160. @Override
  161. public int getFoldersAndFileEntriesAndFileShortcutsCount(
  162. long groupId, long folderId, String[] mimeTypes,
  163. boolean includeMountFolders,
  164. com.liferay.portal.kernel.dao.orm.QueryDefinition<?>
  165. queryDefinition)
  166. throws com.liferay.portal.kernel.exception.PortalException {
  167. return _dlFolderService.getFoldersAndFileEntriesAndFileShortcutsCount(
  168. groupId, folderId, mimeTypes, includeMountFolders, queryDefinition);
  169. }
  170. @Override
  171. public int getFoldersCount(long groupId, long parentFolderId)
  172. throws com.liferay.portal.kernel.exception.PortalException {
  173. return _dlFolderService.getFoldersCount(groupId, parentFolderId);
  174. }
  175. @Override
  176. public int getFoldersCount(
  177. long groupId, long parentFolderId, int status,
  178. boolean includeMountfolders)
  179. throws com.liferay.portal.kernel.exception.PortalException {
  180. return _dlFolderService.getFoldersCount(
  181. groupId, parentFolderId, status, includeMountfolders);
  182. }
  183. @Override
  184. public java.util.List<com.liferay.document.library.kernel.model.DLFolder>
  185. getMountFolders(
  186. long groupId, long parentFolderId, int start, int end,
  187. com.liferay.portal.kernel.util.OrderByComparator
  188. <com.liferay.document.library.kernel.model.DLFolder> obc)
  189. throws com.liferay.portal.kernel.exception.PortalException {
  190. return _dlFolderService.getMountFolders(
  191. groupId, parentFolderId, start, end, obc);
  192. }
  193. @Override
  194. public int getMountFoldersCount(long groupId, long parentFolderId)
  195. throws com.liferay.portal.kernel.exception.PortalException {
  196. return _dlFolderService.getMountFoldersCount(groupId, parentFolderId);
  197. }
  198. /**
  199. * Returns the OSGi service identifier.
  200. *
  201. * @return the OSGi service identifier
  202. */
  203. @Override
  204. public String getOSGiServiceIdentifier() {
  205. return _dlFolderService.getOSGiServiceIdentifier();
  206. }
  207. /**
  208. * @deprecated As of Wilberforce (7.0.x), replaced by {@link
  209. #getSubfolderIds(List, long, long, boolean)}
  210. */
  211. @Deprecated
  212. @Override
  213. public void getSubfolderIds(
  214. java.util.List<Long> folderIds, long groupId, long folderId)
  215. throws com.liferay.portal.kernel.exception.PortalException {
  216. _dlFolderService.getSubfolderIds(folderIds, groupId, folderId);
  217. }
  218. @Override
  219. public void getSubfolderIds(
  220. java.util.List<Long> folderIds, long groupId, long folderId,
  221. boolean recurse)
  222. throws com.liferay.portal.kernel.exception.PortalException {
  223. _dlFolderService.getSubfolderIds(folderIds, groupId, folderId, recurse);
  224. }
  225. @Override
  226. public java.util.List<Long> getSubfolderIds(
  227. long groupId, long folderId, boolean recurse)
  228. throws com.liferay.portal.kernel.exception.PortalException {
  229. return _dlFolderService.getSubfolderIds(groupId, folderId, recurse);
  230. }
  231. @Override
  232. public boolean hasFolderLock(long folderId)
  233. throws com.liferay.portal.kernel.exception.PortalException {
  234. return _dlFolderService.hasFolderLock(folderId);
  235. }
  236. @Override
  237. public boolean hasInheritableLock(long folderId)
  238. throws com.liferay.portal.kernel.exception.PortalException {
  239. return _dlFolderService.hasInheritableLock(folderId);
  240. }
  241. @Override
  242. public boolean isFolderLocked(long folderId) {
  243. return _dlFolderService.isFolderLocked(folderId);
  244. }
  245. @Override
  246. public com.liferay.portal.kernel.lock.Lock lockFolder(long folderId)
  247. throws com.liferay.portal.kernel.exception.PortalException {
  248. return _dlFolderService.lockFolder(folderId);
  249. }
  250. @Override
  251. public com.liferay.portal.kernel.lock.Lock lockFolder(
  252. long folderId, String owner, boolean inheritable,
  253. long expirationTime)
  254. throws com.liferay.portal.kernel.exception.PortalException {
  255. return _dlFolderService.lockFolder(
  256. folderId, owner, inheritable, expirationTime);
  257. }
  258. @Override
  259. public com.liferay.document.library.kernel.model.DLFolder moveFolder(
  260. long folderId, long parentFolderId,
  261. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  262. throws com.liferay.portal.kernel.exception.PortalException {
  263. return _dlFolderService.moveFolder(
  264. folderId, parentFolderId, serviceContext);
  265. }
  266. @Override
  267. public com.liferay.portal.kernel.lock.Lock refreshFolderLock(
  268. String lockUuid, long companyId, long expirationTime)
  269. throws com.liferay.portal.kernel.exception.PortalException {
  270. return _dlFolderService.refreshFolderLock(
  271. lockUuid, companyId, expirationTime);
  272. }
  273. @Override
  274. public void unlockFolder(
  275. long groupId, long parentFolderId, String name, String lockUuid)
  276. throws com.liferay.portal.kernel.exception.PortalException {
  277. _dlFolderService.unlockFolder(groupId, parentFolderId, name, lockUuid);
  278. }
  279. @Override
  280. public void unlockFolder(long folderId, String lockUuid)
  281. throws com.liferay.portal.kernel.exception.PortalException {
  282. _dlFolderService.unlockFolder(folderId, lockUuid);
  283. }
  284. @Override
  285. public com.liferay.document.library.kernel.model.DLFolder updateFolder(
  286. long folderId, long parentFolderId, String name, String description,
  287. long defaultFileEntryTypeId, java.util.List<Long> fileEntryTypeIds,
  288. int restrictionType,
  289. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  290. throws com.liferay.portal.kernel.exception.PortalException {
  291. return _dlFolderService.updateFolder(
  292. folderId, parentFolderId, name, description, defaultFileEntryTypeId,
  293. fileEntryTypeIds, restrictionType, serviceContext);
  294. }
  295. /**
  296. * @deprecated As of Wilberforce (7.0.x), replaced by more general {@link
  297. #updateFolder(long, String, String, long, List, int,
  298. ServiceContext)}
  299. */
  300. @Deprecated
  301. @Override
  302. public com.liferay.document.library.kernel.model.DLFolder updateFolder(
  303. long folderId, String name, String description,
  304. long defaultFileEntryTypeId, java.util.List<Long> fileEntryTypeIds,
  305. boolean overrideFileEntryTypes,
  306. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  307. throws com.liferay.portal.kernel.exception.PortalException {
  308. return _dlFolderService.updateFolder(
  309. folderId, name, description, defaultFileEntryTypeId,
  310. fileEntryTypeIds, overrideFileEntryTypes, serviceContext);
  311. }
  312. @Override
  313. public com.liferay.document.library.kernel.model.DLFolder updateFolder(
  314. long folderId, String name, String description,
  315. long defaultFileEntryTypeId, java.util.List<Long> fileEntryTypeIds,
  316. int restrictionType,
  317. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  318. throws com.liferay.portal.kernel.exception.PortalException {
  319. return _dlFolderService.updateFolder(
  320. folderId, name, description, defaultFileEntryTypeId,
  321. fileEntryTypeIds, restrictionType, serviceContext);
  322. }
  323. @Override
  324. public boolean verifyInheritableLock(long folderId, String lockUuid)
  325. throws com.liferay.portal.kernel.exception.PortalException {
  326. return _dlFolderService.verifyInheritableLock(folderId, lockUuid);
  327. }
  328. @Override
  329. public DLFolderService getWrappedService() {
  330. return _dlFolderService;
  331. }
  332. @Override
  333. public void setWrappedService(DLFolderService dlFolderService) {
  334. _dlFolderService = dlFolderService;
  335. }
  336. private DLFolderService _dlFolderService;
  337. }