/** * 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.message.boards.kernel.service; import aQute.bnd.annotation.ProviderType; import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; import com.liferay.portal.kernel.util.ReferenceRegistry; /** * Provides the remote service utility for MBThread. This utility wraps * {@link com.liferay.portlet.messageboards.service.impl.MBThreadServiceImpl} 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 MBThreadService * @see com.liferay.portlet.messageboards.service.base.MBThreadServiceBaseImpl * @see com.liferay.portlet.messageboards.service.impl.MBThreadServiceImpl * @generated */ @ProviderType public class MBThreadServiceUtil { /* * NOTE FOR DEVELOPERS: * * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.messageboards.service.impl.MBThreadServiceImpl} and rerun ServiceBuilder to regenerate this class. */ public static com.liferay.message.boards.kernel.model.MBThread moveThread( long categoryId, long threadId) throws com.liferay.portal.kernel.exception.PortalException { return getService().moveThread(categoryId, threadId); } public static com.liferay.message.boards.kernel.model.MBThread moveThreadFromTrash( long categoryId, long threadId) throws com.liferay.portal.kernel.exception.PortalException { return getService().moveThreadFromTrash(categoryId, threadId); } public static com.liferay.message.boards.kernel.model.MBThread moveThreadToTrash( long threadId) throws com.liferay.portal.kernel.exception.PortalException { return getService().moveThreadToTrash(threadId); } public static com.liferay.message.boards.kernel.model.MBThread splitThread( long messageId, java.lang.String subject, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return getService().splitThread(messageId, subject, serviceContext); } public static com.liferay.portal.kernel.lock.Lock lockThread(long threadId) throws com.liferay.portal.kernel.exception.PortalException { return getService().lockThread(threadId); } public static com.liferay.portal.kernel.search.Hits search(long groupId, long creatorUserId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException { return getService().search(groupId, creatorUserId, status, start, end); } public static com.liferay.portal.kernel.search.Hits search(long groupId, long creatorUserId, long startDate, long endDate, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException { return getService() .search(groupId, creatorUserId, startDate, endDate, status, start, end); } public static int getGroupThreadsCount(long groupId, long userId, int status) { return getService().getGroupThreadsCount(groupId, userId, status); } public static int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed) { return getService() .getGroupThreadsCount(groupId, userId, status, subscribed); } public static int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous) { return getService() .getGroupThreadsCount(groupId, userId, status, subscribed, includeAnonymous); } public static int getGroupThreadsCount(long groupId, long userId, java.util.Date modifiedDate, int status) { return getService() .getGroupThreadsCount(groupId, userId, modifiedDate, status); } public static int getThreadsCount(long groupId, long categoryId, int status) { return getService().getThreadsCount(groupId, categoryId, 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.message.boards.kernel.model.MBThread> getGroupThreads( long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous, int start, int end) throws com.liferay.portal.kernel.exception.PortalException { return getService() .getGroupThreads(groupId, userId, status, subscribed, includeAnonymous, start, end); } public static java.util.List<com.liferay.message.boards.kernel.model.MBThread> getGroupThreads( long groupId, long userId, int status, boolean subscribed, int start, int end) throws com.liferay.portal.kernel.exception.PortalException { return getService() .getGroupThreads(groupId, userId, status, subscribed, start, end); } public static java.util.List<com.liferay.message.boards.kernel.model.MBThread> getGroupThreads( long groupId, long userId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException { return getService().getGroupThreads(groupId, userId, status, start, end); } public static java.util.List<com.liferay.message.boards.kernel.model.MBThread> getGroupThreads( long groupId, long userId, java.util.Date modifiedDate, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException { return getService() .getGroupThreads(groupId, userId, modifiedDate, status, start, end); } public static java.util.List<com.liferay.message.boards.kernel.model.MBThread> getThreads( long groupId, long categoryId, int status, int start, int end) { return getService().getThreads(groupId, categoryId, status, start, end); } public static void deleteThread(long threadId) throws com.liferay.portal.kernel.exception.PortalException { getService().deleteThread(threadId); } public static void restoreThreadFromTrash(long threadId) throws com.liferay.portal.kernel.exception.PortalException { getService().restoreThreadFromTrash(threadId); } public static void unlockThread(long threadId) throws com.liferay.portal.kernel.exception.PortalException { getService().unlockThread(threadId); } public static MBThreadService getService() { if (_service == null) { _service = (MBThreadService)PortalBeanLocatorUtil.locate(MBThreadService.class.getName()); ReferenceRegistry.registerReference(MBThreadServiceUtil.class, "_service"); } return _service; } private static MBThreadService _service; }