--- /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.agenda.service;
+
+import com.liferay.portal.service.InvokableLocalService;
+
+/**
+ * @author Igor Barma
+ */
+public class RessourceLocalServiceClp implements RessourceLocalService {
+ public RessourceLocalServiceClp(InvokableLocalService invokableLocalService) {
+ _invokableLocalService = invokableLocalService;
+
+ _methodName0 = "addRessource";
+
+ _methodParameterTypes0 = new String[] {
+ "com.pentila.entSavoie.agenda.model.Ressource"
+ };
+
+ _methodName1 = "createRessource";
+
+ _methodParameterTypes1 = new String[] { "long" };
+
+ _methodName2 = "deleteRessource";
+
+ _methodParameterTypes2 = new String[] { "long" };
+
+ _methodName3 = "deleteRessource";
+
+ _methodParameterTypes3 = new String[] {
+ "com.pentila.entSavoie.agenda.model.Ressource"
+ };
+
+ _methodName4 = "dynamicQuery";
+
+ _methodParameterTypes4 = new String[] { };
+
+ _methodName5 = "dynamicQuery";
+
+ _methodParameterTypes5 = new String[] {
+ "com.liferay.portal.kernel.dao.orm.DynamicQuery"
+ };
+
+ _methodName6 = "dynamicQuery";
+
+ _methodParameterTypes6 = new String[] {
+ "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int"
+ };
+
+ _methodName7 = "dynamicQuery";
+
+ _methodParameterTypes7 = new String[] {
+ "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int",
+ "com.liferay.portal.kernel.util.OrderByComparator"
+ };
+
+ _methodName8 = "dynamicQueryCount";
+
+ _methodParameterTypes8 = new String[] {
+ "com.liferay.portal.kernel.dao.orm.DynamicQuery"
+ };
+
+ _methodName9 = "fetchRessource";
+
+ _methodParameterTypes9 = new String[] { "long" };
+
+ _methodName10 = "getRessource";
+
+ _methodParameterTypes10 = new String[] { "long" };
+
+ _methodName11 = "getPersistedModel";
+
+ _methodParameterTypes11 = new String[] { "java.io.Serializable" };
+
+ _methodName12 = "getRessources";
+
+ _methodParameterTypes12 = new String[] { "int", "int" };
+
+ _methodName13 = "getRessourcesCount";
+
+ _methodParameterTypes13 = new String[] { };
+
+ _methodName14 = "updateRessource";
+
+ _methodParameterTypes14 = new String[] {
+ "com.pentila.entSavoie.agenda.model.Ressource"
+ };
+
+ _methodName15 = "updateRessource";
+
+ _methodParameterTypes15 = new String[] {
+ "com.pentila.entSavoie.agenda.model.Ressource", "boolean"
+ };
+
+ _methodName16 = "getBeanIdentifier";
+
+ _methodParameterTypes16 = new String[] { };
+
+ _methodName17 = "setBeanIdentifier";
+
+ _methodParameterTypes17 = new String[] { "java.lang.String" };
+
+ _methodName19 = "addRessource";
+
+ _methodParameterTypes19 = new String[] { };
+
+ _methodName20 = "addRessource";
+
+ _methodParameterTypes20 = new String[] {
+ "java.lang.String", "long", "long"
+ };
+
+ _methodName21 = "createCDT";
+
+ _methodParameterTypes21 = new String[] {
+ "com.liferay.portal.model.User", "boolean", "boolean", "boolean",
+ "boolean", "com.liferay.portal.kernel.json.JSONArray"
+ };
+
+ _methodName22 = "addRessource";
+
+ _methodParameterTypes22 = new String[] {
+ "java.lang.String", "long", "long", "int", "long"
+ };
+
+ _methodName23 = "getOrCreatePersonalRessource";
+
+ _methodParameterTypes23 = new String[] { "long" };
+
+ _methodName24 = "getPersonalRessource";
+
+ _methodParameterTypes24 = new String[] { "long" };
+
+ _methodName25 = "deleteRessourceAndDep";
+
+ _methodParameterTypes25 = new String[] {
+ "com.pentila.entSavoie.agenda.model.Ressource"
+ };
+
+ _methodName26 = "getRessourcesByScopeTypeKindForcePubli";
+
+ _methodParameterTypes26 = new String[] { "int", "int", "int", "boolean" };
+
+ _methodName27 = "getRessourcesByScopeTypeEtabIdKindForcePubli";
+
+ _methodParameterTypes27 = new String[] {
+ "int", "int", "long", "int", "boolean"
+ };
+
+ _methodName28 = "getRessourcesByScopeTypeForcePubli";
+
+ _methodParameterTypes28 = new String[] { "int", "int", "boolean" };
+
+ _methodName29 = "getRessourcesByScopeTypeEtabIdForcePubli";
+
+ _methodParameterTypes29 = new String[] { "int", "int", "long", "boolean" };
+
+ _methodName30 = "getRessourcesWhereUserHasMultiplePersonnalRessource";
+
+ _methodParameterTypes30 = new String[] { };
+
+ _methodName31 = "getRessourcesByEtabIdName";
+
+ _methodParameterTypes31 = new String[] {
+ "java.lang.Long", "java.lang.String"
+ };
+
+ _methodName32 = "getOrCreateOrganizationRessource";
+
+ _methodParameterTypes32 = new String[] {
+ "long", "com.liferay.portal.model.Organization"
+ };
+
+ _methodName33 = "getOrCreateCdtRessource";
+
+ _methodParameterTypes33 = new String[] { "long" };
+
+ _methodName34 = "getUserCdtRessources";
+
+ _methodParameterTypes34 = new String[] { "long" };
+
+ _methodName35 = "getParentCdtRessource";
+
+ _methodParameterTypes35 = new String[] { "long", "long" };
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource addRessource(
+ com.pentila.entSavoie.agenda.model.Ressource ressource)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName0,
+ _methodParameterTypes0,
+ new Object[] { ClpSerializer.translateInput(ressource) });
+ }
+ 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 (com.pentila.entSavoie.agenda.model.Ressource)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource createRessource(
+ long idRessource) {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName1,
+ _methodParameterTypes1, new Object[] { idRessource });
+ }
+ 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 (com.pentila.entSavoie.agenda.model.Ressource)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource deleteRessource(
+ long idRessource)
+ throws com.liferay.portal.kernel.exception.PortalException,
+ com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName2,
+ _methodParameterTypes2, new Object[] { idRessource });
+ }
+ 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.pentila.entSavoie.agenda.model.Ressource)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource deleteRessource(
+ com.pentila.entSavoie.agenda.model.Ressource ressource)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName3,
+ _methodParameterTypes3,
+ new Object[] { ClpSerializer.translateInput(ressource) });
+ }
+ 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 (com.pentila.entSavoie.agenda.model.Ressource)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName4,
+ _methodParameterTypes4, 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 (com.liferay.portal.kernel.dao.orm.DynamicQuery)ClpSerializer.translateOutput(returnObj);
+ }
+
+ @SuppressWarnings("rawtypes")
+ public java.util.List dynamicQuery(
+ com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName5,
+ _methodParameterTypes5,
+ new Object[] { ClpSerializer.translateInput(dynamicQuery) });
+ }
+ 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)ClpSerializer.translateOutput(returnObj);
+ }
+
+ @SuppressWarnings("rawtypes")
+ public java.util.List dynamicQuery(
+ com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
+ int end) throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName6,
+ _methodParameterTypes6,
+ new Object[] {
+ ClpSerializer.translateInput(dynamicQuery),
+
+ start,
+
+ end
+ });
+ }
+ 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)ClpSerializer.translateOutput(returnObj);
+ }
+
+ @SuppressWarnings("rawtypes")
+ public java.util.List dynamicQuery(
+ com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
+ int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName7,
+ _methodParameterTypes7,
+ new Object[] {
+ ClpSerializer.translateInput(dynamicQuery),
+
+ 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)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public long dynamicQueryCount(
+ com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName8,
+ _methodParameterTypes8,
+ new Object[] { ClpSerializer.translateInput(dynamicQuery) });
+ }
+ 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 ((Long)returnObj).longValue();
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource fetchRessource(
+ long idRessource)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName9,
+ _methodParameterTypes9, new Object[] { idRessource });
+ }
+ 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 (com.pentila.entSavoie.agenda.model.Ressource)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource getRessource(
+ long idRessource)
+ throws com.liferay.portal.kernel.exception.PortalException,
+ com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName10,
+ _methodParameterTypes10, new Object[] { idRessource });
+ }
+ 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.pentila.entSavoie.agenda.model.Ressource)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public com.liferay.portal.model.PersistedModel getPersistedModel(
+ java.io.Serializable primaryKeyObj)
+ throws com.liferay.portal.kernel.exception.PortalException,
+ com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName11,
+ _methodParameterTypes11,
+ new Object[] { ClpSerializer.translateInput(primaryKeyObj) });
+ }
+ 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.model.PersistedModel)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public java.util.List<com.pentila.entSavoie.agenda.model.Ressource> getRessources(
+ int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName12,
+ _methodParameterTypes12, new Object[] { start, end });
+ }
+ 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.pentila.entSavoie.agenda.model.Ressource>)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public int getRessourcesCount()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName13,
+ _methodParameterTypes13, new Object[] { });
+ }
+ 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();
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource updateRessource(
+ com.pentila.entSavoie.agenda.model.Ressource ressource)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName14,
+ _methodParameterTypes14,
+ new Object[] { ClpSerializer.translateInput(ressource) });
+ }
+ 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 (com.pentila.entSavoie.agenda.model.Ressource)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource updateRessource(
+ com.pentila.entSavoie.agenda.model.Ressource ressource, boolean merge)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName15,
+ _methodParameterTypes15,
+ new Object[] { ClpSerializer.translateInput(ressource), merge });
+ }
+ 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 (com.pentila.entSavoie.agenda.model.Ressource)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public java.lang.String getBeanIdentifier() {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName16,
+ _methodParameterTypes16, 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 {
+ _invokableLocalService.invokeMethod(_methodName17,
+ _methodParameterTypes17,
+ 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.pentila.entSavoie.agenda.model.Ressource addRessource()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName19,
+ _methodParameterTypes19, new Object[] { });
+ }
+ 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 (com.pentila.entSavoie.agenda.model.Ressource)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource addRessource(
+ java.lang.String ressourceName, long etabId, long creatorId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName20,
+ _methodParameterTypes20,
+ new Object[] {
+ ClpSerializer.translateInput(ressourceName),
+
+ etabId,
+
+ creatorId
+ });
+ }
+ 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 (com.pentila.entSavoie.agenda.model.Ressource)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public boolean createCDT(com.liferay.portal.model.User user,
+ boolean isEleve, boolean isParent, boolean isEnseignant,
+ boolean isPrincipal, com.liferay.portal.kernel.json.JSONArray child) {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName21,
+ _methodParameterTypes21,
+ new Object[] {
+ ClpSerializer.translateInput(user),
+
+ isEleve,
+
+ isParent,
+
+ isEnseignant,
+
+ isPrincipal,
+
+ ClpSerializer.translateInput(child)
+ });
+ }
+ 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 ((Boolean)returnObj).booleanValue();
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource addRessource(
+ java.lang.String ressourceName, long etabId, long creatorId, int kind,
+ long targetId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName22,
+ _methodParameterTypes22,
+ new Object[] {
+ ClpSerializer.translateInput(ressourceName),
+
+ etabId,
+
+ creatorId,
+
+ kind,
+
+ targetId
+ });
+ }
+ 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 (com.pentila.entSavoie.agenda.model.Ressource)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource getOrCreatePersonalRessource(
+ long creatorId) {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName23,
+ _methodParameterTypes23, new Object[] { creatorId });
+ }
+ 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 (com.pentila.entSavoie.agenda.model.Ressource)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource getPersonalRessource(
+ long creatorId) {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName24,
+ _methodParameterTypes24, new Object[] { creatorId });
+ }
+ 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 (com.pentila.entSavoie.agenda.model.Ressource)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public boolean deleteRessourceAndDep(
+ com.pentila.entSavoie.agenda.model.Ressource ressource)
+ throws com.liferay.portal.kernel.exception.PortalException,
+ com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName25,
+ _methodParameterTypes25,
+ new Object[] { ClpSerializer.translateInput(ressource) });
+ }
+ 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 ((Boolean)returnObj).booleanValue();
+ }
+
+ public java.util.List<com.pentila.entSavoie.agenda.model.Ressource> getRessourcesByScopeTypeKindForcePubli(
+ int scope, int ressourceType, int kind, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName26,
+ _methodParameterTypes26,
+ new Object[] { scope, ressourceType, kind, forcePubli });
+ }
+ 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.pentila.entSavoie.agenda.model.Ressource>)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public java.util.List<com.pentila.entSavoie.agenda.model.Ressource> getRessourcesByScopeTypeEtabIdKindForcePubli(
+ int scope, int ressourceType, long etabId, int kind, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName27,
+ _methodParameterTypes27,
+ new Object[] { scope, ressourceType, etabId, kind, forcePubli });
+ }
+ 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.pentila.entSavoie.agenda.model.Ressource>)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public java.util.List<com.pentila.entSavoie.agenda.model.Ressource> getRessourcesByScopeTypeForcePubli(
+ int scope, int ressourceType, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName28,
+ _methodParameterTypes28,
+ new Object[] { scope, ressourceType, forcePubli });
+ }
+ 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.pentila.entSavoie.agenda.model.Ressource>)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public java.util.List<com.pentila.entSavoie.agenda.model.Ressource> getRessourcesByScopeTypeEtabIdForcePubli(
+ int scope, int ressourceType, long etabId, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName29,
+ _methodParameterTypes29,
+ new Object[] { scope, ressourceType, etabId, forcePubli });
+ }
+ 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.pentila.entSavoie.agenda.model.Ressource>)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public java.util.Map<java.lang.Long, java.util.List<com.pentila.entSavoie.agenda.model.Ressource>> getRessourcesWhereUserHasMultiplePersonnalRessource() {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName30,
+ _methodParameterTypes30, 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.util.Map<java.lang.Long, java.util.List<com.pentila.entSavoie.agenda.model.Ressource>>)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public java.util.List<com.pentila.entSavoie.agenda.model.Ressource> getRessourcesByEtabIdName(
+ java.lang.Long etabId, java.lang.String ressourceName)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName31,
+ _methodParameterTypes31,
+ new Object[] {
+ ClpSerializer.translateInput(etabId),
+
+ ClpSerializer.translateInput(ressourceName)
+ });
+ }
+ 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.pentila.entSavoie.agenda.model.Ressource>)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource getOrCreateOrganizationRessource(
+ long companyId, com.liferay.portal.model.Organization org) {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName32,
+ _methodParameterTypes32,
+ new Object[] { companyId, ClpSerializer.translateInput(org) });
+ }
+ 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 (com.pentila.entSavoie.agenda.model.Ressource)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource getOrCreateCdtRessource(
+ long userId) {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName33,
+ _methodParameterTypes33, new Object[] { userId });
+ }
+ 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 (com.pentila.entSavoie.agenda.model.Ressource)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public java.util.List<com.pentila.entSavoie.agenda.model.Ressource> getUserCdtRessources(
+ long userId) {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName34,
+ _methodParameterTypes34, new Object[] { userId });
+ }
+ 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.pentila.entSavoie.agenda.model.Ressource>)ClpSerializer.translateOutput(returnObj);
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource getParentCdtRessource(
+ long parentUserId, long childUserId) {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName35,
+ _methodParameterTypes35,
+ new Object[] { parentUserId, childUserId });
+ }
+ 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 (com.pentila.entSavoie.agenda.model.Ressource)ClpSerializer.translateOutput(returnObj);
+ }
+
+ private InvokableLocalService _invokableLocalService;
+ 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 _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 _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;
+}
\ No newline at end of file