Package org.exoplatform.portal.mop.navigation

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


            storage_.create(cfg);
        }

        // 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


        // Filters groups with Navigation activated
        Iterator<String> iterGroupNames = groupNames.iterator();
        while (iterGroupNames.hasNext()) {
            String name = iterGroupNames.next();
            NavigationContext navigation = svc.navigationService.loadNavigation(SiteKey.group(name));
            if (navigation == null || navigation.getState() == null) {
                iterGroupNames.remove();
            }
        }

        for (String groupName : groupNames) {
View Full Code Here

    private NavigationUtils() {
    }

    public static PageNavigation loadPageNavigation(NavigationKey key, NavigationService navigationService,
            DescriptionService descriptionService) {
        NavigationContext navigation = navigationService.loadNavigation(key.getSiteKey());
        if (navigation == null)
            return null;

        NodeContext<NodeContext<?>> node = loadNode(navigationService, navigation, key.getNavUri());
        if (node == null)
View Full Code Here

    }

    protected String getNodeIfExists(String redirectSite, String requestPath, Boolean useCommonAncestor) {
        log.info("GetNodeExits called [" + redirectSite + "] : [" + requestPath + "]");

        NavigationContext navContext = null;

        if (redirectSite == null || navService == null) {
            log.warn("Redirect site name [" + redirectSite + "] or the navigation service object [" + navService
                    + "] is null. Cannot perform redirect.");
            return null;
View Full Code Here

TOP

Related Classes of org.exoplatform.portal.mop.navigation.NavigationContext

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.