/** * 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.contacts.service.base; import aQute.bnd.annotation.ProviderType; import com.liferay.contacts.service.EntryServiceUtil; import java.util.Arrays; /** * @author Brian Wing Shun Chan * @generated */ @ProviderType public class EntryServiceClpInvoker { public EntryServiceClpInvoker() { _methodName26 = "getOSGiServiceIdentifier"; _methodParameterTypes26 = new String[] { }; _methodName31 = "searchUsersAndContacts"; _methodParameterTypes31 = new String[] { "long", "java.lang.String", "int", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { if (_methodName26.equals(name) && Arrays.deepEquals(_methodParameterTypes26, parameterTypes)) { return EntryServiceUtil.getOSGiServiceIdentifier(); } if (_methodName31.equals(name) && Arrays.deepEquals(_methodParameterTypes31, parameterTypes)) { return EntryServiceUtil.searchUsersAndContacts(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } throw new UnsupportedOperationException(); } private String _methodName26; private String[] _methodParameterTypes26; private String _methodName31; private String[] _methodParameterTypes31; }