Examples of PageNavigation


Examples of org.exoplatform.portal.config.model.PageNavigation

   }

   /** Fetch navigation (specified by ownerType, ownerId) from the list of all navigations and set it as selected navigation **/
   public void updateSelectedNavigation(String ownerType, String ownerId)
   {
      PageNavigation targetNavigation = null;
      for (PageNavigation nav : navigations)
      {
         if (nav.getOwnerType().equals(ownerType) && nav.getOwnerId().equals(ownerId))
         {
            targetNavigation = nav;
View Full Code Here

Examples of org.exoplatform.portal.config.model.PageNavigation

   private void removeGroupNavigation(Group group, DataStorage dataService) throws Exception
   {
      GroupHandler groupHandler = orgService.getGroupHandler();
      Collection<String> descendantGroups = getDescendantGroups(group, groupHandler);
      PageNavigation navigation = null;
      for (String childGroup : descendantGroups)
      {
         navigation = dataService.getPageNavigation(PortalConfig.GROUP_TYPE, childGroup);
         if (navigation != null)
            dataService.remove(navigation);
View Full Code Here

Examples of org.exoplatform.portal.config.model.PageNavigation

      }
   }

   public void createPageNavigation(NewPortalConfig config, String owner) throws Exception
   {
      PageNavigation navigation = getConfig(config, owner, "navigation", PageNavigation.class);
      if (navigation == null)
      {
         return;
      }
      PageNavigation currentNavigation = dataStorage_.getPageNavigation(navigation.getOwner());
      if (currentNavigation == null)
      {
         dataStorage_.create(navigation);
      }
      else
View Full Code Here

Examples of org.exoplatform.portal.config.model.PageNavigation

      UnmarshallingContext uctx = (UnmarshallingContext)bfact.createUnmarshallingContext();
      uctx.setDocument(is, null, "UTF-8", false);
      T o = clazz.cast(uctx.unmarshalElement());
      if (o instanceof PageNavigation)
      {
         PageNavigation nav = (PageNavigation)o;
         nav.setOwnerType(ownerType);
         nav.setOwnerId(owner);
         fixOwnerName((PageNavigation)o);
      }
      else if (o instanceof PortalConfig)
      {
         PortalConfig portalConfig = (PortalConfig)o;
View Full Code Here

Examples of org.exoplatform.portal.config.model.PageNavigation

   }

   public PageNavigation getPageNavigation(String ownerType, String id) throws Exception
   {
      NavigationData data = delegate.getPageNavigation(new NavigationKey(ownerType, id));
      return data != null ? new PageNavigation(data) : null;
   }
View Full Code Here

Examples of org.exoplatform.portal.config.model.PageNavigation

   public PageNavigation getPageNavigation(String fullId) throws Exception
   {
      NavigationKey key = NavigationKey.create(fullId);
      NavigationData data = delegate.getPageNavigation(key);
      return data != null ? new PageNavigation(data) : null;
   }
View Full Code Here

Examples of org.exoplatform.portal.config.model.PageNavigation

         Bilto<PageNavigation, NavigationData> bilto = new Bilto<PageNavigation, NavigationData>((Query<PageNavigation>)q, NavigationData.class, (Comparator<PageNavigation>)sortComparator)
         {
            @Override
            protected PageNavigation create(NavigationData page)
            {
               return new PageNavigation(page);
            }
         };
         return (ListAccess<T>)bilto.execute();
      }
      else if (type == PortalConfig.class)
View Full Code Here

Examples of org.exoplatform.portal.config.model.PageNavigation

        if (obj == null) {
            return;
        }

        //
        PageNavigation navigation = obj.getObject();

        //
        ImportMode importMode = getRightMode(config.getImportMode());

        //
View Full Code Here

Examples of org.exoplatform.portal.config.model.PageNavigation

    private <T> UnmarshalledObject<T> fromXML(String ownerType, String owner, String xml, Class<T> clazz) throws Exception {
        UnmarshalledObject<T> obj = ModelUnmarshaller.unmarshall(clazz, xml.getBytes("UTF-8"));
        T o = obj.getObject();
        if (o instanceof PageNavigation) {
            PageNavigation nav = (PageNavigation) o;
            nav.setOwnerType(ownerType);
            nav.setOwnerId(owner);
            fixOwnerName((PageNavigation) o);
        } else if (o instanceof PortalConfig) {
            PortalConfig portalConfig = (PortalConfig) o;
            portalConfig.setType(ownerType);
            portalConfig.setName(owner);
View Full Code Here

Examples of org.exoplatform.portal.config.model.PageNavigation

                    mopImport.pageTask = new PageImportTask(pages, siteKey, dataStorage, pageService, siteProvider);
                } else if (file.equals(NavigationExportTask.FILE)) {
                    // Unmarshal navigation data
                    Marshaller<PageNavigation> marshaller = operationContext.getBindingProvider().getMarshaller(
                            PageNavigation.class, ContentType.XML);
                    PageNavigation navigation = marshaller.unmarshal(zis);
                    navigation.setOwnerType(siteKey.getTypeName());
                    navigation.setOwnerId(siteKey.getName());

                    // Add import task to run later
                    mopImport.navigationTask = new NavigationImportTask(navigation, siteKey, navigationService,
                            descriptionService, dataStorage);
                }
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.