/** * 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.tasks.service; import aQute.bnd.annotation.ProviderType; import com.liferay.portal.kernel.service.InvokableService; /** * @author Ryan Park * @generated */ @ProviderType public class TasksEntryServiceClp implements TasksEntryService { public TasksEntryServiceClp(InvokableService invokableService) { _invokableService = invokableService; _methodName0 = "addTasksEntry"; _methodParameterTypes0 = new String[] { "java.lang.String", "int", "long", "int", "int", "int", "int", "int", "boolean", "com.liferay.portal.kernel.service.ServiceContext" }; _methodName1 = "deleteTasksEntry"; _methodParameterTypes1 = new String[] { "long" }; _methodName2 = "getTasksEntry"; _methodParameterTypes2 = new String[] { "long" }; _methodName3 = "updateTasksEntry"; _methodParameterTypes3 = new String[] { "long", "java.lang.String", "int", "long", "long", "int", "int", "int", "int", "int", "boolean", "int", "com.liferay.portal.kernel.service.ServiceContext" }; _methodName4 = "updateTasksEntryStatus"; _methodParameterTypes4 = new String[] { "long", "long", "int", "com.liferay.portal.kernel.service.ServiceContext" }; _methodName6 = "getOSGiServiceIdentifier"; _methodParameterTypes6 = new String[] { }; } @Override public com.liferay.tasks.model.TasksEntry addTasksEntry( java.lang.String title, int priority, long assigneeUserId, int dueDateMonth, int dueDateDay, int dueDateYear, int dueDateHour, int dueDateMinute, boolean neverDue, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName0, _methodParameterTypes0, new Object[] { ClpSerializer.translateInput(title), priority, assigneeUserId, dueDateMonth, dueDateDay, dueDateYear, dueDateHour, dueDateMinute, neverDue, 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"); } } return (com.liferay.tasks.model.TasksEntry)ClpSerializer.translateOutput(returnObj); } @Override public com.liferay.tasks.model.TasksEntry deleteTasksEntry( long tasksEntryId) throws com.liferay.portal.kernel.exception.PortalException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName1, _methodParameterTypes1, new Object[] { tasksEntryId }); } 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.tasks.model.TasksEntry)ClpSerializer.translateOutput(returnObj); } @Override public com.liferay.tasks.model.TasksEntry getTasksEntry(long tasksEntryId) throws com.liferay.portal.kernel.exception.PortalException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName2, _methodParameterTypes2, new Object[] { tasksEntryId }); } 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.tasks.model.TasksEntry)ClpSerializer.translateOutput(returnObj); } @Override public com.liferay.tasks.model.TasksEntry updateTasksEntry( long tasksEntryId, java.lang.String title, int priority, long assigneeUserId, long resolverUserId, int dueDateMonth, int dueDateDay, int dueDateYear, int dueDateHour, int dueDateMinute, boolean neverDue, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName3, _methodParameterTypes3, new Object[] { tasksEntryId, ClpSerializer.translateInput(title), priority, assigneeUserId, resolverUserId, dueDateMonth, dueDateDay, dueDateYear, dueDateHour, dueDateMinute, neverDue, status, 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"); } } return (com.liferay.tasks.model.TasksEntry)ClpSerializer.translateOutput(returnObj); } @Override public com.liferay.tasks.model.TasksEntry updateTasksEntryStatus( long tasksEntryId, long resolverUserId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName4, _methodParameterTypes4, new Object[] { tasksEntryId, resolverUserId, status, 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"); } } return (com.liferay.tasks.model.TasksEntry)ClpSerializer.translateOutput(returnObj); } @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(_methodName6, _methodParameterTypes6, 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); } 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 _methodName4; private String[] _methodParameterTypes4; private String _methodName6; private String[] _methodParameterTypes6; }