Package com.liferay.portal.struts

Examples of com.liferay.portal.struts.MultiMessageResources.reload()


          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


     
    } 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

   */
  public void clearCache() throws DotRuntimeException {

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

  }

  public void checkSessionLocale(HttpServletRequest httpRequest) {

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

TOP
Copyright © 2018 www.massapi.com. 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.