--- /dev/null
+/**
+ * Copyright (c) 2000-2012 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.pentila.entSavoie.moteurDeRecherche.service;
+
+import com.liferay.portal.service.InvokableService;
+
+/**
+ * @author LECARPENTIER Cedric
+ */
+public class SearchServiceClp implements SearchService {
+ public SearchServiceClp(InvokableService invokableService) {
+ _invokableService = invokableService;
+
+ _methodName0 = "getBeanIdentifier";
+
+ _methodParameterTypes0 = new String[] { };
+
+ _methodName1 = "setBeanIdentifier";
+
+ _methodParameterTypes1 = new String[] { "java.lang.String" };
+
+ _methodName3 = "retrieveSearch";
+
+ _methodParameterTypes3 = new String[] {
+ "int", "java.lang.String", "java.lang.String", "int",
+ "java.lang.String", "int", "java.lang.String",
+ "java.lang.String", "java.lang.String", "java.lang.String"
+ };
+ }
+
+ 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);
+ }
+
+ 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");
+ }
+ }
+ }
+
+ public java.lang.Object invokeMethod(java.lang.String name,
+ java.lang.String[] parameterTypes, java.lang.Object[] arguments)
+ throws java.lang.Throwable {
+ throw new UnsupportedOperationException();
+ }
+
+ public com.liferay.portal.kernel.json.JSONObject retrieveSearch(
+ int serviceFilter, java.lang.String entPersonJointure,
+ java.lang.String keywords, int nbMaxResults, java.lang.String split,
+ int searchType, java.lang.String authorLastName,
+ java.lang.String authorGivenName, java.lang.String dateMinPubli,
+ java.lang.String dateMaxPubli)
+ throws com.liferay.portal.kernel.exception.PortalException,
+ com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableService.invokeMethod(_methodName3,
+ _methodParameterTypes3,
+ new Object[] {
+ serviceFilter,
+
+ ClpSerializer.translateInput(entPersonJointure),
+
+ ClpSerializer.translateInput(keywords),
+
+ nbMaxResults,
+
+ ClpSerializer.translateInput(split),
+
+ searchType,
+
+ ClpSerializer.translateInput(authorLastName),
+
+ ClpSerializer.translateInput(authorGivenName),
+
+ ClpSerializer.translateInput(dateMinPubli),
+
+ ClpSerializer.translateInput(dateMaxPubli)
+ });
+ }
+ 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.portal.kernel.json.JSONObject)ClpSerializer.translateOutput(returnObj);
+ }
+
+ private InvokableService _invokableService;
+ private String _methodName0;
+ private String[] _methodParameterTypes0;
+ private String _methodName1;
+ private String[] _methodParameterTypes1;
+ private String _methodName3;
+ private String[] _methodParameterTypes3;
+}
\ No newline at end of file