Examples of PortletRequestContext


Examples of org.exoplatform.webui.application.portlet.PortletRequestContext

      }
   }

   public boolean isShowImport()
   {
      PortletRequestContext pcontext = (PortletRequestContext)WebuiRequestContext.getCurrentInstance();
      PortletPreferences pref = pcontext.getRequest().getPreferences();
      return Boolean.parseBoolean(pref.getValue("showImport", "true"));
   }
View Full Code Here

Examples of org.exoplatform.webui.application.portlet.PortletRequestContext

{
   public static final String SHOW_IMPORT = "showImport";
  
   public UIApplicationRegistryEditMode() throws Exception
   {
      PortletRequestContext pcontext = (PortletRequestContext)WebuiRequestContext.getCurrentInstance();
      PortletPreferences pref = pcontext.getRequest().getPreferences();
      boolean isShowImport = Boolean.parseBoolean(pref.getValue(SHOW_IMPORT,"true"));
      addUIFormInput(new UIFormCheckBoxInput<Boolean>(SHOW_IMPORT, SHOW_IMPORT, isShowImport).setValue(isShowImport));
   }
View Full Code Here

Examples of org.exoplatform.webui.application.portlet.PortletRequestContext

      public void execute(Event<UIApplicationRegistryEditMode> event) throws Exception
      {
         // TODO Auto-generated method stub
         UIApplicationRegistryEditMode uiForm = event.getSource();
         boolean isShowImport = uiForm.getUIFormCheckBoxInput(SHOW_IMPORT).isChecked();
         PortletRequestContext pcontext = (PortletRequestContext)WebuiRequestContext.getCurrentInstance();
         PortletPreferences pref = pcontext.getRequest().getPreferences();
         pref.setValue(SHOW_IMPORT, Boolean.toString(isShowImport));
         pref.store();
         UIPortalApplication portalApp = Util.getUIPortalApplication();
         if (portalApp.getModeState() == UIPortalApplication.NORMAL_MODE)
            pcontext.setApplicationMode(PortletMode.VIEW);
        
      }
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.