/** * 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.knowledgebase.service; import com.liferay.portal.service.InvokableService; /** * @author Brian Wing Shun Chan * @generated */ public class KBArticleServiceClp implements KBArticleService { public KBArticleServiceClp(InvokableService invokableService) { _invokableService = invokableService; _methodName0 = "getBeanIdentifier"; _methodParameterTypes0 = new String[] { }; _methodName1 = "setBeanIdentifier"; _methodParameterTypes1 = new String[] { "java.lang.String" }; _methodName3 = "addKBArticle"; _methodParameterTypes3 = new String[] { "java.lang.String", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String[][]", "java.lang.String[][]", "com.liferay.portal.service.ServiceContext" }; _methodName4 = "addKBArticlesMarkdown"; _methodParameterTypes4 = new String[] { "long", "long", "java.lang.String", "boolean", "java.io.InputStream", "com.liferay.portal.service.ServiceContext" }; _methodName5 = "addTempAttachment"; _methodParameterTypes5 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.io.InputStream", "java.lang.String" }; _methodName6 = "deleteKBArticle"; _methodParameterTypes6 = new String[] { "long" }; _methodName7 = "deleteKBArticles"; _methodParameterTypes7 = new String[] { "long", "long[][]" }; _methodName8 = "deleteTempAttachment"; _methodParameterTypes8 = new String[] { "long", "long", "java.lang.String", "java.lang.String" }; _methodName9 = "fetchLatestKBArticle"; _methodParameterTypes9 = new String[] { "long", "int" }; _methodName10 = "getGroupKBArticles"; _methodParameterTypes10 = new String[] { "long", "int", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; _methodName11 = "getGroupKBArticlesCount"; _methodParameterTypes11 = new String[] { "long", "int" }; _methodName12 = "getGroupKBArticlesRSS"; _methodParameterTypes12 = new String[] { "int", "int", "java.lang.String", "java.lang.String", "com.liferay.portal.theme.ThemeDisplay" }; _methodName13 = "getKBArticle"; _methodParameterTypes13 = new String[] { "long", "int" }; _methodName14 = "getKBArticleAndAllDescendantKBArticles"; _methodParameterTypes14 = new String[] { "long", "long", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; _methodName15 = "getKBArticleAndAllDescendants"; _methodParameterTypes15 = new String[] { "long", "long", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; _methodName16 = "getKBArticleRSS"; _methodParameterTypes16 = new String[] { "long", "int", "int", "java.lang.String", "java.lang.String", "com.liferay.portal.theme.ThemeDisplay" }; _methodName17 = "getKBArticles"; _methodParameterTypes17 = new String[] { "long", "long", "int", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; _methodName18 = "getKBArticles"; _methodParameterTypes18 = new String[] { "long", "long[][]", "int", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; _methodName19 = "getKBArticles"; _methodParameterTypes19 = new String[] { "long", "long[][]", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; _methodName20 = "getKBArticlesCount"; _methodParameterTypes20 = new String[] { "long", "long", "int" }; _methodName21 = "getKBArticlesCount"; _methodParameterTypes21 = new String[] { "long", "long[][]", "int" }; _methodName22 = "getKBArticleSearchDisplay"; _methodParameterTypes22 = new String[] { "long", "java.lang.String", "java.lang.String", "int", "java.util.Date", "java.util.Date", "boolean", "int[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; _methodName23 = "getKBArticleVersions"; _methodParameterTypes23 = new String[] { "long", "long", "int", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; _methodName24 = "getKBArticleVersionsCount"; _methodParameterTypes24 = new String[] { "long", "long", "int" }; _methodName25 = "getLatestKBArticle"; _methodParameterTypes25 = new String[] { "long", "int" }; _methodName26 = "getSectionsKBArticles"; _methodParameterTypes26 = new String[] { "long", "java.lang.String[][]", "int", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; _methodName27 = "getSectionsKBArticlesCount"; _methodParameterTypes27 = new String[] { "long", "java.lang.String[][]", "int" }; _methodName28 = "getSiblingKBArticles"; _methodParameterTypes28 = new String[] { "long", "long", "int", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; _methodName29 = "getSiblingKBArticlesCount"; _methodParameterTypes29 = new String[] { "long", "long", "int" }; _methodName30 = "getTempAttachmentNames"; _methodParameterTypes30 = new String[] { "long", "java.lang.String" }; _methodName31 = "moveKBArticle"; _methodParameterTypes31 = new String[] { "long", "long", "long", "double" }; _methodName32 = "subscribeGroupKBArticles"; _methodParameterTypes32 = new String[] { "long", "java.lang.String" }; _methodName33 = "subscribeKBArticle"; _methodParameterTypes33 = new String[] { "long", "long" }; _methodName34 = "unsubscribeGroupKBArticles"; _methodParameterTypes34 = new String[] { "long", "java.lang.String" }; _methodName35 = "unsubscribeKBArticle"; _methodParameterTypes35 = new String[] { "long" }; _methodName36 = "updateKBArticle"; _methodParameterTypes36 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String[][]", "java.lang.String[][]", "long[][]", "com.liferay.portal.service.ServiceContext" }; _methodName37 = "updateKBArticlesPriorities"; _methodParameterTypes37 = new String[] { "long", "java.util.Map" }; } @Override public java.lang.String getBeanIdentifier() { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName0, _methodParameterTypes0, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (java.lang.String)ClpSerializer.translateOutput(returnObj); } @Override public void setBeanIdentifier(java.lang.String beanIdentifier) { try { _invokableService.invokeMethod(_methodName1, _methodParameterTypes1, new Object[] { ClpSerializer.translateInput(beanIdentifier) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } } @Override public java.lang.Object invokeMethod(java.lang.String name, java.lang.String[] parameterTypes, java.lang.Object[] arguments) throws java.lang.Throwable { throw new UnsupportedOperationException(); } @Override public com.liferay.knowledgebase.model.KBArticle addKBArticle( java.lang.String portletId, long parentResourceClassNameId, long parentResourcePrimKey, java.lang.String title, java.lang.String urlTitle, java.lang.String content, java.lang.String description, java.lang.String sourceURL, java.lang.String[] sections, java.lang.String[] selectedFileNames, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName3, _methodParameterTypes3, new Object[] { ClpSerializer.translateInput(portletId), parentResourceClassNameId, parentResourcePrimKey, ClpSerializer.translateInput(title), ClpSerializer.translateInput(urlTitle), ClpSerializer.translateInput(content), ClpSerializer.translateInput(description), ClpSerializer.translateInput(sourceURL), ClpSerializer.translateInput(sections), ClpSerializer.translateInput(selectedFileNames), ClpSerializer.translateInput(serviceContext) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (com.liferay.knowledgebase.model.KBArticle)ClpSerializer.translateOutput(returnObj); } @Override public int addKBArticlesMarkdown(long groupId, long parentKBFolderId, java.lang.String fileName, boolean prioritizeByNumericalPrefix, java.io.InputStream inputStream, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName4, _methodParameterTypes4, new Object[] { groupId, parentKBFolderId, ClpSerializer.translateInput(fileName), prioritizeByNumericalPrefix, ClpSerializer.translateInput(inputStream), ClpSerializer.translateInput(serviceContext) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return ((Integer)returnObj).intValue(); } @Override public void addTempAttachment(long groupId, long resourcePrimKey, java.lang.String fileName, java.lang.String tempFolderName, java.io.InputStream inputStream, java.lang.String mimeType) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { _invokableService.invokeMethod(_methodName5, _methodParameterTypes5, new Object[] { groupId, resourcePrimKey, ClpSerializer.translateInput(fileName), ClpSerializer.translateInput(tempFolderName), ClpSerializer.translateInput(inputStream), ClpSerializer.translateInput(mimeType) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } } @Override public com.liferay.knowledgebase.model.KBArticle deleteKBArticle( long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName6, _methodParameterTypes6, new Object[] { resourcePrimKey }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (com.liferay.knowledgebase.model.KBArticle)ClpSerializer.translateOutput(returnObj); } @Override public void deleteKBArticles(long groupId, long[] resourcePrimKeys) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { _invokableService.invokeMethod(_methodName7, _methodParameterTypes7, new Object[] { groupId, ClpSerializer.translateInput(resourcePrimKeys) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } } @Override public void deleteTempAttachment(long groupId, long resourcePrimKey, java.lang.String fileName, java.lang.String tempFolderName) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { _invokableService.invokeMethod(_methodName8, _methodParameterTypes8, new Object[] { groupId, resourcePrimKey, ClpSerializer.translateInput(fileName), ClpSerializer.translateInput(tempFolderName) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } } @Override public com.liferay.knowledgebase.model.KBArticle fetchLatestKBArticle( long resourcePrimKey, int status) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName9, _methodParameterTypes9, new Object[] { resourcePrimKey, status }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (com.liferay.knowledgebase.model.KBArticle)ClpSerializer.translateOutput(returnObj); } @Override public java.util.List<com.liferay.knowledgebase.model.KBArticle> getGroupKBArticles( long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName10, _methodParameterTypes10, new Object[] { groupId, status, start, end, ClpSerializer.translateInput(orderByComparator) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (java.util.List<com.liferay.knowledgebase.model.KBArticle>)ClpSerializer.translateOutput(returnObj); } @Override public int getGroupKBArticlesCount(long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName11, _methodParameterTypes11, new Object[] { groupId, status }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return ((Integer)returnObj).intValue(); } @Override public java.lang.String getGroupKBArticlesRSS(int status, int rssDelta, java.lang.String rssDisplayStyle, java.lang.String rssFormat, com.liferay.portal.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName12, _methodParameterTypes12, new Object[] { status, rssDelta, ClpSerializer.translateInput(rssDisplayStyle), ClpSerializer.translateInput(rssFormat), ClpSerializer.translateInput(themeDisplay) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (java.lang.String)ClpSerializer.translateOutput(returnObj); } @Override public com.liferay.knowledgebase.model.KBArticle getKBArticle( long resourcePrimKey, int version) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName13, _methodParameterTypes13, new Object[] { resourcePrimKey, version }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (com.liferay.knowledgebase.model.KBArticle)ClpSerializer.translateOutput(returnObj); } @Override public java.util.List<com.liferay.knowledgebase.model.KBArticle> getKBArticleAndAllDescendantKBArticles( long groupId, long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName14, _methodParameterTypes14, new Object[] { groupId, resourcePrimKey, status, ClpSerializer.translateInput(orderByComparator) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (java.util.List<com.liferay.knowledgebase.model.KBArticle>)ClpSerializer.translateOutput(returnObj); } @Override public java.util.List<com.liferay.knowledgebase.model.KBArticle> getKBArticleAndAllDescendants( long groupId, long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName15, _methodParameterTypes15, new Object[] { groupId, resourcePrimKey, status, ClpSerializer.translateInput(orderByComparator) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (java.util.List<com.liferay.knowledgebase.model.KBArticle>)ClpSerializer.translateOutput(returnObj); } @Override public java.lang.String getKBArticleRSS(long resourcePrimKey, int status, int rssDelta, java.lang.String rssDisplayStyle, java.lang.String rssFormat, com.liferay.portal.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName16, _methodParameterTypes16, new Object[] { resourcePrimKey, status, rssDelta, ClpSerializer.translateInput(rssDisplayStyle), ClpSerializer.translateInput(rssFormat), ClpSerializer.translateInput(themeDisplay) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (java.lang.String)ClpSerializer.translateOutput(returnObj); } @Override public java.util.List<com.liferay.knowledgebase.model.KBArticle> getKBArticles( long groupId, long parentResourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName17, _methodParameterTypes17, new Object[] { groupId, parentResourcePrimKey, status, start, end, ClpSerializer.translateInput(orderByComparator) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (java.util.List<com.liferay.knowledgebase.model.KBArticle>)ClpSerializer.translateOutput(returnObj); } @Override public java.util.List<com.liferay.knowledgebase.model.KBArticle> getKBArticles( long groupId, long[] resourcePrimKeys, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName18, _methodParameterTypes18, new Object[] { groupId, ClpSerializer.translateInput(resourcePrimKeys), status, start, end, ClpSerializer.translateInput(orderByComparator) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (java.util.List<com.liferay.knowledgebase.model.KBArticle>)ClpSerializer.translateOutput(returnObj); } @Override public java.util.List<com.liferay.knowledgebase.model.KBArticle> getKBArticles( long groupId, long[] resourcePrimKeys, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName19, _methodParameterTypes19, new Object[] { groupId, ClpSerializer.translateInput(resourcePrimKeys), status, ClpSerializer.translateInput(orderByComparator) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (java.util.List<com.liferay.knowledgebase.model.KBArticle>)ClpSerializer.translateOutput(returnObj); } @Override public int getKBArticlesCount(long groupId, long parentResourcePrimKey, int status) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName20, _methodParameterTypes20, new Object[] { groupId, parentResourcePrimKey, status }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return ((Integer)returnObj).intValue(); } @Override public int getKBArticlesCount(long groupId, long[] resourcePrimKeys, int status) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName21, _methodParameterTypes21, new Object[] { groupId, ClpSerializer.translateInput(resourcePrimKeys), status }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return ((Integer)returnObj).intValue(); } @Override public com.liferay.knowledgebase.model.KBArticleSearchDisplay getKBArticleSearchDisplay( long groupId, java.lang.String title, java.lang.String content, int status, java.util.Date startDate, java.util.Date endDate, boolean andOperator, int[] curStartValues, int cur, int delta, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName22, _methodParameterTypes22, new Object[] { groupId, ClpSerializer.translateInput(title), ClpSerializer.translateInput(content), status, ClpSerializer.translateInput(startDate), ClpSerializer.translateInput(endDate), andOperator, ClpSerializer.translateInput(curStartValues), cur, delta, ClpSerializer.translateInput(orderByComparator) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (com.liferay.knowledgebase.model.KBArticleSearchDisplay)ClpSerializer.translateOutput(returnObj); } @Override public java.util.List<com.liferay.knowledgebase.model.KBArticle> getKBArticleVersions( long groupId, long resourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName23, _methodParameterTypes23, new Object[] { groupId, resourcePrimKey, status, start, end, ClpSerializer.translateInput(orderByComparator) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (java.util.List<com.liferay.knowledgebase.model.KBArticle>)ClpSerializer.translateOutput(returnObj); } @Override public int getKBArticleVersionsCount(long groupId, long resourcePrimKey, int status) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName24, _methodParameterTypes24, new Object[] { groupId, resourcePrimKey, status }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return ((Integer)returnObj).intValue(); } @Override public com.liferay.knowledgebase.model.KBArticle getLatestKBArticle( long resourcePrimKey, int status) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName25, _methodParameterTypes25, new Object[] { resourcePrimKey, status }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (com.liferay.knowledgebase.model.KBArticle)ClpSerializer.translateOutput(returnObj); } @Override public java.util.List<com.liferay.knowledgebase.model.KBArticle> getSectionsKBArticles( long groupId, java.lang.String[] sections, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName26, _methodParameterTypes26, new Object[] { groupId, ClpSerializer.translateInput(sections), status, start, end, ClpSerializer.translateInput(orderByComparator) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (java.util.List<com.liferay.knowledgebase.model.KBArticle>)ClpSerializer.translateOutput(returnObj); } @Override public int getSectionsKBArticlesCount(long groupId, java.lang.String[] sections, int status) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName27, _methodParameterTypes27, new Object[] { groupId, ClpSerializer.translateInput(sections), status }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return ((Integer)returnObj).intValue(); } @Override public java.util.List<com.liferay.knowledgebase.model.KBArticle> getSiblingKBArticles( long groupId, long parentResourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName28, _methodParameterTypes28, new Object[] { groupId, parentResourcePrimKey, status, start, end, ClpSerializer.translateInput(orderByComparator) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (java.util.List<com.liferay.knowledgebase.model.KBArticle>)ClpSerializer.translateOutput(returnObj); } @Override public int getSiblingKBArticlesCount(long groupId, long parentResourcePrimKey, int status) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName29, _methodParameterTypes29, new Object[] { groupId, parentResourcePrimKey, status }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return ((Integer)returnObj).intValue(); } @Override public java.lang.String[] getTempAttachmentNames(long groupId, java.lang.String tempFolderName) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName30, _methodParameterTypes30, new Object[] { groupId, ClpSerializer.translateInput(tempFolderName) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (java.lang.String[])ClpSerializer.translateOutput(returnObj); } @Override public void moveKBArticle(long resourcePrimKey, long parentResourceClassNameId, long parentResourcePrimKey, double priority) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { _invokableService.invokeMethod(_methodName31, _methodParameterTypes31, new Object[] { resourcePrimKey, parentResourceClassNameId, parentResourcePrimKey, priority }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } } @Override public void subscribeGroupKBArticles(long groupId, java.lang.String portletId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { _invokableService.invokeMethod(_methodName32, _methodParameterTypes32, new Object[] { groupId, ClpSerializer.translateInput(portletId) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } } @Override public void subscribeKBArticle(long groupId, long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { _invokableService.invokeMethod(_methodName33, _methodParameterTypes33, new Object[] { groupId, resourcePrimKey }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } } @Override public void unsubscribeGroupKBArticles(long groupId, java.lang.String portletId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { _invokableService.invokeMethod(_methodName34, _methodParameterTypes34, new Object[] { groupId, ClpSerializer.translateInput(portletId) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } } @Override public void unsubscribeKBArticle(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { _invokableService.invokeMethod(_methodName35, _methodParameterTypes35, new Object[] { resourcePrimKey }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } } @Override public com.liferay.knowledgebase.model.KBArticle updateKBArticle( long resourcePrimKey, java.lang.String title, java.lang.String content, java.lang.String description, java.lang.String sourceURL, java.lang.String[] sections, java.lang.String[] selectedFileNames, long[] removeFileEntryIds, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName36, _methodParameterTypes36, new Object[] { resourcePrimKey, ClpSerializer.translateInput(title), ClpSerializer.translateInput(content), ClpSerializer.translateInput(description), ClpSerializer.translateInput(sourceURL), ClpSerializer.translateInput(sections), ClpSerializer.translateInput(selectedFileNames), ClpSerializer.translateInput(removeFileEntryIds), ClpSerializer.translateInput(serviceContext) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (com.liferay.knowledgebase.model.KBArticle)ClpSerializer.translateOutput(returnObj); } @Override public void updateKBArticlesPriorities(long groupId, java.util.Map<java.lang.Long, java.lang.Double> resourcePrimKeyToPriorityMap) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { _invokableService.invokeMethod(_methodName37, _methodParameterTypes37, new Object[] { groupId, ClpSerializer.translateInput(resourcePrimKeyToPriorityMap) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } } private InvokableService _invokableService; private String _methodName0; private String[] _methodParameterTypes0; private String _methodName1; private String[] _methodParameterTypes1; private String _methodName3; private String[] _methodParameterTypes3; private String _methodName4; private String[] _methodParameterTypes4; private String _methodName5; private String[] _methodParameterTypes5; private String _methodName6; private String[] _methodParameterTypes6; private String _methodName7; private String[] _methodParameterTypes7; private String _methodName8; private String[] _methodParameterTypes8; private String _methodName9; private String[] _methodParameterTypes9; private String _methodName10; private String[] _methodParameterTypes10; private String _methodName11; private String[] _methodParameterTypes11; private String _methodName12; private String[] _methodParameterTypes12; private String _methodName13; private String[] _methodParameterTypes13; private String _methodName14; private String[] _methodParameterTypes14; private String _methodName15; private String[] _methodParameterTypes15; private String _methodName16; private String[] _methodParameterTypes16; private String _methodName17; private String[] _methodParameterTypes17; private String _methodName18; private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; private String _methodName20; private String[] _methodParameterTypes20; private String _methodName21; private String[] _methodParameterTypes21; private String _methodName22; private String[] _methodParameterTypes22; private String _methodName23; private String[] _methodParameterTypes23; private String _methodName24; private String[] _methodParameterTypes24; private String _methodName25; private String[] _methodParameterTypes25; private String _methodName26; private String[] _methodParameterTypes26; private String _methodName27; private String[] _methodParameterTypes27; private String _methodName28; private String[] _methodParameterTypes28; private String _methodName29; private String[] _methodParameterTypes29; private String _methodName30; private String[] _methodParameterTypes30; private String _methodName31; private String[] _methodParameterTypes31; private String _methodName32; private String[] _methodParameterTypes32; private String _methodName33; private String[] _methodParameterTypes33; private String _methodName34; private String[] _methodParameterTypes34; private String _methodName35; private String[] _methodParameterTypes35; private String _methodName36; private String[] _methodParameterTypes36; private String _methodName37; private String[] _methodParameterTypes37; }