Package org.exoplatform.portal.mop.management.exportimport

Examples of org.exoplatform.portal.mop.management.exportimport.PageImportTask


                            return mgr.getSession().getWorkspace()
                                    .getSite(Utils.getObjectType(siteKey.getType()), siteKey.getName());
                        }
                    };
                    // Add import task to run later.
                    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);
View Full Code Here


                            return mgr.getSession().getWorkspace()
                                    .getSite(Utils.getObjectType(siteKey.getType()), siteKey.getName());
                        }
                    };
                    // Add import task to run later.
                    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);
View Full Code Here

                  page.setOwnerType(siteKey.getTypeName());
                  page.setOwnerId(siteKey.getName());
               }

               // Add import task to run later.
               mopImport.pageTask = new PageImportTask(pages, siteKey, dataStorage);
            }
            else if (file.equals(NavigationExportTask.FILE))
            {
               // Unmarshal navigation data
               Marshaller<PageNavigation> marshaller = operationContext.getBindingProvider().getMarshaller(PageNavigation.class, ContentType.XML);
View Full Code Here

                            return mgr.getSession().getWorkspace()
                                    .getSite(Utils.getObjectType(siteKey.getType()), siteKey.getName());
                        }
                    };
                    // Add import task to run later.
                    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);
View Full Code Here

                public Site getSite(SiteKey siteKey) {
                    return svc.mgr.getSession().getWorkspace()
                            .getSite(Utils.getObjectType(siteKey.getType()), siteKey.getName());
                }
            };
            mopImport.pageTask = new PageImportTask(pageSet, siteKey, svc.dataStorage, svc.pageService, siteProvider);
        }

        if (mopTemplate.pageNavigation != null) {
            PageNavigation pageNavigation = applyPattern(mopTemplate.pageNavigation, owner);
            pageNavigation.setOwnerType(siteKey.getTypeName());
View Full Code Here

TOP

Related Classes of org.exoplatform.portal.mop.management.exportimport.PageImportTask

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.