/**
* 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.content.targeting.service;
import com.liferay.portal.service.InvokableService;
/**
* @author Brian Wing Shun Chan
* @generated
*/
public class TrackingActionInstanceServiceClp
implements TrackingActionInstanceService {
public TrackingActionInstanceServiceClp(InvokableService invokableService) {
_invokableService = invokableService;
_methodName0 = "getBeanIdentifier";
_methodParameterTypes0 = new String[] { };
_methodName1 = "setBeanIdentifier";
_methodParameterTypes1 = new String[] { "java.lang.String" };
_methodName3 = "addTrackingActionInstance";
_methodParameterTypes3 = new String[] {
"long", "java.lang.String", "long", "java.lang.String",
"java.lang.String", "long", "java.lang.String",
"java.lang.String", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
_methodName4 = "deleteTrackingActionInstance";
_methodParameterTypes4 = new String[] { "long" };
_methodName5 = "fetchTrackingActionInstance";
_methodParameterTypes5 = new String[] { "long", "java.lang.String" };
_methodName6 = "getTrackingActionInstances";
_methodParameterTypes6 = new String[] { "long" };
_methodName7 = "getTrackingActionInstancesCount";
_methodParameterTypes7 = new String[] { "long" };
_methodName8 = "updateTrackingActionInstance";
_methodParameterTypes8 = new String[] {
"long", "java.lang.String", "java.lang.String", "long",
"java.lang.String", "java.lang.String", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
}
@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.content.targeting.model.TrackingActionInstance addTrackingActionInstance(
long userId, java.lang.String trackingActionKey, long campaignId,
java.lang.String alias, java.lang.String referrerClassName,
long referrerClassPK, java.lang.String elementId,
java.lang.String eventType, java.lang.String typeSettings,
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[] {
userId,
ClpSerializer.translateInput(trackingActionKey),
campaignId,
ClpSerializer.translateInput(alias),
ClpSerializer.translateInput(referrerClassName),
referrerClassPK,
ClpSerializer.translateInput(elementId),
ClpSerializer.translateInput(eventType),
ClpSerializer.translateInput(typeSettings),
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.content.targeting.model.TrackingActionInstance)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.content.targeting.model.TrackingActionInstance deleteTrackingActionInstance(
long trackingActionInstanceId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableService.invokeMethod(_methodName4,
_methodParameterTypes4,
new Object[] { trackingActionInstanceId });
}
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.content.targeting.model.TrackingActionInstance)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.content.targeting.model.TrackingActionInstance fetchTrackingActionInstance(
long campaignId, java.lang.String alias) throws java.lang.Exception {
Object returnObj = null;
try {
returnObj = _invokableService.invokeMethod(_methodName5,
_methodParameterTypes5,
new Object[] { campaignId, ClpSerializer.translateInput(
alias) });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof java.lang.Exception) {
throw (java.lang.Exception)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (com.liferay.content.targeting.model.TrackingActionInstance)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.util.List<com.liferay.content.targeting.model.TrackingActionInstance> getTrackingActionInstances(
long campaignId)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableService.invokeMethod(_methodName6,
_methodParameterTypes6, new Object[] { campaignId });
}
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.content.targeting.model.TrackingActionInstance>)ClpSerializer.translateOutput(returnObj);
}
@Override
public int getTrackingActionInstancesCount(long campaignId)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableService.invokeMethod(_methodName7,
_methodParameterTypes7, new Object[] { campaignId });
}
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.content.targeting.model.TrackingActionInstance updateTrackingActionInstance(
long trackingActionInstanceId, java.lang.String alias,
java.lang.String referrerClassName, long referrerClassPK,
java.lang.String elementId, java.lang.String eventType,
java.lang.String typeSettings,
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(_methodName8,
_methodParameterTypes8,
new Object[] {
trackingActionInstanceId,
ClpSerializer.translateInput(alias),
ClpSerializer.translateInput(referrerClassName),
referrerClassPK,
ClpSerializer.translateInput(elementId),
ClpSerializer.translateInput(eventType),
ClpSerializer.translateInput(typeSettings),
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.content.targeting.model.TrackingActionInstance)ClpSerializer.translateOutput(returnObj);
}
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;
}