Package com.liferay.portal.util

Examples of com.liferay.portal.util.WebCacheable


public class TranslatorUtil {

  public static Translation getTranslation(
    String translationId, String fromText) {

    WebCacheable wc = new TranslationConverter(translationId, fromText);

    return (Translation)WebCachePool.get(
      "translator." + translationId + "|" +
        Base64.objectToString(fromText),
      wc);
View Full Code Here


    }

    String toText = null;

    try {
      WebCacheable wc =
        new TranslationConverter(translationId, fromText);

      Translation translation = (Translation)wc.convert("");

      toText = translation.getToText();

      if ((toText != null) &&  (toText.indexOf("Babel") != -1)) {
        Logger.info(this, "Please manually check for errors.");
View Full Code Here

TOP

Related Classes of com.liferay.portal.util.WebCacheable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.