/** * 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.so.service.base; import aQute.bnd.annotation.ProviderType; import com.liferay.so.service.SocialOfficeServiceUtil; import java.util.Arrays; /** * @author Brian Wing Shun Chan * @generated */ @ProviderType public class SocialOfficeServiceClpInvoker { public SocialOfficeServiceClpInvoker() { _methodName40 = "getOSGiServiceIdentifier"; _methodParameterTypes40 = new String[] { }; _methodName43 = "getUserSocialOfficeGroupIds"; _methodParameterTypes43 = new String[] { }; _methodName44 = "isSocialOfficeGroup"; _methodParameterTypes44 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { if (_methodName40.equals(name) && Arrays.deepEquals(_methodParameterTypes40, parameterTypes)) { return SocialOfficeServiceUtil.getOSGiServiceIdentifier(); } if (_methodName43.equals(name) && Arrays.deepEquals(_methodParameterTypes43, parameterTypes)) { return SocialOfficeServiceUtil.getUserSocialOfficeGroupIds(); } if (_methodName44.equals(name) && Arrays.deepEquals(_methodParameterTypes44, parameterTypes)) { return SocialOfficeServiceUtil.isSocialOfficeGroup(((Long)arguments[0]).longValue()); } throw new UnsupportedOperationException(); } private String _methodName40; private String[] _methodParameterTypes40; private String _methodName43; private String[] _methodParameterTypes43; private String _methodName44; private String[] _methodParameterTypes44; }