Examples of NavigationState


Examples of org.exoplatform.portal.mop.navigation.NavigationState

        // Create a blank navigation if needed
        SiteKey key = SiteKey.user(userName);
        NavigationContext nav = navService.loadNavigation(key);
        if (nav == null) {
            nav = new NavigationContext(key, new NavigationState(5));
            navService.saveNavigation(nav);
        }
    }
View Full Code Here

Examples of org.exoplatform.portal.mop.navigation.NavigationState

        //
        switch (mode) {
            case CONSERVE:
                if (dst == null) {
                    dst = new NavigationContext(key, new NavigationState(src.getPriority()));
                    service.saveNavigation(dst);
                } else {
                    dst = null;
                }
                break;
            case MERGE:
            case INSERT:
                if (dst == null) {
                    dst = new NavigationContext(key, new NavigationState(src.getPriority()));
                    service.saveNavigation(dst);
                }
                break;
            case OVERWRITE:
                if (dst == null) {
                    dst = new NavigationContext(key, new NavigationState(src.getPriority()));
                    service.saveNavigation(dst);
                }
                break;
            default:
                throw new AssertionError();
View Full Code Here

Examples of org.exoplatform.portal.mop.navigation.NavigationState

            int priority = Integer.parseInt(uiSelectBox.getValue());

            // update navigation
            NavigationService service = uiForm.getApplicationComponent(NavigationService.class);
            NavigationContext ctx = service.loadNavigation(userNav.getKey());
            ctx.setState(new NavigationState(priority));
            service.saveNavigation(ctx);

            UIPopupWindow uiPopup = uiForm.getParent();
            uiPopup.setShow(false);
            UIComponent opener = uiPopup.getParent();
View Full Code Here

Examples of org.exoplatform.portal.mop.navigation.NavigationState

                // create navigation for group
                SiteKey key = SiteKey.group(ownerId);
                NavigationContext existing = navigationService.loadNavigation(key);
                if (existing == null) {
                    navigationService.saveNavigation(new NavigationContext(key, new NavigationState(0)));
                }
            }

            // Update group navigation list
            ctx.addUIComponentToUpdateByAjax(uicomp);
View Full Code Here

Examples of org.exoplatform.portal.mop.navigation.NavigationState

        // Create a blank navigation if needed
        SiteKey key = SiteKey.user(userName);
        NavigationContext nav = navService.loadNavigation(key);
        if (nav == null) {
            nav = new NavigationContext(key, new NavigationState(5));
            navService.saveNavigation(nav);
        }
    }
View Full Code Here

Examples of org.exoplatform.portal.mop.navigation.NavigationState

        //
        switch (mode) {
            case CONSERVE:
                if (dst == null) {
                    dst = new NavigationContext(key, new NavigationState(src.getPriority()));
                    service.saveNavigation(dst);
                } else {
                    dst = null;
                }
                break;
            case INSERT:
                if (dst == null) {
                    dst = new NavigationContext(key, new NavigationState(src.getPriority()));
                    service.saveNavigation(dst);
                }
                break;
            case MERGE:
            case OVERWRITE:
                dst = new NavigationContext(key, new NavigationState(src.getPriority()));
                service.saveNavigation(dst);
                break;
            default:
                throw new AssertionError();
        }
View Full Code Here

Examples of org.exoplatform.portal.mop.navigation.NavigationState

            int priority = Integer.parseInt(uiSelectBox.getValue());

            // update navigation
            NavigationService service = uiForm.getApplicationComponent(NavigationService.class);
            NavigationContext ctx = service.loadNavigation(userNav.getKey());
            ctx.setState(new NavigationState(priority));
            service.saveNavigation(ctx);

            UIPopupWindow uiPopup = uiForm.getParent();
            uiPopup.setShow(false);
            UIComponent opener = uiPopup.getParent();
View Full Code Here

Examples of org.exoplatform.portal.mop.navigation.NavigationState

      // Create a blank navigation if needed
      SiteKey key = SiteKey.user(userName);
      NavigationContext nav = navService.loadNavigation(key);
      if (nav == null)
      {
         nav = new NavigationContext(key, new NavigationState(5));
         navService.saveNavigation(nav);
      }
   }
View Full Code Here

Examples of org.exoplatform.portal.mop.navigation.NavigationState

      switch (mode)
      {
         case CONSERVE:
            if (dst == null)
            {
               dst = new NavigationContext(key, new NavigationState(src.getPriority()));
               service.saveNavigation(dst);
            }
            else
            {
               dst = null;
            }
            break;
         case MERGE:
         case INSERT:
            if (dst == null)
            {
               dst = new NavigationContext(key, new NavigationState(src.getPriority()));
               service.saveNavigation(dst);
            }
            break;
         case OVERWRITE:
            if (dst == null)
            {
               dst = new NavigationContext(key, new NavigationState(src.getPriority()));
               service.saveNavigation(dst);
            }
            break;
         default:
            throw new AssertionError();
View Full Code Here

Examples of org.exoplatform.portal.mop.navigation.NavigationState

        saveDisplayNames(ctx);
    }

    @Override
    public void setPriority(int priority) {
        navCtx.setState(new NavigationState(priority));
        save(navCtx);
    }
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.