Package com.liferay.portal.struts

Examples of com.liferay.portal.struts.MultiMessageResources


        } else {
          toDeleteKeys.add(key);
        }
      }
    langAPI.saveLanguageKeys(lang, generalKeys, specificKeys, toDeleteKeys);
    MultiMessageResources messages = (MultiMessageResources) req.getAttribute(Globals.MESSAGES_KEY);
    messages.reload();
   
        SessionMessages.add(req, "message", "message.languagemanager.save");
        return true;
    }
View Full Code Here


      Logger.debug(this, VALIDATE_CACHE + " DATE_MILLIS: " + dateInMillis);
     
    } else if (v.toString().equals("ACK")) {
      Logger.info(this, "ACK Received " + new Date());
    } else if(v.toString().equals("MultiMessageResources.reload")) {
      MultiMessageResources messages = (MultiMessageResources) Config.CONTEXT.getAttribute( Globals.MESSAGES_KEY );
            messages.reload();
    } else if (v.toString().equals(DUMMY_TEXT_TO_SEND)) {
      //Don't do anything is we are only checking sending.
    } else {
      invalidateCacheFromCluster(v.toString());
    }
View Full Code Here

   * @throws DotRuntimeException
   */
  public void clearCache() throws DotRuntimeException {

    langAPI.clearCache();
    MultiMessageResources messages = (MultiMessageResources) MultiMessageResourcesFactory.getResources();
    messages.reload();

  }
View Full Code Here

            //Cleaning cache
            CacheLocator.getLanguageCache().removeLanguageKeys( lang.getLanguageCode(), lang.getCountryCode() );
            CacheLocator.getLanguageCache().removeLanguageKeys( lang.getLanguageCode(), null );
            //Force the reading of the languages files as we add/remove/edit keys
            MultiMessageResources messages = (MultiMessageResources) Config.CONTEXT.getAttribute( Globals.MESSAGES_KEY );
            messages.reload();
        } catch (IOException e) {
      Logger.error(this, "A IOException as occurred while saving the properties files", e);
      throw new DotRuntimeException("A IOException as occurred while saving the properties files", e);
    }
View Full Code Here

      // Logger.error(this,e.getMessage(),e);
      // }

      // Message Resources

      MultiMessageResources messageResources = (MultiMessageResources) ctx.getAttribute(Globals.MESSAGES_KEY);

      messageResources.setServletContext(ctx);

      WebAppPool.put(_companyId, Globals.MESSAGES_KEY, messageResources);

      // Current users
View Full Code Here

TOP

Related Classes of com.liferay.portal.struts.MultiMessageResources

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.