All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.journal.service.http.JournalFolderServiceHttp Maven / Gradle / Ivy

There is a newer version: 7.0.162
Show newest version
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

package com.liferay.journal.service.http;

import com.liferay.journal.service.JournalFolderServiceUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.security.auth.HttpPrincipal;
import com.liferay.portal.kernel.service.http.TunnelUtil;
import com.liferay.portal.kernel.util.MethodHandler;
import com.liferay.portal.kernel.util.MethodKey;

/**
 * Provides the HTTP utility for the
 * JournalFolderServiceUtil service
 * utility. The
 * static methods of this class calls the same methods of the service utility.
 * However, the signatures are different because it requires an additional
 * HttpPrincipal parameter.
 *
 * 

* The benefits of using the HTTP utility is that it is fast and allows for * tunneling without the cost of serializing to text. The drawback is that it * only works with Java. *

* *

* Set the property tunnel.servlet.hosts.allowed in portal.properties to * configure security. *

* *

* The HTTP utility is only generated for remote services. *

* * @author Brian Wing Shun Chan * @generated */ public class JournalFolderServiceHttp { public static com.liferay.journal.model.JournalFolder addFolder( HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId, long parentFolderId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "addFolder", _addFolderParameterTypes0); MethodHandler methodHandler = new MethodHandler( methodKey, externalReferenceCode, groupId, parentFolderId, name, description, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.journal.model.JournalFolder)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static void deleteFolder(HttpPrincipal httpPrincipal, long folderId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "deleteFolder", _deleteFolderParameterTypes1); MethodHandler methodHandler = new MethodHandler( methodKey, folderId); try { TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static void deleteFolder( HttpPrincipal httpPrincipal, long folderId, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "deleteFolder", _deleteFolderParameterTypes2); MethodHandler methodHandler = new MethodHandler( methodKey, folderId, includeTrashedEntries); try { TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.journal.model.JournalFolder fetchFolder( HttpPrincipal httpPrincipal, long folderId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "fetchFolder", _fetchFolderParameterTypes3); MethodHandler methodHandler = new MethodHandler( methodKey, folderId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.journal.model.JournalFolder)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getDDMStructures( HttpPrincipal httpPrincipal, long[] groupIds, long folderId, int restrictionType) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getDDMStructures", _getDDMStructuresParameterTypes4); MethodHandler methodHandler = new MethodHandler( methodKey, groupIds, folderId, restrictionType); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List )returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getDDMStructures( HttpPrincipal httpPrincipal, long[] groupIds, long folderId, int restrictionType, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getDDMStructures", _getDDMStructuresParameterTypes5); MethodHandler methodHandler = new MethodHandler( methodKey, groupIds, folderId, restrictionType, orderByComparator); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List )returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.journal.model.JournalFolder getFolder( HttpPrincipal httpPrincipal, long folderId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFolder", _getFolderParameterTypes6); MethodHandler methodHandler = new MethodHandler( methodKey, folderId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.journal.model.JournalFolder)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.journal.model.JournalFolder getFolderByExternalReferenceCode( HttpPrincipal httpPrincipal, long groupId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFolderByExternalReferenceCode", _getFolderByExternalReferenceCodeParameterTypes7); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, externalReferenceCode); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.journal.model.JournalFolder)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getFolderIds( HttpPrincipal httpPrincipal, long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFolderIds", _getFolderIdsParameterTypes8); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, folderId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getFolders(HttpPrincipal httpPrincipal, long groupId) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFolders", _getFoldersParameterTypes9); MethodHandler methodHandler = new MethodHandler(methodKey, groupId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getFolders( HttpPrincipal httpPrincipal, long groupId, long parentFolderId) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFolders", _getFoldersParameterTypes10); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, parentFolderId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getFolders( HttpPrincipal httpPrincipal, long groupId, long parentFolderId, int status) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFolders", _getFoldersParameterTypes11); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, parentFolderId, status); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getFolders( HttpPrincipal httpPrincipal, long groupId, long parentFolderId, int start, int end) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFolders", _getFoldersParameterTypes12); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, parentFolderId, start, end); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getFolders( HttpPrincipal httpPrincipal, long groupId, long parentFolderId, int status, int start, int end) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFolders", _getFoldersParameterTypes13); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, parentFolderId, status, start, end); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getFoldersAndArticles( HttpPrincipal httpPrincipal, long groupId, long folderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFoldersAndArticles", _getFoldersAndArticlesParameterTypes14); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, folderId, status, start, end, orderByComparator); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getFoldersAndArticles( HttpPrincipal httpPrincipal, long groupId, long folderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFoldersAndArticles", _getFoldersAndArticlesParameterTypes15); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, folderId, start, end, orderByComparator); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getFoldersAndArticles( HttpPrincipal httpPrincipal, long groupId, long userId, long folderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFoldersAndArticles", _getFoldersAndArticlesParameterTypes16); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, userId, folderId, status, start, end, orderByComparator); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getFoldersAndArticles( HttpPrincipal httpPrincipal, long groupId, long userId, long folderId, int status, java.util.Locale locale, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFoldersAndArticles", _getFoldersAndArticlesParameterTypes17); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, userId, folderId, status, locale, start, end, orderByComparator); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getFoldersAndArticles( HttpPrincipal httpPrincipal, long groupId, long userId, long folderId, long ddmStructureId, int status, java.util.Locale locale, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFoldersAndArticles", _getFoldersAndArticlesParameterTypes18); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, userId, folderId, ddmStructureId, status, locale, start, end, orderByComparator); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static int getFoldersAndArticlesCount( HttpPrincipal httpPrincipal, long groupId, java.util.List folderIds, int status) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFoldersAndArticlesCount", _getFoldersAndArticlesCountParameterTypes19); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, folderIds, status); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return ((Integer)returnObj).intValue(); } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static int getFoldersAndArticlesCount( HttpPrincipal httpPrincipal, long groupId, long folderId) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFoldersAndArticlesCount", _getFoldersAndArticlesCountParameterTypes20); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, folderId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return ((Integer)returnObj).intValue(); } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static int getFoldersAndArticlesCount( HttpPrincipal httpPrincipal, long groupId, long folderId, int status) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFoldersAndArticlesCount", _getFoldersAndArticlesCountParameterTypes21); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, folderId, status); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return ((Integer)returnObj).intValue(); } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static int getFoldersAndArticlesCount( HttpPrincipal httpPrincipal, long groupId, long userId, long folderId, int status) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFoldersAndArticlesCount", _getFoldersAndArticlesCountParameterTypes22); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, userId, folderId, status); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return ((Integer)returnObj).intValue(); } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static int getFoldersAndArticlesCount( HttpPrincipal httpPrincipal, long groupId, long userId, long folderId, long ddmStructureId, int status) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFoldersAndArticlesCount", _getFoldersAndArticlesCountParameterTypes23); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, userId, folderId, ddmStructureId, status); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return ((Integer)returnObj).intValue(); } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static int getFoldersCount( HttpPrincipal httpPrincipal, long groupId, long parentFolderId) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFoldersCount", _getFoldersCountParameterTypes24); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, parentFolderId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return ((Integer)returnObj).intValue(); } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static int getFoldersCount( HttpPrincipal httpPrincipal, long groupId, long parentFolderId, int status) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getFoldersCount", _getFoldersCountParameterTypes25); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, parentFolderId, status); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return ((Integer)returnObj).intValue(); } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static void getSubfolderIds( HttpPrincipal httpPrincipal, java.util.List folderIds, long groupId, long folderId, boolean recurse) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getSubfolderIds", _getSubfolderIdsParameterTypes26); MethodHandler methodHandler = new MethodHandler( methodKey, folderIds, groupId, folderId, recurse); try { TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getSubfolderIds( HttpPrincipal httpPrincipal, long groupId, long folderId, boolean recurse) { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "getSubfolderIds", _getSubfolderIdsParameterTypes27); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, folderId, recurse); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.journal.model.JournalFolder moveFolder( HttpPrincipal httpPrincipal, long folderId, long parentFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "moveFolder", _moveFolderParameterTypes28); MethodHandler methodHandler = new MethodHandler( methodKey, folderId, parentFolderId, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.journal.model.JournalFolder)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.journal.model.JournalFolder moveFolderFromTrash( HttpPrincipal httpPrincipal, long folderId, long parentFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "moveFolderFromTrash", _moveFolderFromTrashParameterTypes29); MethodHandler methodHandler = new MethodHandler( methodKey, folderId, parentFolderId, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.journal.model.JournalFolder)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.journal.model.JournalFolder moveFolderToTrash( HttpPrincipal httpPrincipal, long folderId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "moveFolderToTrash", _moveFolderToTrashParameterTypes30); MethodHandler methodHandler = new MethodHandler( methodKey, folderId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.journal.model.JournalFolder)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static void restoreFolderFromTrash( HttpPrincipal httpPrincipal, long folderId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "restoreFolderFromTrash", _restoreFolderFromTrashParameterTypes31); MethodHandler methodHandler = new MethodHandler( methodKey, folderId); try { TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List searchDDMStructures( HttpPrincipal httpPrincipal, long companyId, long[] groupIds, long folderId, int restrictionType, String keywords, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "searchDDMStructures", _searchDDMStructuresParameterTypes32); MethodHandler methodHandler = new MethodHandler( methodKey, companyId, groupIds, folderId, restrictionType, keywords, start, end, orderByComparator); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List )returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static int searchDDMStructuresCount( HttpPrincipal httpPrincipal, long companyId, long[] groupIds, long folderId, int restrictionType, String keywords) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "searchDDMStructuresCount", _searchDDMStructuresCountParameterTypes33); MethodHandler methodHandler = new MethodHandler( methodKey, companyId, groupIds, folderId, restrictionType, keywords); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return ((Integer)returnObj).intValue(); } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static void subscribe( HttpPrincipal httpPrincipal, long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "subscribe", _subscribeParameterTypes34); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, folderId); try { TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static void unsubscribe( HttpPrincipal httpPrincipal, long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "unsubscribe", _unsubscribeParameterTypes35); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, folderId); try { TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.journal.model.JournalFolder updateFolder( HttpPrincipal httpPrincipal, long groupId, long folderId, long parentFolderId, String name, String description, boolean mergeWithParentFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "updateFolder", _updateFolderParameterTypes36); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, folderId, parentFolderId, name, description, mergeWithParentFolder, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.journal.model.JournalFolder)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.journal.model.JournalFolder updateFolder( HttpPrincipal httpPrincipal, long groupId, long folderId, long parentFolderId, String name, String description, long[] ddmStructureIds, int restrictionType, boolean mergeWithParentFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( JournalFolderServiceUtil.class, "updateFolder", _updateFolderParameterTypes37); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, folderId, parentFolderId, name, description, ddmStructureIds, restrictionType, mergeWithParentFolder, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.journal.model.JournalFolder)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } private static Log _log = LogFactoryUtil.getLog( JournalFolderServiceHttp.class); private static final Class[] _addFolderParameterTypes0 = new Class[] { String.class, long.class, long.class, String.class, String.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _deleteFolderParameterTypes1 = new Class[] { long.class }; private static final Class[] _deleteFolderParameterTypes2 = new Class[] { long.class, boolean.class }; private static final Class[] _fetchFolderParameterTypes3 = new Class[] { long.class }; private static final Class[] _getDDMStructuresParameterTypes4 = new Class[] {long[].class, long.class, int.class}; private static final Class[] _getDDMStructuresParameterTypes5 = new Class[] { long[].class, long.class, int.class, com.liferay.portal.kernel.util.OrderByComparator.class }; private static final Class[] _getFolderParameterTypes6 = new Class[] { long.class }; private static final Class[] _getFolderByExternalReferenceCodeParameterTypes7 = new Class[] { long.class, String.class }; private static final Class[] _getFolderIdsParameterTypes8 = new Class[] { long.class, long.class }; private static final Class[] _getFoldersParameterTypes9 = new Class[] { long.class }; private static final Class[] _getFoldersParameterTypes10 = new Class[] { long.class, long.class }; private static final Class[] _getFoldersParameterTypes11 = new Class[] { long.class, long.class, int.class }; private static final Class[] _getFoldersParameterTypes12 = new Class[] { long.class, long.class, int.class, int.class }; private static final Class[] _getFoldersParameterTypes13 = new Class[] { long.class, long.class, int.class, int.class, int.class }; private static final Class[] _getFoldersAndArticlesParameterTypes14 = new Class[] { long.class, long.class, int.class, int.class, int.class, com.liferay.portal.kernel.util.OrderByComparator.class }; private static final Class[] _getFoldersAndArticlesParameterTypes15 = new Class[] { long.class, long.class, int.class, int.class, com.liferay.portal.kernel.util.OrderByComparator.class }; private static final Class[] _getFoldersAndArticlesParameterTypes16 = new Class[] { long.class, long.class, long.class, int.class, int.class, int.class, com.liferay.portal.kernel.util.OrderByComparator.class }; private static final Class[] _getFoldersAndArticlesParameterTypes17 = new Class[] { long.class, long.class, long.class, int.class, java.util.Locale.class, int.class, int.class, com.liferay.portal.kernel.util.OrderByComparator.class }; private static final Class[] _getFoldersAndArticlesParameterTypes18 = new Class[] { long.class, long.class, long.class, long.class, int.class, java.util.Locale.class, int.class, int.class, com.liferay.portal.kernel.util.OrderByComparator.class }; private static final Class[] _getFoldersAndArticlesCountParameterTypes19 = new Class[] { long.class, java.util.List.class, int.class }; private static final Class[] _getFoldersAndArticlesCountParameterTypes20 = new Class[] { long.class, long.class }; private static final Class[] _getFoldersAndArticlesCountParameterTypes21 = new Class[] { long.class, long.class, int.class }; private static final Class[] _getFoldersAndArticlesCountParameterTypes22 = new Class[] { long.class, long.class, long.class, int.class }; private static final Class[] _getFoldersAndArticlesCountParameterTypes23 = new Class[] { long.class, long.class, long.class, long.class, int.class }; private static final Class[] _getFoldersCountParameterTypes24 = new Class[] {long.class, long.class}; private static final Class[] _getFoldersCountParameterTypes25 = new Class[] {long.class, long.class, int.class}; private static final Class[] _getSubfolderIdsParameterTypes26 = new Class[] { java.util.List.class, long.class, long.class, boolean.class }; private static final Class[] _getSubfolderIdsParameterTypes27 = new Class[] {long.class, long.class, boolean.class}; private static final Class[] _moveFolderParameterTypes28 = new Class[] { long.class, long.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _moveFolderFromTrashParameterTypes29 = new Class[] { long.class, long.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _moveFolderToTrashParameterTypes30 = new Class[] {long.class}; private static final Class[] _restoreFolderFromTrashParameterTypes31 = new Class[] {long.class}; private static final Class[] _searchDDMStructuresParameterTypes32 = new Class[] { long.class, long[].class, long.class, int.class, String.class, int.class, int.class, com.liferay.portal.kernel.util.OrderByComparator.class }; private static final Class[] _searchDDMStructuresCountParameterTypes33 = new Class[] { long.class, long[].class, long.class, int.class, String.class }; private static final Class[] _subscribeParameterTypes34 = new Class[] { long.class, long.class }; private static final Class[] _unsubscribeParameterTypes35 = new Class[] { long.class, long.class }; private static final Class[] _updateFolderParameterTypes36 = new Class[] { long.class, long.class, long.class, String.class, String.class, boolean.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _updateFolderParameterTypes37 = new Class[] { long.class, long.class, long.class, String.class, String.class, long[].class, int.class, boolean.class, com.liferay.portal.kernel.service.ServiceContext.class }; }