com.liferay.message.boards.kernel.service.MBThreadServiceUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.portal.kernel Show documentation
Show all versions of com.liferay.portal.kernel Show documentation
Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.
/**
* 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 void deleteThread(long threadId)
throws com.liferay.portal.kernel.exception.PortalException {
getService().deleteThread(threadId);
}
public static java.util.List 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 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 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 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 int getGroupThreadsCount(long groupId, long userId,
java.util.Date modifiedDate, int status) {
return getService()
.getGroupThreadsCount(groupId, userId, modifiedDate, status);
}
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);
}
/**
* Returns the OSGi service identifier.
*
* @return the OSGi service identifier
*/
public static java.lang.String getOSGiServiceIdentifier() {
return getService().getOSGiServiceIdentifier();
}
public static java.util.List getThreads(
long groupId, long categoryId, int status, int start, int end) {
return getService().getThreads(groupId, categoryId, status, start, end);
}
public static int getThreadsCount(long groupId, long categoryId, int status) {
return getService().getThreadsCount(groupId, categoryId, status);
}
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.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 void restoreThreadFromTrash(long threadId)
throws com.liferay.portal.kernel.exception.PortalException {
getService().restoreThreadFromTrash(threadId);
}
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 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.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 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;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy