/** * 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.journal.service; import aQute.bnd.annotation.ProviderType; import com.liferay.osgi.util.ServiceTrackerFactory; import org.osgi.util.tracker.ServiceTracker; /** * Provides the remote service utility for JournalFolder. This utility wraps * {@link com.liferay.journal.service.impl.JournalFolderServiceImpl} and is the * primary 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 JournalFolderService * @see com.liferay.journal.service.base.JournalFolderServiceBaseImpl * @see com.liferay.journal.service.impl.JournalFolderServiceImpl * @generated */ @ProviderType public class JournalFolderServiceUtil { /* * NOTE FOR DEVELOPERS: * * Never modify this class directly. Add custom service methods to {@link com.liferay.journal.service.impl.JournalFolderServiceImpl} and rerun ServiceBuilder to regenerate this class. */ public static com.liferay.journal.model.JournalFolder addFolder( long groupId, long parentFolderId, java.lang.String name, java.lang.String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return getService() .addFolder(groupId, parentFolderId, name, description, serviceContext); } public static com.liferay.journal.model.JournalFolder fetchFolder( long folderId) throws com.liferay.portal.kernel.exception.PortalException { return getService().fetchFolder(folderId); } public static com.liferay.journal.model.JournalFolder getFolder( long folderId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getFolder(folderId); } public static com.liferay.journal.model.JournalFolder moveFolder( long folderId, long parentFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return getService().moveFolder(folderId, parentFolderId, serviceContext); } public static com.liferay.journal.model.JournalFolder moveFolderFromTrash( long folderId, long parentFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return getService() .moveFolderFromTrash(folderId, parentFolderId, serviceContext); } public static com.liferay.journal.model.JournalFolder moveFolderToTrash( long folderId) throws com.liferay.portal.kernel.exception.PortalException { return getService().moveFolderToTrash(folderId); } public static com.liferay.journal.model.JournalFolder updateFolder( long groupId, long folderId, long parentFolderId, java.lang.String name, java.lang.String description, boolean mergeWithParentFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return getService() .updateFolder(groupId, folderId, parentFolderId, name, description, mergeWithParentFolder, serviceContext); } public static com.liferay.journal.model.JournalFolder updateFolder( long groupId, long folderId, long parentFolderId, java.lang.String name, java.lang.String description, long[] ddmStructureIds, int restrictionType, boolean mergeWithParentFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return getService() .updateFolder(groupId, folderId, parentFolderId, name, description, ddmStructureIds, restrictionType, mergeWithParentFolder, serviceContext); } public static int getFoldersAndArticlesCount(long groupId, java.util.List<java.lang.Long> folderIds, int status) { return getService() .getFoldersAndArticlesCount(groupId, folderIds, status); } public static int getFoldersAndArticlesCount(long groupId, long folderId) { return getService().getFoldersAndArticlesCount(groupId, folderId); } public static int getFoldersAndArticlesCount(long groupId, long folderId, int status) { return getService().getFoldersAndArticlesCount(groupId, folderId, status); } public static int getFoldersAndArticlesCount(long groupId, long userId, long folderId, int status) { return getService() .getFoldersAndArticlesCount(groupId, userId, folderId, status); } public static int getFoldersCount(long groupId, long parentFolderId) { return getService().getFoldersCount(groupId, parentFolderId); } public static int getFoldersCount(long groupId, long parentFolderId, int status) { return getService().getFoldersCount(groupId, parentFolderId, status); } /** * Returns the OSGi service identifier. * * @return the OSGi service identifier */ public static java.lang.String getOSGiServiceIdentifier() { return getService().getOSGiServiceIdentifier(); } public static java.util.List<com.liferay.dynamic.data.mapping.model.DDMStructure> getDDMStructures( long[] groupIds, long folderId, int restrictionType) throws com.liferay.portal.kernel.exception.PortalException { return getService().getDDMStructures(groupIds, folderId, restrictionType); } public static java.util.List<java.lang.Long> getFolderIds(long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getFolderIds(groupId, folderId); } public static java.util.List<com.liferay.journal.model.JournalFolder> getFolders( long groupId) { return getService().getFolders(groupId); } public static java.util.List<com.liferay.journal.model.JournalFolder> getFolders( long groupId, long parentFolderId) { return getService().getFolders(groupId, parentFolderId); } public static java.util.List<com.liferay.journal.model.JournalFolder> getFolders( long groupId, long parentFolderId, int start, int end) { return getService().getFolders(groupId, parentFolderId, start, end); } public static java.util.List<com.liferay.journal.model.JournalFolder> getFolders( long groupId, long parentFolderId, int status) { return getService().getFolders(groupId, parentFolderId, status); } public static java.util.List<com.liferay.journal.model.JournalFolder> getFolders( long groupId, long parentFolderId, int status, int start, int end) { return getService() .getFolders(groupId, parentFolderId, status, start, end); } public static java.util.List<java.lang.Object> getFoldersAndArticles( long groupId, long folderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> obc) { return getService() .getFoldersAndArticles(groupId, folderId, start, end, obc); } public static java.util.List<java.lang.Object> getFoldersAndArticles( long groupId, long folderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> obc) { return getService() .getFoldersAndArticles(groupId, folderId, status, start, end, obc); } public static java.util.List<java.lang.Object> getFoldersAndArticles( long groupId, long userId, long folderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> obc) { return getService() .getFoldersAndArticles(groupId, userId, folderId, status, start, end, obc); } public static java.util.List<java.lang.Object> getFoldersAndArticles( long groupId, long userId, long folderId, int status, java.util.Locale locale, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> obc) { return getService() .getFoldersAndArticles(groupId, userId, folderId, status, locale, start, end, obc); } public static java.util.List<java.lang.Long> getSubfolderIds(long groupId, long folderId, boolean recurse) { return getService().getSubfolderIds(groupId, folderId, recurse); } public static java.util.List<com.liferay.dynamic.data.mapping.model.DDMStructure> searchDDMStructures( long companyId, long[] groupIds, long folderId, int restrictionType, java.lang.String keywords, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.dynamic.data.mapping.model.DDMStructure> obc) throws com.liferay.portal.kernel.exception.PortalException { return getService() .searchDDMStructures(companyId, groupIds, folderId, restrictionType, keywords, start, end, obc); } public static void deleteFolder(long folderId) throws com.liferay.portal.kernel.exception.PortalException { getService().deleteFolder(folderId); } public static void deleteFolder(long folderId, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException { getService().deleteFolder(folderId, includeTrashedEntries); } /** * @deprecated As of 4.0.0, replaced by {@link #getSubfolderIds(List, long, long, boolean)} */ @Deprecated public static void getSubfolderIds( java.util.List<java.lang.Long> folderIds, long groupId, long folderId) { getService().getSubfolderIds(folderIds, groupId, folderId); } public static void getSubfolderIds( java.util.List<java.lang.Long> folderIds, long groupId, long folderId, boolean recurse) { getService().getSubfolderIds(folderIds, groupId, folderId, recurse); } public static void restoreFolderFromTrash(long folderId) throws com.liferay.portal.kernel.exception.PortalException { getService().restoreFolderFromTrash(folderId); } public static void subscribe(long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException { getService().subscribe(groupId, folderId); } public static void unsubscribe(long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException { getService().unsubscribe(groupId, folderId); } public static JournalFolderService getService() { return _serviceTracker.getService(); } private static ServiceTracker<JournalFolderService, JournalFolderService> _serviceTracker = ServiceTrackerFactory.open(JournalFolderService.class); }