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

https://github.com/danielreuther/liferay-portal · Java · 446 lines · 323 code · 89 blank · 34 comment · 0 complexity · 108c7249bd091e5646f50be60deda292 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.document.library.kernel.model.DLFolder;
  16. import com.liferay.portal.kernel.service.ServiceWrapper;
  17. /**
  18. * Provides a wrapper for {@link DLFolderService}.
  19. *
  20. * @author Brian Wing Shun Chan
  21. * @see DLFolderService
  22. * @generated
  23. */
  24. public class DLFolderServiceWrapper
  25. implements DLFolderService, ServiceWrapper<DLFolderService> {
  26. public DLFolderServiceWrapper() {
  27. this(null);
  28. }
  29. public DLFolderServiceWrapper(DLFolderService dlFolderService) {
  30. _dlFolderService = dlFolderService;
  31. }
  32. @Override
  33. public DLFolder addFolder(
  34. long groupId, long repositoryId, boolean mountPoint,
  35. long parentFolderId, String name, String description,
  36. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  37. throws com.liferay.portal.kernel.exception.PortalException {
  38. return _dlFolderService.addFolder(
  39. groupId, repositoryId, mountPoint, parentFolderId, name,
  40. description, serviceContext);
  41. }
  42. @Override
  43. public void deleteFolder(long folderId)
  44. throws com.liferay.portal.kernel.exception.PortalException {
  45. _dlFolderService.deleteFolder(folderId);
  46. }
  47. @Override
  48. public void deleteFolder(long folderId, boolean includeTrashedEntries)
  49. throws com.liferay.portal.kernel.exception.PortalException {
  50. _dlFolderService.deleteFolder(folderId, includeTrashedEntries);
  51. }
  52. @Override
  53. public void deleteFolder(long groupId, long parentFolderId, String name)
  54. throws com.liferay.portal.kernel.exception.PortalException {
  55. _dlFolderService.deleteFolder(groupId, parentFolderId, name);
  56. }
  57. @Override
  58. public java.util.List<Object> getFileEntriesAndFileShortcuts(
  59. long groupId, long folderId, int status, int start, int end)
  60. throws com.liferay.portal.kernel.exception.PortalException {
  61. return _dlFolderService.getFileEntriesAndFileShortcuts(
  62. groupId, folderId, status, start, end);
  63. }
  64. @Override
  65. public int getFileEntriesAndFileShortcutsCount(
  66. long groupId, long folderId, int status)
  67. throws com.liferay.portal.kernel.exception.PortalException {
  68. return _dlFolderService.getFileEntriesAndFileShortcutsCount(
  69. groupId, folderId, status);
  70. }
  71. @Override
  72. public int getFileEntriesAndFileShortcutsCount(
  73. long groupId, long folderId, String[] mimeTypes, int status)
  74. throws com.liferay.portal.kernel.exception.PortalException {
  75. return _dlFolderService.getFileEntriesAndFileShortcutsCount(
  76. groupId, folderId, mimeTypes, status);
  77. }
  78. @Override
  79. public DLFolder getFolder(long folderId)
  80. throws com.liferay.portal.kernel.exception.PortalException {
  81. return _dlFolderService.getFolder(folderId);
  82. }
  83. @Override
  84. public DLFolder getFolder(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<DLFolder> getFolders(
  95. long groupId, long parentFolderId, boolean includeMountfolders,
  96. int status, int start, int end,
  97. com.liferay.portal.kernel.util.OrderByComparator<DLFolder>
  98. orderByComparator)
  99. throws com.liferay.portal.kernel.exception.PortalException {
  100. return _dlFolderService.getFolders(
  101. groupId, parentFolderId, includeMountfolders, status, start, end,
  102. orderByComparator);
  103. }
  104. @Override
  105. public java.util.List<DLFolder> getFolders(
  106. long groupId, long parentFolderId, int start, int end,
  107. com.liferay.portal.kernel.util.OrderByComparator<DLFolder>
  108. orderByComparator)
  109. throws com.liferay.portal.kernel.exception.PortalException {
  110. return _dlFolderService.getFolders(
  111. groupId, parentFolderId, start, end, orderByComparator);
  112. }
  113. @Override
  114. public java.util.List<Object> getFoldersAndFileEntriesAndFileShortcuts(
  115. long groupId, long folderId, boolean includeMountFolders,
  116. int status, int start, int end,
  117. com.liferay.portal.kernel.util.OrderByComparator<?>
  118. orderByComparator)
  119. throws com.liferay.portal.kernel.exception.PortalException {
  120. return _dlFolderService.getFoldersAndFileEntriesAndFileShortcuts(
  121. groupId, folderId, includeMountFolders, status, start, end,
  122. orderByComparator);
  123. }
  124. @Override
  125. public java.util.List<Object> getFoldersAndFileEntriesAndFileShortcuts(
  126. long groupId, long folderId, String[] mimeTypes,
  127. boolean includeMountFolders, int status, int start, int end,
  128. com.liferay.portal.kernel.util.OrderByComparator<?>
  129. orderByComparator)
  130. throws com.liferay.portal.kernel.exception.PortalException {
  131. return _dlFolderService.getFoldersAndFileEntriesAndFileShortcuts(
  132. groupId, folderId, mimeTypes, includeMountFolders, status, start,
  133. end, orderByComparator);
  134. }
  135. @Override
  136. public java.util.List<Object> getFoldersAndFileEntriesAndFileShortcuts(
  137. long groupId, long folderId, String[] mimeTypes,
  138. boolean includeMountFolders,
  139. com.liferay.portal.kernel.dao.orm.QueryDefinition<?>
  140. queryDefinition)
  141. throws com.liferay.portal.kernel.exception.PortalException {
  142. return _dlFolderService.getFoldersAndFileEntriesAndFileShortcuts(
  143. groupId, folderId, mimeTypes, includeMountFolders, queryDefinition);
  144. }
  145. @Override
  146. public java.util.List<Object> getFoldersAndFileEntriesAndFileShortcuts(
  147. long groupId, long folderId, String[] mimeTypes,
  148. long fileEntryTypeId, boolean includeMountFolders, int status,
  149. int start, int end,
  150. com.liferay.portal.kernel.util.OrderByComparator<?>
  151. orderByComparator)
  152. throws com.liferay.portal.kernel.exception.PortalException {
  153. return _dlFolderService.getFoldersAndFileEntriesAndFileShortcuts(
  154. groupId, folderId, mimeTypes, fileEntryTypeId, includeMountFolders,
  155. status, start, end, orderByComparator);
  156. }
  157. @Override
  158. public int getFoldersAndFileEntriesAndFileShortcutsCount(
  159. long groupId, long folderId, int status,
  160. boolean includeMountFolders)
  161. throws com.liferay.portal.kernel.exception.PortalException {
  162. return _dlFolderService.getFoldersAndFileEntriesAndFileShortcutsCount(
  163. groupId, folderId, status, includeMountFolders);
  164. }
  165. /**
  166. * @deprecated As of Athanasius (7.3.x), replaced by {@link
  167. #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
  168. String[], boolean, int)}
  169. */
  170. @Deprecated
  171. @Override
  172. public int getFoldersAndFileEntriesAndFileShortcutsCount(
  173. long groupId, long folderId, int status, String[] mimeTypes,
  174. boolean includeMountFolders)
  175. throws com.liferay.portal.kernel.exception.PortalException {
  176. return _dlFolderService.getFoldersAndFileEntriesAndFileShortcutsCount(
  177. groupId, folderId, status, mimeTypes, includeMountFolders);
  178. }
  179. @Override
  180. public int getFoldersAndFileEntriesAndFileShortcutsCount(
  181. long groupId, long folderId, String[] mimeTypes,
  182. boolean includeMountFolders, int status)
  183. throws com.liferay.portal.kernel.exception.PortalException {
  184. return _dlFolderService.getFoldersAndFileEntriesAndFileShortcutsCount(
  185. groupId, folderId, mimeTypes, includeMountFolders, status);
  186. }
  187. @Override
  188. public int getFoldersAndFileEntriesAndFileShortcutsCount(
  189. long groupId, long folderId, String[] mimeTypes,
  190. boolean includeMountFolders,
  191. com.liferay.portal.kernel.dao.orm.QueryDefinition<?>
  192. queryDefinition)
  193. throws com.liferay.portal.kernel.exception.PortalException {
  194. return _dlFolderService.getFoldersAndFileEntriesAndFileShortcutsCount(
  195. groupId, folderId, mimeTypes, includeMountFolders, queryDefinition);
  196. }
  197. @Override
  198. public int getFoldersAndFileEntriesAndFileShortcutsCount(
  199. long groupId, long folderId, String[] mimeTypes,
  200. long fileEntryTypeId, boolean includeMountFolders, int status)
  201. throws com.liferay.portal.kernel.exception.PortalException {
  202. return _dlFolderService.getFoldersAndFileEntriesAndFileShortcutsCount(
  203. groupId, folderId, mimeTypes, fileEntryTypeId, includeMountFolders,
  204. status);
  205. }
  206. @Override
  207. public int getFoldersCount(long groupId, long parentFolderId)
  208. throws com.liferay.portal.kernel.exception.PortalException {
  209. return _dlFolderService.getFoldersCount(groupId, parentFolderId);
  210. }
  211. @Override
  212. public int getFoldersCount(
  213. long groupId, long parentFolderId, boolean includeMountfolders,
  214. int status)
  215. throws com.liferay.portal.kernel.exception.PortalException {
  216. return _dlFolderService.getFoldersCount(
  217. groupId, parentFolderId, includeMountfolders, status);
  218. }
  219. /**
  220. * @deprecated As of Athanasius (7.3.x), replaced by {@link
  221. #getFoldersCount(long, long, boolean, int)}
  222. */
  223. @Deprecated
  224. @Override
  225. public int getFoldersCount(
  226. long groupId, long parentFolderId, int status,
  227. boolean includeMountfolders)
  228. throws com.liferay.portal.kernel.exception.PortalException {
  229. return _dlFolderService.getFoldersCount(
  230. groupId, parentFolderId, status, includeMountfolders);
  231. }
  232. @Override
  233. public java.util.List<DLFolder> getMountFolders(
  234. long groupId, long parentFolderId, int start, int end,
  235. com.liferay.portal.kernel.util.OrderByComparator<DLFolder>
  236. orderByComparator)
  237. throws com.liferay.portal.kernel.exception.PortalException {
  238. return _dlFolderService.getMountFolders(
  239. groupId, parentFolderId, start, end, orderByComparator);
  240. }
  241. @Override
  242. public int getMountFoldersCount(long groupId, long parentFolderId)
  243. throws com.liferay.portal.kernel.exception.PortalException {
  244. return _dlFolderService.getMountFoldersCount(groupId, parentFolderId);
  245. }
  246. /**
  247. * Returns the OSGi service identifier.
  248. *
  249. * @return the OSGi service identifier
  250. */
  251. @Override
  252. public String getOSGiServiceIdentifier() {
  253. return _dlFolderService.getOSGiServiceIdentifier();
  254. }
  255. @Override
  256. public void getSubfolderIds(
  257. java.util.List<Long> folderIds, long groupId, long folderId,
  258. boolean recurse)
  259. throws com.liferay.portal.kernel.exception.PortalException {
  260. _dlFolderService.getSubfolderIds(folderIds, groupId, folderId, recurse);
  261. }
  262. @Override
  263. public java.util.List<Long> getSubfolderIds(
  264. long groupId, long folderId, boolean recurse)
  265. throws com.liferay.portal.kernel.exception.PortalException {
  266. return _dlFolderService.getSubfolderIds(groupId, folderId, recurse);
  267. }
  268. @Override
  269. public boolean hasFolderLock(long folderId)
  270. throws com.liferay.portal.kernel.exception.PortalException {
  271. return _dlFolderService.hasFolderLock(folderId);
  272. }
  273. @Override
  274. public boolean hasInheritableLock(long folderId)
  275. throws com.liferay.portal.kernel.exception.PortalException {
  276. return _dlFolderService.hasInheritableLock(folderId);
  277. }
  278. @Override
  279. public boolean isFolderLocked(long folderId) {
  280. return _dlFolderService.isFolderLocked(folderId);
  281. }
  282. @Override
  283. public com.liferay.portal.kernel.lock.Lock lockFolder(long folderId)
  284. throws com.liferay.portal.kernel.exception.PortalException {
  285. return _dlFolderService.lockFolder(folderId);
  286. }
  287. @Override
  288. public com.liferay.portal.kernel.lock.Lock lockFolder(
  289. long folderId, String owner, boolean inheritable,
  290. long expirationTime)
  291. throws com.liferay.portal.kernel.exception.PortalException {
  292. return _dlFolderService.lockFolder(
  293. folderId, owner, inheritable, expirationTime);
  294. }
  295. @Override
  296. public DLFolder moveFolder(
  297. long folderId, long parentFolderId,
  298. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  299. throws com.liferay.portal.kernel.exception.PortalException {
  300. return _dlFolderService.moveFolder(
  301. folderId, parentFolderId, serviceContext);
  302. }
  303. @Override
  304. public com.liferay.portal.kernel.lock.Lock refreshFolderLock(
  305. String lockUuid, long companyId, long expirationTime)
  306. throws com.liferay.portal.kernel.exception.PortalException {
  307. return _dlFolderService.refreshFolderLock(
  308. lockUuid, companyId, expirationTime);
  309. }
  310. @Override
  311. public void unlockFolder(
  312. long groupId, long parentFolderId, String name, String lockUuid)
  313. throws com.liferay.portal.kernel.exception.PortalException {
  314. _dlFolderService.unlockFolder(groupId, parentFolderId, name, lockUuid);
  315. }
  316. @Override
  317. public void unlockFolder(long folderId, String lockUuid)
  318. throws com.liferay.portal.kernel.exception.PortalException {
  319. _dlFolderService.unlockFolder(folderId, lockUuid);
  320. }
  321. @Override
  322. public DLFolder updateFolder(
  323. long folderId, long parentFolderId, String name, String description,
  324. long defaultFileEntryTypeId, java.util.List<Long> fileEntryTypeIds,
  325. int restrictionType,
  326. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  327. throws com.liferay.portal.kernel.exception.PortalException {
  328. return _dlFolderService.updateFolder(
  329. folderId, parentFolderId, name, description, defaultFileEntryTypeId,
  330. fileEntryTypeIds, restrictionType, serviceContext);
  331. }
  332. @Override
  333. public DLFolder updateFolder(
  334. long folderId, String name, String description,
  335. long defaultFileEntryTypeId, java.util.List<Long> fileEntryTypeIds,
  336. int restrictionType,
  337. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  338. throws com.liferay.portal.kernel.exception.PortalException {
  339. return _dlFolderService.updateFolder(
  340. folderId, name, description, defaultFileEntryTypeId,
  341. fileEntryTypeIds, restrictionType, serviceContext);
  342. }
  343. @Override
  344. public boolean verifyInheritableLock(long folderId, String lockUuid)
  345. throws com.liferay.portal.kernel.exception.PortalException {
  346. return _dlFolderService.verifyInheritableLock(folderId, lockUuid);
  347. }
  348. @Override
  349. public DLFolderService getWrappedService() {
  350. return _dlFolderService;
  351. }
  352. @Override
  353. public void setWrappedService(DLFolderService dlFolderService) {
  354. _dlFolderService = dlFolderService;
  355. }
  356. private DLFolderService _dlFolderService;
  357. }