/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
- /**
- * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the Free
- * Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
- * details.
- */
- package com.liferay.fragment.service;
- import com.liferay.fragment.model.FragmentEntry;
- import com.liferay.portal.kernel.exception.PortalException;
- import com.liferay.portal.kernel.util.OrderByComparator;
- import java.util.List;
- /**
- * Provides the remote service utility for FragmentEntry. This utility wraps
- * <code>com.liferay.fragment.service.impl.FragmentEntryServiceImpl</code> and is an
- * access point for service operations in application layer code running on a
- * remote server. Methods of this service are expected to have security checks
- * based on the propagated JAAS credentials because this service can be
- * accessed remotely.
- *
- * @author Brian Wing Shun Chan
- * @see FragmentEntryService
- * @generated
- */
- public class FragmentEntryServiceUtil {
- /*
- * NOTE FOR DEVELOPERS:
- *
- * 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.
- */
- public static FragmentEntry addFragmentEntry(
- long groupId, long fragmentCollectionId, String fragmentEntryKey,
- String name, String css, String html, String js, boolean cacheable,
- String configuration, String icon, long previewFileEntryId,
- int type, String typeOptions, int status,
- com.liferay.portal.kernel.service.ServiceContext serviceContext)
- throws PortalException {
- return getService().addFragmentEntry(
- groupId, fragmentCollectionId, fragmentEntryKey, name, css, html,
- js, cacheable, configuration, icon, previewFileEntryId, type,
- typeOptions, status, serviceContext);
- }
- public static FragmentEntry copyFragmentEntry(
- long groupId, long fragmentEntryId, long fragmentCollectionId,
- com.liferay.portal.kernel.service.ServiceContext serviceContext)
- throws PortalException {
- return getService().copyFragmentEntry(
- groupId, fragmentEntryId, fragmentCollectionId, serviceContext);
- }
- public static void deleteFragmentEntries(long[] fragmentEntriesIds)
- throws PortalException {
- getService().deleteFragmentEntries(fragmentEntriesIds);
- }
- public static FragmentEntry deleteFragmentEntry(long fragmentEntryId)
- throws PortalException {
- return getService().deleteFragmentEntry(fragmentEntryId);
- }
- public static FragmentEntry fetchDraft(long primaryKey) {
- return getService().fetchDraft(primaryKey);
- }
- public static FragmentEntry fetchFragmentEntry(long fragmentEntryId)
- throws PortalException {
- return getService().fetchFragmentEntry(fragmentEntryId);
- }
- public static FragmentEntry getDraft(long primaryKey)
- throws PortalException {
- return getService().getDraft(primaryKey);
- }
- public static List<Object> getFragmentCompositionsAndFragmentEntries(
- long groupId, long fragmentCollectionId, int status, int start, int end,
- OrderByComparator<?> orderByComparator) {
- return getService().getFragmentCompositionsAndFragmentEntries(
- groupId, fragmentCollectionId, status, start, end,
- orderByComparator);
- }
- public static List<Object> getFragmentCompositionsAndFragmentEntries(
- long groupId, long fragmentCollectionId, String name, int status,
- int start, int end, OrderByComparator<?> orderByComparator) {
- return getService().getFragmentCompositionsAndFragmentEntries(
- groupId, fragmentCollectionId, name, status, start, end,
- orderByComparator);
- }
- public static int getFragmentCompositionsAndFragmentEntriesCount(
- long groupId, long fragmentCollectionId, int status) {
- return getService().getFragmentCompositionsAndFragmentEntriesCount(
- groupId, fragmentCollectionId, status);
- }
- public static int getFragmentCompositionsAndFragmentEntriesCount(
- long groupId, long fragmentCollectionId, String name, int status) {
- return getService().getFragmentCompositionsAndFragmentEntriesCount(
- groupId, fragmentCollectionId, name, status);
- }
- public static List<FragmentEntry> getFragmentEntries(
- long fragmentCollectionId) {
- return getService().getFragmentEntries(fragmentCollectionId);
- }
- public static List<FragmentEntry> getFragmentEntries(
- long groupId, long fragmentCollectionId, int start, int end) {
- return getService().getFragmentEntries(
- groupId, fragmentCollectionId, start, end);
- }
- public static List<FragmentEntry> getFragmentEntries(
- long groupId, long fragmentCollectionId, int start, int end,
- OrderByComparator<FragmentEntry> orderByComparator) {
- return getService().getFragmentEntries(
- groupId, fragmentCollectionId, start, end, orderByComparator);
- }
- public static List<FragmentEntry> getFragmentEntriesByName(
- long groupId, long fragmentCollectionId, String name, int start,
- int end, OrderByComparator<FragmentEntry> orderByComparator) {
- return getService().getFragmentEntriesByName(
- groupId, fragmentCollectionId, name, start, end, orderByComparator);
- }
- public static List<FragmentEntry> getFragmentEntriesByNameAndStatus(
- long groupId, long fragmentCollectionId, String name, int status,
- int start, int end,
- OrderByComparator<FragmentEntry> orderByComparator) {
- return getService().getFragmentEntriesByNameAndStatus(
- groupId, fragmentCollectionId, name, status, start, end,
- orderByComparator);
- }
- public static List<FragmentEntry> getFragmentEntriesByStatus(
- long groupId, long fragmentCollectionId, int status) {
- return getService().getFragmentEntriesByStatus(
- groupId, fragmentCollectionId, status);
- }
- public static List<FragmentEntry> getFragmentEntriesByStatus(
- long groupId, long fragmentCollectionId, int status, int start, int end,
- OrderByComparator<FragmentEntry> orderByComparator) {
- return getService().getFragmentEntriesByStatus(
- groupId, fragmentCollectionId, status, start, end,
- orderByComparator);
- }
- public static List<FragmentEntry> getFragmentEntriesByType(
- long groupId, long fragmentCollectionId, int type, int start, int end,
- OrderByComparator<FragmentEntry> orderByComparator) {
- return getService().getFragmentEntriesByType(
- groupId, fragmentCollectionId, type, start, end, orderByComparator);
- }
- public static List<FragmentEntry> getFragmentEntriesByTypeAndStatus(
- long groupId, long fragmentCollectionId, int type, int status) {
- return getService().getFragmentEntriesByTypeAndStatus(
- groupId, fragmentCollectionId, type, status);
- }
- public static List<FragmentEntry> getFragmentEntriesByTypeAndStatus(
- long groupId, long fragmentCollectionId, int type, int status,
- int start, int end,
- OrderByComparator<FragmentEntry> orderByComparator) {
- return getService().getFragmentEntriesByTypeAndStatus(
- groupId, fragmentCollectionId, type, status, start, end,
- orderByComparator);
- }
- public static int getFragmentEntriesCount(
- long groupId, long fragmentCollectionId) {
- return getService().getFragmentEntriesCount(
- groupId, fragmentCollectionId);
- }
- public static int getFragmentEntriesCountByName(
- long groupId, long fragmentCollectionId, String name) {
- return getService().getFragmentEntriesCountByName(
- groupId, fragmentCollectionId, name);
- }
- public static int getFragmentEntriesCountByNameAndStatus(
- long groupId, long fragmentCollectionId, String name, int status) {
- return getService().getFragmentEntriesCountByNameAndStatus(
- groupId, fragmentCollectionId, name, status);
- }
- public static int getFragmentEntriesCountByStatus(
- long groupId, long fragmentCollectionId, int status) {
- return getService().getFragmentEntriesCountByStatus(
- groupId, fragmentCollectionId, status);
- }
- public static int getFragmentEntriesCountByType(
- long groupId, long fragmentCollectionId, int type) {
- return getService().getFragmentEntriesCountByType(
- groupId, fragmentCollectionId, type);
- }
- public static int getFragmentEntriesCountByTypeAndStatus(
- long groupId, long fragmentCollectionId, int type, int status) {
- return getService().getFragmentEntriesCountByTypeAndStatus(
- groupId, fragmentCollectionId, type, status);
- }
- /**
- * Returns the OSGi service identifier.
- *
- * @return the OSGi service identifier
- */
- public static String getOSGiServiceIdentifier() {
- return getService().getOSGiServiceIdentifier();
- }
- public static String[] getTempFileNames(long groupId, String folderName)
- throws PortalException {
- return getService().getTempFileNames(groupId, folderName);
- }
- public static FragmentEntry moveFragmentEntry(
- long fragmentEntryId, long fragmentCollectionId)
- throws PortalException {
- return getService().moveFragmentEntry(
- fragmentEntryId, fragmentCollectionId);
- }
- public static FragmentEntry publishDraft(FragmentEntry draftFragmentEntry)
- throws PortalException {
- return getService().publishDraft(draftFragmentEntry);
- }
- public static FragmentEntry updateDraft(FragmentEntry draftFragmentEntry)
- throws PortalException {
- return getService().updateDraft(draftFragmentEntry);
- }
- public static FragmentEntry updateFragmentEntry(FragmentEntry fragmentEntry)
- throws PortalException {
- return getService().updateFragmentEntry(fragmentEntry);
- }
- public static FragmentEntry updateFragmentEntry(
- long fragmentEntryId, long previewFileEntryId)
- throws PortalException {
- return getService().updateFragmentEntry(
- fragmentEntryId, previewFileEntryId);
- }
- public static FragmentEntry updateFragmentEntry(
- long fragmentEntryId, long fragmentCollectionId, String name,
- String css, String html, String js, boolean cacheable,
- String configuration, String icon, long previewFileEntryId,
- int status)
- throws PortalException {
- return getService().updateFragmentEntry(
- fragmentEntryId, fragmentCollectionId, name, css, html, js,
- cacheable, configuration, icon, previewFileEntryId, status);
- }
- public static FragmentEntry updateFragmentEntry(
- long fragmentEntryId, long fragmentCollectionId, String name,
- String css, String html, String js, boolean cacheable,
- String configuration, String icon, long previewFileEntryId,
- String typeOptions, int status)
- throws PortalException {
- return getService().updateFragmentEntry(
- fragmentEntryId, fragmentCollectionId, name, css, html, js,
- cacheable, configuration, icon, previewFileEntryId, typeOptions,
- status);
- }
- public static FragmentEntry updateFragmentEntry(
- long fragmentEntryId, String name)
- throws PortalException {
- return getService().updateFragmentEntry(fragmentEntryId, name);
- }
- public static FragmentEntryService getService() {
- return _service;
- }
- private static volatile FragmentEntryService _service;
- }