List of usage examples for com.liferay.portal.kernel.util MethodHandler MethodHandler
public MethodHandler(MethodKey methodKey, Object... arguments)
From source file:at.graz.meduni.bibbox.liferay.portlet.service.http.ApplicationInstanceServiceHttp.java
License:Open Source License
public static com.liferay.portal.kernel.json.JSONObject getInstanceInfoAPI(HttpPrincipal httpPrincipal, java.lang.String instanceId) { try {/*ww w .j a v a 2 s. com*/ MethodKey methodKey = new MethodKey(ApplicationInstanceServiceUtil.class, "getInstanceInfoAPI", _getInstanceInfoAPIParameterTypes6); MethodHandler methodHandler = new MethodHandler(methodKey, instanceId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.portal.kernel.json.JSONObject) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } }
From source file:at.graz.meduni.bibbox.liferay.portlet.service.http.ApplicationInstanceServiceHttp.java
License:Open Source License
public static com.liferay.portal.kernel.json.JSONObject getInstanceDashboardAPI(HttpPrincipal httpPrincipal, java.lang.String instanceId) { try {//from w ww. ja v a 2 s . c o m MethodKey methodKey = new MethodKey(ApplicationInstanceServiceUtil.class, "getInstanceDashboardAPI", _getInstanceDashboardAPIParameterTypes7); MethodHandler methodHandler = new MethodHandler(methodKey, instanceId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.portal.kernel.json.JSONObject) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } }
From source file:at.graz.meduni.bibbox.liferay.portlet.service.http.ApplicationInstanceServiceHttp.java
License:Open Source License
public static com.liferay.portal.kernel.json.JSONObject getInstanceLogdAPI(HttpPrincipal httpPrincipal, java.lang.String instanceId) { try {/* w w w .ja va 2s. c om*/ MethodKey methodKey = new MethodKey(ApplicationInstanceServiceUtil.class, "getInstanceLogdAPI", _getInstanceLogdAPIParameterTypes8); MethodHandler methodHandler = new MethodHandler(methodKey, instanceId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.portal.kernel.json.JSONObject) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } }
From source file:at.graz.meduni.bibbox.liferay.portlet.service.http.ApplicationInstanceServiceHttp.java
License:Open Source License
public static com.liferay.portal.kernel.json.JSONObject getInstanceMaintenanceAPI(HttpPrincipal httpPrincipal, java.lang.String instanceId) { try {/* w w w. j a v a 2 s. co m*/ MethodKey methodKey = new MethodKey(ApplicationInstanceServiceUtil.class, "getInstanceMaintenanceAPI", _getInstanceMaintenanceAPIParameterTypes10); MethodHandler methodHandler = new MethodHandler(methodKey, instanceId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.portal.kernel.json.JSONObject) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } }
From source file:at.graz.meduni.bibbox.liferay.portlet.service.http.ApplicationInstanceServiceHttp.java
License:Open Source License
public static com.liferay.portal.kernel.json.JSONObject deleteInstanceStatusAPI(HttpPrincipal httpPrincipal, java.lang.String instanceId) { try {/*from w ww.ja v a 2 s . c om*/ MethodKey methodKey = new MethodKey(ApplicationInstanceServiceUtil.class, "deleteInstanceStatusAPI", _deleteInstanceStatusAPIParameterTypes12); MethodHandler methodHandler = new MethodHandler(methodKey, instanceId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.portal.kernel.json.JSONObject) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } }
From source file:at.graz.meduni.bibbox.liferay.portlet.service.http.ApplicationInstanceServiceHttp.java
License:Open Source License
public static com.liferay.portal.kernel.json.JSONObject toggleInstanceMaintenanceStatusAPI( HttpPrincipal httpPrincipal, java.lang.String instanceId) { try {//from w w w . java 2s.c o m MethodKey methodKey = new MethodKey(ApplicationInstanceServiceUtil.class, "toggleInstanceMaintenanceStatusAPI", _toggleInstanceMaintenanceStatusAPIParameterTypes14); MethodHandler methodHandler = new MethodHandler(methodKey, instanceId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.portal.kernel.json.JSONObject) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } }
From source file:at.graz.meduni.bibbox.liferay.portlet.service.http.ApplicationInstanceServiceHttp.java
License:Open Source License
public static com.liferay.portal.kernel.json.JSONObject getIdMappingInfoAPI(HttpPrincipal httpPrincipal, java.lang.String instanceId) { try {//from w w w . j a v a2 s.c om MethodKey methodKey = new MethodKey(ApplicationInstanceServiceUtil.class, "getIdMappingInfoAPI", _getIdMappingInfoAPIParameterTypes15); MethodHandler methodHandler = new MethodHandler(methodKey, instanceId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.portal.kernel.json.JSONObject) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } }
From source file:at.graz.meduni.bibbox.liferay.portlet.service.http.ApplicationInstanceServiceHttp.java
License:Open Source License
public static void getTestAPI(HttpPrincipal httpPrincipal, java.lang.String string) { try {/*www . ja va2 s. c o m*/ MethodKey methodKey = new MethodKey(ApplicationInstanceServiceUtil.class, "getTestAPI", _getTestAPIParameterTypes16); MethodHandler methodHandler = new MethodHandler(methodKey, string); try { TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { throw new com.liferay.portal.kernel.exception.SystemException(e); } } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } }
From source file:br.com.seatecnologia.banner.service.BannerLocalServiceClp.java
License:Open Source License
public br.com.seatecnologia.banner.model.Banner addBanner(br.com.seatecnologia.banner.model.Banner banner) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null;//from w w w. j a va2 s . c o m MethodHandler methodHandler = new MethodHandler(_addBannerMethodKey0, ClpSerializer.translateInput(banner)); try { returnObj = _classLoaderProxy.invoke(methodHandler); } catch (Throwable 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 (br.com.seatecnologia.banner.model.Banner) ClpSerializer.translateOutput(returnObj); }
From source file:br.com.seatecnologia.banner.service.BannerLocalServiceClp.java
License:Open Source License
public br.com.seatecnologia.banner.model.Banner createBanner(long bannerId) { Object returnObj = null;//from w ww . ja va 2 s . c o m MethodHandler methodHandler = new MethodHandler(_createBannerMethodKey1, bannerId); try { returnObj = _classLoaderProxy.invoke(methodHandler); } catch (Throwable t) { if (t instanceof RuntimeException) { throw (RuntimeException) t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (br.com.seatecnologia.banner.model.Banner) ClpSerializer.translateOutput(returnObj); }