/modules/apps/fragment/fragment-api/src/main/java/com/liferay/fragment/service/FragmentEntryServiceUtil.java

https://github.com/igorbeslic/liferay-portal · Java · 334 lines · 220 code · 79 blank · 35 comment · 0 complexity · b180ccbf97f777147c996768a1058e02 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.fragment.service;
  15. import com.liferay.fragment.model.FragmentEntry;
  16. import com.liferay.portal.kernel.exception.PortalException;
  17. import com.liferay.portal.kernel.util.OrderByComparator;
  18. import java.util.List;
  19. /**
  20. * Provides the remote service utility for FragmentEntry. This utility wraps
  21. * <code>com.liferay.fragment.service.impl.FragmentEntryServiceImpl</code> and is an
  22. * access point for service operations in application layer code running on a
  23. * remote server. Methods of this service are expected to have security checks
  24. * based on the propagated JAAS credentials because this service can be
  25. * accessed remotely.
  26. *
  27. * @author Brian Wing Shun Chan
  28. * @see FragmentEntryService
  29. * @generated
  30. */
  31. public class FragmentEntryServiceUtil {
  32. /*
  33. * NOTE FOR DEVELOPERS:
  34. *
  35. * Never modify this class directly. Add custom service methods to <code>com.liferay.fragment.service.impl.FragmentEntryServiceImpl</code> and rerun ServiceBuilder to regenerate this class.
  36. */
  37. public static FragmentEntry addFragmentEntry(
  38. long groupId, long fragmentCollectionId, String fragmentEntryKey,
  39. String name, String css, String html, String js, boolean cacheable,
  40. String configuration, String icon, long previewFileEntryId,
  41. int type, String typeOptions, int status,
  42. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  43. throws PortalException {
  44. return getService().addFragmentEntry(
  45. groupId, fragmentCollectionId, fragmentEntryKey, name, css, html,
  46. js, cacheable, configuration, icon, previewFileEntryId, type,
  47. typeOptions, status, serviceContext);
  48. }
  49. public static FragmentEntry copyFragmentEntry(
  50. long groupId, long fragmentEntryId, long fragmentCollectionId,
  51. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  52. throws PortalException {
  53. return getService().copyFragmentEntry(
  54. groupId, fragmentEntryId, fragmentCollectionId, serviceContext);
  55. }
  56. public static void deleteFragmentEntries(long[] fragmentEntriesIds)
  57. throws PortalException {
  58. getService().deleteFragmentEntries(fragmentEntriesIds);
  59. }
  60. public static FragmentEntry deleteFragmentEntry(long fragmentEntryId)
  61. throws PortalException {
  62. return getService().deleteFragmentEntry(fragmentEntryId);
  63. }
  64. public static FragmentEntry fetchDraft(long primaryKey) {
  65. return getService().fetchDraft(primaryKey);
  66. }
  67. public static FragmentEntry fetchFragmentEntry(long fragmentEntryId)
  68. throws PortalException {
  69. return getService().fetchFragmentEntry(fragmentEntryId);
  70. }
  71. public static FragmentEntry getDraft(long primaryKey)
  72. throws PortalException {
  73. return getService().getDraft(primaryKey);
  74. }
  75. public static List<Object> getFragmentCompositionsAndFragmentEntries(
  76. long groupId, long fragmentCollectionId, int status, int start, int end,
  77. OrderByComparator<?> orderByComparator) {
  78. return getService().getFragmentCompositionsAndFragmentEntries(
  79. groupId, fragmentCollectionId, status, start, end,
  80. orderByComparator);
  81. }
  82. public static List<Object> getFragmentCompositionsAndFragmentEntries(
  83. long groupId, long fragmentCollectionId, String name, int status,
  84. int start, int end, OrderByComparator<?> orderByComparator) {
  85. return getService().getFragmentCompositionsAndFragmentEntries(
  86. groupId, fragmentCollectionId, name, status, start, end,
  87. orderByComparator);
  88. }
  89. public static int getFragmentCompositionsAndFragmentEntriesCount(
  90. long groupId, long fragmentCollectionId, int status) {
  91. return getService().getFragmentCompositionsAndFragmentEntriesCount(
  92. groupId, fragmentCollectionId, status);
  93. }
  94. public static int getFragmentCompositionsAndFragmentEntriesCount(
  95. long groupId, long fragmentCollectionId, String name, int status) {
  96. return getService().getFragmentCompositionsAndFragmentEntriesCount(
  97. groupId, fragmentCollectionId, name, status);
  98. }
  99. public static List<FragmentEntry> getFragmentEntries(
  100. long fragmentCollectionId) {
  101. return getService().getFragmentEntries(fragmentCollectionId);
  102. }
  103. public static List<FragmentEntry> getFragmentEntries(
  104. long groupId, long fragmentCollectionId, int start, int end) {
  105. return getService().getFragmentEntries(
  106. groupId, fragmentCollectionId, start, end);
  107. }
  108. public static List<FragmentEntry> getFragmentEntries(
  109. long groupId, long fragmentCollectionId, int start, int end,
  110. OrderByComparator<FragmentEntry> orderByComparator) {
  111. return getService().getFragmentEntries(
  112. groupId, fragmentCollectionId, start, end, orderByComparator);
  113. }
  114. public static List<FragmentEntry> getFragmentEntriesByName(
  115. long groupId, long fragmentCollectionId, String name, int start,
  116. int end, OrderByComparator<FragmentEntry> orderByComparator) {
  117. return getService().getFragmentEntriesByName(
  118. groupId, fragmentCollectionId, name, start, end, orderByComparator);
  119. }
  120. public static List<FragmentEntry> getFragmentEntriesByNameAndStatus(
  121. long groupId, long fragmentCollectionId, String name, int status,
  122. int start, int end,
  123. OrderByComparator<FragmentEntry> orderByComparator) {
  124. return getService().getFragmentEntriesByNameAndStatus(
  125. groupId, fragmentCollectionId, name, status, start, end,
  126. orderByComparator);
  127. }
  128. public static List<FragmentEntry> getFragmentEntriesByStatus(
  129. long groupId, long fragmentCollectionId, int status) {
  130. return getService().getFragmentEntriesByStatus(
  131. groupId, fragmentCollectionId, status);
  132. }
  133. public static List<FragmentEntry> getFragmentEntriesByStatus(
  134. long groupId, long fragmentCollectionId, int status, int start, int end,
  135. OrderByComparator<FragmentEntry> orderByComparator) {
  136. return getService().getFragmentEntriesByStatus(
  137. groupId, fragmentCollectionId, status, start, end,
  138. orderByComparator);
  139. }
  140. public static List<FragmentEntry> getFragmentEntriesByType(
  141. long groupId, long fragmentCollectionId, int type, int start, int end,
  142. OrderByComparator<FragmentEntry> orderByComparator) {
  143. return getService().getFragmentEntriesByType(
  144. groupId, fragmentCollectionId, type, start, end, orderByComparator);
  145. }
  146. public static List<FragmentEntry> getFragmentEntriesByTypeAndStatus(
  147. long groupId, long fragmentCollectionId, int type, int status) {
  148. return getService().getFragmentEntriesByTypeAndStatus(
  149. groupId, fragmentCollectionId, type, status);
  150. }
  151. public static List<FragmentEntry> getFragmentEntriesByTypeAndStatus(
  152. long groupId, long fragmentCollectionId, int type, int status,
  153. int start, int end,
  154. OrderByComparator<FragmentEntry> orderByComparator) {
  155. return getService().getFragmentEntriesByTypeAndStatus(
  156. groupId, fragmentCollectionId, type, status, start, end,
  157. orderByComparator);
  158. }
  159. public static int getFragmentEntriesCount(
  160. long groupId, long fragmentCollectionId) {
  161. return getService().getFragmentEntriesCount(
  162. groupId, fragmentCollectionId);
  163. }
  164. public static int getFragmentEntriesCountByName(
  165. long groupId, long fragmentCollectionId, String name) {
  166. return getService().getFragmentEntriesCountByName(
  167. groupId, fragmentCollectionId, name);
  168. }
  169. public static int getFragmentEntriesCountByNameAndStatus(
  170. long groupId, long fragmentCollectionId, String name, int status) {
  171. return getService().getFragmentEntriesCountByNameAndStatus(
  172. groupId, fragmentCollectionId, name, status);
  173. }
  174. public static int getFragmentEntriesCountByStatus(
  175. long groupId, long fragmentCollectionId, int status) {
  176. return getService().getFragmentEntriesCountByStatus(
  177. groupId, fragmentCollectionId, status);
  178. }
  179. public static int getFragmentEntriesCountByType(
  180. long groupId, long fragmentCollectionId, int type) {
  181. return getService().getFragmentEntriesCountByType(
  182. groupId, fragmentCollectionId, type);
  183. }
  184. public static int getFragmentEntriesCountByTypeAndStatus(
  185. long groupId, long fragmentCollectionId, int type, int status) {
  186. return getService().getFragmentEntriesCountByTypeAndStatus(
  187. groupId, fragmentCollectionId, type, status);
  188. }
  189. /**
  190. * Returns the OSGi service identifier.
  191. *
  192. * @return the OSGi service identifier
  193. */
  194. public static String getOSGiServiceIdentifier() {
  195. return getService().getOSGiServiceIdentifier();
  196. }
  197. public static String[] getTempFileNames(long groupId, String folderName)
  198. throws PortalException {
  199. return getService().getTempFileNames(groupId, folderName);
  200. }
  201. public static FragmentEntry moveFragmentEntry(
  202. long fragmentEntryId, long fragmentCollectionId)
  203. throws PortalException {
  204. return getService().moveFragmentEntry(
  205. fragmentEntryId, fragmentCollectionId);
  206. }
  207. public static FragmentEntry publishDraft(FragmentEntry draftFragmentEntry)
  208. throws PortalException {
  209. return getService().publishDraft(draftFragmentEntry);
  210. }
  211. public static FragmentEntry updateDraft(FragmentEntry draftFragmentEntry)
  212. throws PortalException {
  213. return getService().updateDraft(draftFragmentEntry);
  214. }
  215. public static FragmentEntry updateFragmentEntry(FragmentEntry fragmentEntry)
  216. throws PortalException {
  217. return getService().updateFragmentEntry(fragmentEntry);
  218. }
  219. public static FragmentEntry updateFragmentEntry(
  220. long fragmentEntryId, long previewFileEntryId)
  221. throws PortalException {
  222. return getService().updateFragmentEntry(
  223. fragmentEntryId, previewFileEntryId);
  224. }
  225. public static FragmentEntry updateFragmentEntry(
  226. long fragmentEntryId, long fragmentCollectionId, String name,
  227. String css, String html, String js, boolean cacheable,
  228. String configuration, String icon, long previewFileEntryId,
  229. int status)
  230. throws PortalException {
  231. return getService().updateFragmentEntry(
  232. fragmentEntryId, fragmentCollectionId, name, css, html, js,
  233. cacheable, configuration, icon, previewFileEntryId, status);
  234. }
  235. public static FragmentEntry updateFragmentEntry(
  236. long fragmentEntryId, long fragmentCollectionId, String name,
  237. String css, String html, String js, boolean cacheable,
  238. String configuration, String icon, long previewFileEntryId,
  239. String typeOptions, int status)
  240. throws PortalException {
  241. return getService().updateFragmentEntry(
  242. fragmentEntryId, fragmentCollectionId, name, css, html, js,
  243. cacheable, configuration, icon, previewFileEntryId, typeOptions,
  244. status);
  245. }
  246. public static FragmentEntry updateFragmentEntry(
  247. long fragmentEntryId, String name)
  248. throws PortalException {
  249. return getService().updateFragmentEntry(fragmentEntryId, name);
  250. }
  251. public static FragmentEntryService getService() {
  252. return _service;
  253. }
  254. private static volatile FragmentEntryService _service;
  255. }