Package org.exoplatform.portal.webui.portal

Examples of org.exoplatform.portal.webui.portal.UIPortal


    * This methods return the public render parameters names supported by the targeted portlet; in other words, it sorts
    * the full public render params list and only return the ones that the current portlet can handle
    */
   public List<String> getPublicRenderParamNames()
   {
      UIPortal uiPortal = Util.getUIPortal();
      Map<String, String[]> publicParams = uiPortal.getPublicParameters();

      List<String> publicParamsSupportedByPortlet = new ArrayList<String>();
      if (publicParams != null)
      {
         Set<String> keys = publicParams.keySet();
View Full Code Here


   }

   public Map<String, String[]> getPublicParameters()
   {
      Map<String, String[]> publicParamsMap = new HashMap<String, String[]>();
      UIPortal uiPortal = Util.getUIPortal();
      Map<String, String[]> publicParams = uiPortal.getPublicParameters();
      Set<String> allPublicParamsNames = publicParams.keySet();
      List<String> supportedPublicParamNames = getPublicRenderParamNames();
      for (String oneOfAllParams : allPublicParamsNames)
      {
         if (supportedPublicParamNames.contains(oneOfAllParams))
View Full Code Here

   static public class ViewStep3ActionListener extends EventListener<UIPageCreationWizard>
   {

      private void setDefaultPermission(Page page, String ownerType, String ownerId)
      {
         UIPortal uiPortal = Util.getUIPortal();
         if (PortalConfig.PORTAL_TYPE.equals(ownerType))
         {
            page.setAccessPermissions(uiPortal.getAccessPermissions());
            page.setEditPermission(uiPortal.getEditPermission());
         }
         else if (PortalConfig.GROUP_TYPE.equals(ownerType))
         {
            UserACL acl = Util.getUIPortalApplication().getApplicationComponent(UserACL.class);
            ownerId = ownerId.startsWith("/") ? ownerId : "/" + ownerId;
View Full Code Here

         if (isDesktopPage)
         {
            uiWizard.saveData();
            PageNode selectedNode = uiNodeSelector.getSelectedPageNode();
            UIPortal uiPortal = Util.getUIPortal();
            PageNodeEvent<UIPortal> pnevent = new PageNodeEvent<UIPortal>(uiPortal, PageNodeEvent.CHANGE_PAGE_NODE, selectedNode.getUri());
            uiPortal.broadcast(pnevent, Event.Phase.PROCESS);
            uiWizard.updateUIPortal(event);
            return;
         }

         uiWizard.updateWizardComponent();
View Full Code Here

   {
      public void execute(Event<UIContainer> event) throws Exception
      {

         UIContainer uiContainer = event.getSource();
         UIPortal uiPortal = Util.getUIPortal();
         UIPortalApplication uiApp = uiPortal.getAncestorOfType(UIPortalApplication.class);
         UIMaskWorkspace uiMaskWS = uiApp.getChildById(UIPortalApplication.UI_MASK_WS_ID);
         UIContainerForm containerForm = uiMaskWS.createUIComponent(UIContainerForm.class, null, null);
         containerForm.setValues(uiContainer);
         uiMaskWS.setUIComponent(containerForm);
         uiMaskWS.setShow(true);
View Full Code Here

   {
      @Override
      public void execute(Event<UIBreadcumbs> event) throws Exception
      {
         String uri = event.getRequestContext().getRequestParameter(OBJECTID);
         UIPortal uiPortal = Util.getUIPortal();
         PageNodeEvent<UIPortal> pnevent = new PageNodeEvent<UIPortal>(uiPortal, PageNodeEvent.CHANGE_PAGE_NODE, uri);
         uiPortal.broadcast(pnevent, Event.Phase.PROCESS);
      }
View Full Code Here

         if (gadgetManager != null)
            gadgetManager.reload();
      }

      PortalRequestContext portalContext = org.exoplatform.portal.webui.util.Util.getPortalRequestContext();
      UIPortal uiPortal = org.exoplatform.portal.webui.util.Util.getUIPortal();
      MonitorEvent<UIPortal> pnevent = new MonitorEvent<UIPortal>(uiPortal, "ChangeApplicationList", portalContext);
      uiPortal.broadcast(pnevent, Event.Phase.PROCESS);
   }
View Full Code Here

     */
    public Set<Skin> getPortletSkins() {
        // Determine portlets visible on the page
        List<UIPortlet> uiportlets = new ArrayList<UIPortlet>();
        UIWorkingWorkspace uiWorkingWS = getChildById(UI_WORKING_WS_ID);
        UIPortal uiPortal = uiWorkingWS.findFirstComponentOfType(UIPortal.class);
        uiPortal.findComponentOfType(uiportlets, UIPortlet.class);
        UIPortalToolPanel toolPanel = uiWorkingWS.findFirstComponentOfType(UIPortalToolPanel.class);
        if (toolPanel != null && toolPanel.isRendered()) {
            toolPanel.findComponentOfType(uiportlets, UIPortlet.class);
        }

View Full Code Here

    public String getTitle() throws Exception {
        String title = (String) request_.getAttribute(REQUEST_TITLE);

        //
        if (title == null) {
            UIPortal uiportal = Util.getUIPortal();

            //
            UserNode node = uiportal.getSelectedUserNode();
            if (node != null) {
                ExoContainer container = getApplication().getApplicationServiceContainer();
                container.getComponentInstanceOfType(UserPortalConfigService.class);
                UserPortalConfigService configService = (UserPortalConfigService) container
                        .getComponentInstanceOfType(UserPortalConfigService.class);
View Full Code Here

    /**
     * This methods return the public render parameters names supported by the targeted portlet; in other words, it sorts the
     * full public render params list and only return the ones that the current portlet can handle
     */
    public List<String> getPublicRenderParamNames() {
        UIPortal uiPortal = Util.getUIPortal();
        Map<String, String[]> publicParams = uiPortal.getPublicParameters();

        List<String> publicParamsSupportedByPortlet = new ArrayList<String>();
        if (publicParams != null) {
            Set<String> keys = publicParams.keySet();
            for (String key : keys) {
View Full Code Here

TOP

Related Classes of org.exoplatform.portal.webui.portal.UIPortal

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.