/** * 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.microblogs.service; import aQute.bnd.annotation.ProviderType; import com.liferay.portal.kernel.service.InvokableService; /** * @author Brian Wing Shun Chan * @generated */ @ProviderType public class MicroblogsEntryServiceClp implements MicroblogsEntryService { public MicroblogsEntryServiceClp(InvokableService invokableService) { _invokableService = invokableService; _methodName0 = "addMicroblogsEntry"; _methodParameterTypes0 = new String[] { "long", "java.lang.String", "int", "long", "int", "com.liferay.portal.kernel.service.ServiceContext" }; _methodName1 = "deleteMicroblogsEntry"; _methodParameterTypes1 = new String[] { "long" }; _methodName2 = "getMicroblogsEntry"; _methodParameterTypes2 = new String[] { "long" }; _methodName3 = "updateMicroblogsEntry"; _methodParameterTypes3 = new String[] { "long", "java.lang.String", "int", "com.liferay.portal.kernel.service.ServiceContext" }; _methodName4 = "getMicroblogsEntriesCount"; _methodParameterTypes4 = new String[] { }; _methodName5 = "getMicroblogsEntriesCount"; _methodParameterTypes5 = new String[] { "java.lang.String" }; _methodName6 = "getUserMicroblogsEntriesCount"; _methodParameterTypes6 = new String[] { "long" }; _methodName7 = "getUserMicroblogsEntriesCount"; _methodParameterTypes7 = new String[] { "long", "int" }; _methodName9 = "getOSGiServiceIdentifier"; _methodParameterTypes9 = new String[] { }; _methodName10 = "getMicroblogsEntries"; _methodParameterTypes10 = new String[] { "int", "int" }; _methodName11 = "getMicroblogsEntries"; _methodParameterTypes11 = new String[] { "java.lang.String", "int", "int" }; _methodName12 = "getUserMicroblogsEntries"; _methodParameterTypes12 = new String[] { "long", "int", "int" }; _methodName13 = "getUserMicroblogsEntries"; _methodParameterTypes13 = new String[] { "long", "int", "int", "int" }; } @Override public com.liferay.microblogs.model.MicroblogsEntry addMicroblogsEntry( long userId, java.lang.String content, int type, long parentMicroblogsEntryId, int socialRelationType, 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[] { userId, ClpSerializer.translateInput(content), type, parentMicroblogsEntryId, socialRelationType, 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.microblogs.model.MicroblogsEntry)ClpSerializer.translateOutput(returnObj); } @Override public com.liferay.microblogs.model.MicroblogsEntry deleteMicroblogsEntry( long microblogsEntryId) throws com.liferay.portal.kernel.exception.PortalException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName1, _methodParameterTypes1, new Object[] { microblogsEntryId }); } 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.microblogs.model.MicroblogsEntry)ClpSerializer.translateOutput(returnObj); } @Override public com.liferay.microblogs.model.MicroblogsEntry getMicroblogsEntry( long microblogsEntryId) throws com.liferay.portal.kernel.exception.PortalException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName2, _methodParameterTypes2, new Object[] { microblogsEntryId }); } 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.microblogs.model.MicroblogsEntry)ClpSerializer.translateOutput(returnObj); } @Override public com.liferay.microblogs.model.MicroblogsEntry updateMicroblogsEntry( long microblogsEntryId, java.lang.String content, int socialRelationType, 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[] { microblogsEntryId, ClpSerializer.translateInput(content), socialRelationType, 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.microblogs.model.MicroblogsEntry)ClpSerializer.translateOutput(returnObj); } @Override public int getMicroblogsEntriesCount() throws com.liferay.portal.kernel.exception.PortalException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName4, _methodParameterTypes4, new Object[] { }); } 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 ((Integer)returnObj).intValue(); } @Override public int getMicroblogsEntriesCount(java.lang.String assetTagName) throws com.liferay.portal.kernel.exception.PortalException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName5, _methodParameterTypes5, new Object[] { ClpSerializer.translateInput(assetTagName) }); } 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 ((Integer)returnObj).intValue(); } @Override public int getUserMicroblogsEntriesCount(long microblogsEntryUserId) throws com.liferay.portal.kernel.exception.PortalException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName6, _methodParameterTypes6, new Object[] { microblogsEntryUserId }); } 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 ((Integer)returnObj).intValue(); } @Override public int getUserMicroblogsEntriesCount(long microblogsEntryUserId, int type) throws com.liferay.portal.kernel.exception.PortalException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName7, _methodParameterTypes7, new Object[] { microblogsEntryUserId, type }); } 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 ((Integer)returnObj).intValue(); } @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(_methodName9, _methodParameterTypes9, 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 java.util.List<com.liferay.microblogs.model.MicroblogsEntry> getMicroblogsEntries( int start, int end) throws com.liferay.portal.kernel.exception.PortalException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName10, _methodParameterTypes10, new Object[] { start, end }); } 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 (java.util.List<com.liferay.microblogs.model.MicroblogsEntry>)ClpSerializer.translateOutput(returnObj); } @Override public java.util.List<com.liferay.microblogs.model.MicroblogsEntry> getMicroblogsEntries( java.lang.String assetTagName, int start, int end) throws com.liferay.portal.kernel.exception.PortalException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName11, _methodParameterTypes11, new Object[] { ClpSerializer.translateInput(assetTagName), start, end }); } 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 (java.util.List<com.liferay.microblogs.model.MicroblogsEntry>)ClpSerializer.translateOutput(returnObj); } @Override public java.util.List<com.liferay.microblogs.model.MicroblogsEntry> getUserMicroblogsEntries( long microblogsEntryUserId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName12, _methodParameterTypes12, new Object[] { microblogsEntryUserId, start, end }); } 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 (java.util.List<com.liferay.microblogs.model.MicroblogsEntry>)ClpSerializer.translateOutput(returnObj); } @Override public java.util.List<com.liferay.microblogs.model.MicroblogsEntry> getUserMicroblogsEntries( long microblogsEntryUserId, int type, int start, int end) throws com.liferay.portal.kernel.exception.PortalException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName13, _methodParameterTypes13, new Object[] { microblogsEntryUserId, type, start, end }); } 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 (java.util.List<com.liferay.microblogs.model.MicroblogsEntry>)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 _methodName5; private String[] _methodParameterTypes5; private String _methodName6; private String[] _methodParameterTypes6; private String _methodName7; private String[] _methodParameterTypes7; 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; }