Example usage for com.liferay.portal.kernel.util BooleanWrapper BooleanWrapper

List of usage examples for com.liferay.portal.kernel.util BooleanWrapper BooleanWrapper

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util BooleanWrapper BooleanWrapper.

Prototype

public BooleanWrapper(boolean value) 

Source Link

Usage

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");
    }/*  w ww.  ja  v a2s.  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.PresenceLocalServiceClp.java

License:Open Source License

public com.liferay.ruon.model.Presence updatePresence(com.liferay.ruon.model.Presence presence, boolean merge)
        throws com.liferay.portal.SystemException {
    Object paramObj0 = ClpSerializer.translateInput(presence);

    if (presence == null) {
        paramObj0 = new NullWrapper("com.liferay.ruon.model.Presence");
    }//from ww w  . j a  v  a  2 s. c  om

    Object paramObj1 = new BooleanWrapper(merge);

    Object returnObj = null;

    try {
        returnObj = _classLoaderProxy.invoke("updatePresence", 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.Presence) ClpSerializer.translateOutput(returnObj);
}

From source file:com.liferay.ruon.service.PresenceLocalServiceClp.java

License:Open Source License

public java.util.List<com.liferay.ruon.model.Presence> getPresences(long userId, boolean online)
        throws com.liferay.portal.PortalException, com.liferay.portal.SystemException {
    Object paramObj0 = new LongWrapper(userId);

    Object paramObj1 = new BooleanWrapper(online);

    Object returnObj = null;//from   ww w  .j av  a 2  s .  c o m

    try {
        returnObj = _classLoaderProxy.invoke("getPresences", new Object[] { paramObj0, paramObj1 });
    } 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 (java.util.List<com.liferay.ruon.model.Presence>) ClpSerializer.translateOutput(returnObj);
}

From source file:com.liferay.ruon.service.PresenceLocalServiceClp.java

License:Open Source License

public com.liferay.ruon.model.Presence updatePresence(long userId, java.lang.String networkName, boolean online)
        throws com.liferay.portal.PortalException, com.liferay.portal.SystemException {
    Object paramObj0 = new LongWrapper(userId);

    Object paramObj1 = ClpSerializer.translateInput(networkName);

    if (networkName == null) {
        paramObj1 = new NullWrapper("java.lang.String");
    }//from w w w. j a v a2  s.  com

    Object paramObj2 = new BooleanWrapper(online);

    Object returnObj = null;

    try {
        returnObj = _classLoaderProxy.invoke("updatePresence",
                new Object[] { paramObj0, paramObj1, paramObj2 });
    } 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.Presence) ClpSerializer.translateOutput(returnObj);
}

From source file:com.liferay.wol.service.JIRAActionLocalServiceClp.java

License:Open Source License

public com.liferay.wol.model.JIRAAction updateJIRAAction(com.liferay.wol.model.JIRAAction jiraAction,
        boolean merge) throws com.liferay.portal.SystemException {
    Object paramObj0 = ClpSerializer.translateInput(jiraAction);

    if (jiraAction == null) {
        paramObj0 = new NullWrapper("com.liferay.wol.model.JIRAAction");
    }//from   w ww  . ja  v a 2  s .  c om

    Object paramObj1 = new BooleanWrapper(merge);

    Object returnObj = null;

    try {
        returnObj = _classLoaderProxy.invoke("updateJIRAAction", 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.wol.model.JIRAAction) ClpSerializer.translateOutput(returnObj);
}

From source file:com.liferay.wol.service.JIRAChangeGroupLocalServiceClp.java

License:Open Source License

public com.liferay.wol.model.JIRAChangeGroup updateJIRAChangeGroup(
        com.liferay.wol.model.JIRAChangeGroup jiraChangeGroup, boolean merge)
        throws com.liferay.portal.SystemException {
    Object paramObj0 = ClpSerializer.translateInput(jiraChangeGroup);

    if (jiraChangeGroup == null) {
        paramObj0 = new NullWrapper("com.liferay.wol.model.JIRAChangeGroup");
    }//  ww  w  .java2 s. c  o  m

    Object paramObj1 = new BooleanWrapper(merge);

    Object returnObj = null;

    try {
        returnObj = _classLoaderProxy.invoke("updateJIRAChangeGroup", 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.wol.model.JIRAChangeGroup) ClpSerializer.translateOutput(returnObj);
}

From source file:com.liferay.wol.service.JIRAChangeItemLocalServiceClp.java

License:Open Source License

public com.liferay.wol.model.JIRAChangeItem updateJIRAChangeItem(
        com.liferay.wol.model.JIRAChangeItem jiraChangeItem, boolean merge)
        throws com.liferay.portal.SystemException {
    Object paramObj0 = ClpSerializer.translateInput(jiraChangeItem);

    if (jiraChangeItem == null) {
        paramObj0 = new NullWrapper("com.liferay.wol.model.JIRAChangeItem");
    }//from   ww w  . j a v a  2 s  . co m

    Object paramObj1 = new BooleanWrapper(merge);

    Object returnObj = null;

    try {
        returnObj = _classLoaderProxy.invoke("updateJIRAChangeItem", 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.wol.model.JIRAChangeItem) ClpSerializer.translateOutput(returnObj);
}

From source file:com.liferay.wol.service.JIRAIssueLocalServiceClp.java

License:Open Source License

public com.liferay.wol.model.JIRAIssue updateJIRAIssue(com.liferay.wol.model.JIRAIssue jiraIssue, boolean merge)
        throws com.liferay.portal.SystemException {
    Object paramObj0 = ClpSerializer.translateInput(jiraIssue);

    if (jiraIssue == null) {
        paramObj0 = new NullWrapper("com.liferay.wol.model.JIRAIssue");
    }//from ww w  .j a  v  a2s .  c o m

    Object paramObj1 = new BooleanWrapper(merge);

    Object returnObj = null;

    try {
        returnObj = _classLoaderProxy.invoke("updateJIRAIssue", 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.wol.model.JIRAIssue) ClpSerializer.translateOutput(returnObj);
}

From source file:com.liferay.wol.service.MeetupsEntryLocalServiceClp.java

License:Open Source License

public com.liferay.wol.model.MeetupsEntry updateMeetupsEntry(com.liferay.wol.model.MeetupsEntry meetupsEntry,
        boolean merge) throws com.liferay.portal.SystemException {
    Object paramObj0 = ClpSerializer.translateInput(meetupsEntry);

    if (meetupsEntry == null) {
        paramObj0 = new NullWrapper("com.liferay.wol.model.MeetupsEntry");
    }/*  w  w  w  .  ja  v a2 s  .c om*/

    Object paramObj1 = new BooleanWrapper(merge);

    Object returnObj = null;

    try {
        returnObj = _classLoaderProxy.invoke("updateMeetupsEntry", 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.wol.model.MeetupsEntry) ClpSerializer.translateOutput(returnObj);
}

From source file:com.liferay.wol.service.MeetupsRegistrationLocalServiceClp.java

License:Open Source License

public com.liferay.wol.model.MeetupsRegistration updateMeetupsRegistration(
        com.liferay.wol.model.MeetupsRegistration meetupsRegistration, boolean merge)
        throws com.liferay.portal.SystemException {
    Object paramObj0 = ClpSerializer.translateInput(meetupsRegistration);

    if (meetupsRegistration == null) {
        paramObj0 = new NullWrapper("com.liferay.wol.model.MeetupsRegistration");
    }/*from   w  ww  . j  a  v  a 2  s . co m*/

    Object paramObj1 = new BooleanWrapper(merge);

    Object returnObj = null;

    try {
        returnObj = _classLoaderProxy.invoke("updateMeetupsRegistration",
                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.wol.model.MeetupsRegistration) ClpSerializer.translateOutput(returnObj);
}