Example usage for com.liferay.portal.kernel.util Base64 objectToString

List of usage examples for com.liferay.portal.kernel.util Base64 objectToString

Introduction

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

Prototype

public static String objectToString(Object o) 

Source Link

Usage

From source file:com.liferay.portlet.EventImpl.java

License:Open Source License

public String getBase64Value() {
    if (_base64Value != null) {
        return _base64Value;
    } else {//from   w  w w  . jav  a 2  s.c  om
        _base64Value = Base64.objectToString(_value);

        return _base64Value;
    }
}

From source file:com.liferay.wsrp.model.impl.WSRPConsumerImpl.java

License:Open Source License

public void setRegistrationContext(RegistrationContext registrationContext) {

    setRegistrationContextString(Base64.objectToString(registrationContext));

    _registrationContext = registrationContext;
}