/portlets/webex-portlet/docroot/WEB-INF/service/com/liferay/meeting/webex/service/WebExSiteServiceClp.java
http://github.com/liferay/liferay-plugins · Java · 346 lines · 260 code · 69 blank · 17 comment · 21 complexity · daa0af8cdc6bbdea7bfe4173327b6d65 MD5 · raw file
- /**
- * 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.meeting.webex.service;
- import aQute.bnd.annotation.ProviderType;
- import com.liferay.portal.kernel.service.InvokableService;
- /**
- * @author Anant Singh
- * @generated
- */
- @ProviderType
- public class WebExSiteServiceClp implements WebExSiteService {
- public WebExSiteServiceClp(InvokableService invokableService) {
- _invokableService = invokableService;
- _methodName0 = "deleteWebExSite";
- _methodParameterTypes0 = new String[] { "long" };
- _methodName1 = "fetchSiteKeyWebExSite";
- _methodParameterTypes1 = new String[] { "long" };
- _methodName2 = "getWebExSite";
- _methodParameterTypes2 = new String[] { "long" };
- _methodName3 = "getWebExSitesCount";
- _methodParameterTypes3 = new String[] { "long" };
- _methodName5 = "getOSGiServiceIdentifier";
- _methodParameterTypes5 = new String[] { };
- _methodName6 = "getWebExSites";
- _methodParameterTypes6 = new String[] {
- "long", "int", "int",
- "com.liferay.portal.kernel.util.OrderByComparator"
- };
- _methodName7 = "addWebExSite";
- _methodParameterTypes7 = new String[] {
- "long", "java.lang.String", "java.lang.String",
- "java.lang.String", "java.lang.String", "java.lang.String",
- "long", "com.liferay.portal.kernel.service.ServiceContext"
- };
- _methodName8 = "updateWebExSite";
- _methodParameterTypes8 = new String[] {
- "long", "java.lang.String", "java.lang.String",
- "java.lang.String",
- "com.liferay.portal.kernel.service.ServiceContext"
- };
- }
- @Override
- public com.liferay.meeting.webex.model.WebExSite deleteWebExSite(
- long webExSiteId)
- throws com.liferay.portal.kernel.exception.PortalException {
- Object returnObj = null;
- try {
- returnObj = _invokableService.invokeMethod(_methodName0,
- _methodParameterTypes0, new Object[] { webExSiteId });
- }
- 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 RuntimeException) {
- throw (RuntimeException)t;
- }
- else {
- throw new RuntimeException(t.getClass().getName() +
- " is not a valid exception");
- }
- }
- return (com.liferay.meeting.webex.model.WebExSite)ClpSerializer.translateOutput(returnObj);
- }
- @Override
- public com.liferay.meeting.webex.model.WebExSite fetchSiteKeyWebExSite(
- long siteKey)
- throws com.liferay.portal.kernel.exception.PortalException {
- Object returnObj = null;
- try {
- returnObj = _invokableService.invokeMethod(_methodName1,
- _methodParameterTypes1, new Object[] { siteKey });
- }
- 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 RuntimeException) {
- throw (RuntimeException)t;
- }
- else {
- throw new RuntimeException(t.getClass().getName() +
- " is not a valid exception");
- }
- }
- return (com.liferay.meeting.webex.model.WebExSite)ClpSerializer.translateOutput(returnObj);
- }
- @Override
- public com.liferay.meeting.webex.model.WebExSite getWebExSite(
- long webExSiteId)
- throws com.liferay.portal.kernel.exception.PortalException {
- Object returnObj = null;
- try {
- returnObj = _invokableService.invokeMethod(_methodName2,
- _methodParameterTypes2, new Object[] { webExSiteId });
- }
- 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 RuntimeException) {
- throw (RuntimeException)t;
- }
- else {
- throw new RuntimeException(t.getClass().getName() +
- " is not a valid exception");
- }
- }
- return (com.liferay.meeting.webex.model.WebExSite)ClpSerializer.translateOutput(returnObj);
- }
- @Override
- public int getWebExSitesCount(long groupId) {
- Object returnObj = null;
- try {
- returnObj = _invokableService.invokeMethod(_methodName3,
- _methodParameterTypes3, new Object[] { groupId });
- }
- 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 ((Integer)returnObj).intValue();
- }
- @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 java.lang.String getOSGiServiceIdentifier() {
- Object returnObj = null;
- try {
- returnObj = _invokableService.invokeMethod(_methodName5,
- _methodParameterTypes5, 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 java.util.List<com.liferay.meeting.webex.model.WebExSite> getWebExSites(
- long groupId, int start, int end,
- com.liferay.portal.kernel.util.OrderByComparator obc) {
- Object returnObj = null;
- try {
- returnObj = _invokableService.invokeMethod(_methodName6,
- _methodParameterTypes6,
- new Object[] {
- groupId,
-
- start,
-
- end,
-
- ClpSerializer.translateInput(obc)
- });
- }
- 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.util.List<com.liferay.meeting.webex.model.WebExSite>)ClpSerializer.translateOutput(returnObj);
- }
- @Override
- public void addWebExSite(long groupId, java.lang.String name,
- java.lang.String apiURL, java.lang.String login,
- java.lang.String password, java.lang.String partnerKey, long siteKey,
- com.liferay.portal.kernel.service.ServiceContext serviceContext)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- _invokableService.invokeMethod(_methodName7,
- _methodParameterTypes7,
- new Object[] {
- groupId,
-
- ClpSerializer.translateInput(name),
-
- ClpSerializer.translateInput(apiURL),
-
- ClpSerializer.translateInput(login),
-
- ClpSerializer.translateInput(password),
-
- ClpSerializer.translateInput(partnerKey),
-
- siteKey,
-
- 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 RuntimeException) {
- throw (RuntimeException)t;
- }
- else {
- throw new RuntimeException(t.getClass().getName() +
- " is not a valid exception");
- }
- }
- }
- @Override
- public void updateWebExSite(long webExSiteId, java.lang.String apiURL,
- java.lang.String login, java.lang.String password,
- com.liferay.portal.kernel.service.ServiceContext serviceContext)
- throws com.liferay.portal.kernel.exception.PortalException {
- try {
- _invokableService.invokeMethod(_methodName8,
- _methodParameterTypes8,
- new Object[] {
- webExSiteId,
-
- ClpSerializer.translateInput(apiURL),
-
- ClpSerializer.translateInput(login),
-
- ClpSerializer.translateInput(password),
-
- 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 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 _methodName2;
- private String[] _methodParameterTypes2;
- private String _methodName3;
- private String[] _methodParameterTypes3;
- private String _methodName5;
- private String[] _methodParameterTypes5;
- private String _methodName6;
- private String[] _methodParameterTypes6;
- private String _methodName7;
- private String[] _methodParameterTypes7;
- private String _methodName8;
- private String[] _methodParameterTypes8;
- }