Example usage for com.liferay.portal.kernel.webcache WebCacheItem convert

List of usage examples for com.liferay.portal.kernel.webcache WebCacheItem convert

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.webcache WebCacheItem convert.

Prototype

public Object convert(String key) throws WebCacheException;

Source Link

Usage

From source file:com.liferay.translator.web.util.TranslatorUtil.java

License:Open Source License

public static Translation getTranslation(String fromLanguageId, String toLanguageId, String fromText)
        throws WebCacheException {

    WebCacheItem wci = new TranslatorWebCacheItem(fromLanguageId, toLanguageId, fromText);

    return (Translation) wci.convert("");
}