List of usage examples for com.liferay.portal.kernel.util NullWrapper NullWrapper
public NullWrapper(String className)
From source file:com.inkwell.internet.slogan.portlet.SloganContest.java
License:Open Source License
@SuppressWarnings("deprecation") public void invokeTaglibDiscussion(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { System.out.println("\n\ndung\n\n"); Object[] args = new Object[] { new NullWrapper("org.apache.struts.action.ActionMapping"), new NullWrapper("org.apache.struts.action.ActionForm"), getPortletConfig(), actionRequest, actionResponse };/* w ww . j a va 2s . c o m*/ PortalClassInvoker.invoke("com.liferay.portlet.messageboards.action.EditDiscussionAction", "processAction", args); }
From source file:com.liferay.ruon.service.NetworkLocalServiceClp.java
License:Open Source License
public com.liferay.ruon.model.Network addNetwork(com.liferay.ruon.model.Network network) throws com.liferay.portal.SystemException { Object paramObj0 = ClpSerializer.translateInput(network); if (network == null) { paramObj0 = new NullWrapper("com.liferay.ruon.model.Network"); }// w ww. ja va 2s. c o m Object returnObj = null; try { returnObj = _classLoaderProxy.invoke("addNetwork", new Object[] { paramObj0 }); } catch (Throwable t) { if (t instanceof com.liferay.portal.SystemException) { throw (com.liferay.portal.SystemException) t; } if (t instanceof RuntimeException) { throw (RuntimeException) t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (com.liferay.ruon.model.Network) ClpSerializer.translateOutput(returnObj); }
From source file:com.liferay.ruon.service.NetworkLocalServiceClp.java
License:Open Source License
public void deleteNetwork(com.liferay.ruon.model.Network network) throws com.liferay.portal.SystemException { Object paramObj0 = ClpSerializer.translateInput(network); if (network == null) { paramObj0 = new NullWrapper("com.liferay.ruon.model.Network"); }//from ww w. j a v a2 s . com try { _classLoaderProxy.invoke("deleteNetwork", new Object[] { paramObj0 }); } catch (Throwable t) { if (t instanceof com.liferay.portal.SystemException) { throw (com.liferay.portal.SystemException) t; } if (t instanceof RuntimeException) { throw (RuntimeException) t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } }
From source file:com.liferay.ruon.service.NetworkLocalServiceClp.java
License:Open Source License
public java.util.List<Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) throws com.liferay.portal.SystemException { Object paramObj0 = ClpSerializer.translateInput(dynamicQuery); if (dynamicQuery == null) { paramObj0 = new NullWrapper("com.liferay.portal.kernel.dao.orm.DynamicQuery"); }/*ww w . j a v a 2s . c o m*/ Object returnObj = null; try { returnObj = _classLoaderProxy.invoke("dynamicQuery", new Object[] { paramObj0 }); } catch (Throwable t) { if (t instanceof com.liferay.portal.SystemException) { throw (com.liferay.portal.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<Object>) ClpSerializer.translateOutput(returnObj); }
From source file:com.liferay.ruon.service.NetworkLocalServiceClp.java
License:Open Source License
public java.util.List<Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) throws com.liferay.portal.SystemException { Object paramObj0 = ClpSerializer.translateInput(dynamicQuery); if (dynamicQuery == null) { paramObj0 = new NullWrapper("com.liferay.portal.kernel.dao.orm.DynamicQuery"); }// www . j av a 2 s . c o m Object paramObj1 = new IntegerWrapper(start); Object paramObj2 = new IntegerWrapper(end); Object returnObj = null; try { returnObj = _classLoaderProxy.invoke("dynamicQuery", new Object[] { paramObj0, paramObj1, paramObj2 }); } catch (Throwable t) { if (t instanceof com.liferay.portal.SystemException) { throw (com.liferay.portal.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<Object>) ClpSerializer.translateOutput(returnObj); }
From source file:com.liferay.ruon.service.NetworkLocalServiceClp.java
License:Open Source License
public com.liferay.ruon.model.Network updateNetwork(com.liferay.ruon.model.Network network) throws com.liferay.portal.SystemException { Object paramObj0 = ClpSerializer.translateInput(network); if (network == null) { paramObj0 = new NullWrapper("com.liferay.ruon.model.Network"); }// w w w. j a va2 s.com Object returnObj = null; try { returnObj = _classLoaderProxy.invoke("updateNetwork", new Object[] { paramObj0 }); } catch (Throwable t) { if (t instanceof com.liferay.portal.SystemException) { throw (com.liferay.portal.SystemException) t; } if (t instanceof RuntimeException) { throw (RuntimeException) t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (com.liferay.ruon.model.Network) ClpSerializer.translateOutput(returnObj); }
From source file:com.liferay.ruon.service.NetworkLocalServiceClp.java
License:Open Source License
public com.liferay.ruon.model.Network updateNetwork(com.liferay.ruon.model.Network network, boolean merge) throws com.liferay.portal.SystemException { Object paramObj0 = ClpSerializer.translateInput(network); if (network == null) { paramObj0 = new NullWrapper("com.liferay.ruon.model.Network"); }//from w w w . ja v a 2s . c om Object paramObj1 = new BooleanWrapper(merge); Object returnObj = null; try { returnObj = _classLoaderProxy.invoke("updateNetwork", new Object[] { paramObj0, paramObj1 }); } catch (Throwable t) { if (t instanceof com.liferay.portal.SystemException) { throw (com.liferay.portal.SystemException) t; } if (t instanceof RuntimeException) { throw (RuntimeException) t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (com.liferay.ruon.model.Network) ClpSerializer.translateOutput(returnObj); }
From source file:com.liferay.ruon.service.NetworkLocalServiceClp.java
License:Open Source License
public com.liferay.ruon.model.Network getNetwork(java.lang.String name) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException { Object paramObj0 = ClpSerializer.translateInput(name); if (name == null) { paramObj0 = new NullWrapper("java.lang.String"); }/*from ww w . j a va 2s .c o m*/ Object returnObj = null; try { returnObj = _classLoaderProxy.invoke("getNetwork", new Object[] { paramObj0 }); } catch (Throwable t) { if (t instanceof com.liferay.portal.PortalException) { throw (com.liferay.portal.PortalException) t; } if (t instanceof com.liferay.portal.SystemException) { throw (com.liferay.portal.SystemException) t; } if (t instanceof RuntimeException) { throw (RuntimeException) t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (com.liferay.ruon.model.Network) ClpSerializer.translateOutput(returnObj); }
From source file:com.liferay.ruon.service.NetworkLocalServiceClp.java
License:Open Source License
public long getNetworkId(java.lang.String name) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException { Object paramObj0 = ClpSerializer.translateInput(name); if (name == null) { paramObj0 = new NullWrapper("java.lang.String"); }//from ww w . j a v a 2s . co m Object returnObj = null; try { returnObj = _classLoaderProxy.invoke("getNetworkId", new Object[] { paramObj0 }); } catch (Throwable t) { if (t instanceof com.liferay.portal.PortalException) { throw (com.liferay.portal.PortalException) t; } if (t instanceof com.liferay.portal.SystemException) { throw (com.liferay.portal.SystemException) t; } if (t instanceof RuntimeException) { throw (RuntimeException) t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return ((Long) returnObj).longValue(); }
From source file:com.liferay.ruon.service.NetworkLocalServiceClp.java
License:Open Source License
public com.liferay.ruon.model.Network updateNetwork(java.lang.String name, long ttl) throws com.liferay.portal.SystemException { Object paramObj0 = ClpSerializer.translateInput(name); if (name == null) { paramObj0 = new NullWrapper("java.lang.String"); }/* w w w.ja v a2 s . c o m*/ Object paramObj1 = new LongWrapper(ttl); Object returnObj = null; try { returnObj = _classLoaderProxy.invoke("updateNetwork", new Object[] { paramObj0, paramObj1 }); } catch (Throwable t) { if (t instanceof com.liferay.portal.SystemException) { throw (com.liferay.portal.SystemException) t; } if (t instanceof RuntimeException) { throw (RuntimeException) t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return (com.liferay.ruon.model.Network) ClpSerializer.translateOutput(returnObj); }