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

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


                        throw new OperationException(operationName,
                                "Name of site does not match that of the zip entry site name.");
                    }

                    // Add import task to run later
                    mopImport.siteTask = new SiteLayoutImportTask(portalConfig, siteKey, dataStorage);
                } else if (file.equals(PageExportTask.FILE)) {
                    // Unmarshal page data
                    Marshaller<Page.PageSet> marshaller = operationContext.getBindingProvider().getMarshaller(
                            Page.PageSet.class, ContentType.XML);
                    Page.PageSet pages = marshaller.unmarshal(zis);
View Full Code Here


                        throw new OperationException(operationName,
                                "Name of site does not match that of the zip entry site name.");
                    }

                    // Add import task to run later
                    mopImport.siteTask = new SiteLayoutImportTask(portalConfig, siteKey, dataStorage);
                } else if (file.equals(PageExportTask.FILE)) {
                    // Unmarshal page data
                    Marshaller<Page.PageSet> marshaller = operationContext.getBindingProvider().getMarshaller(
                            Page.PageSet.class, ContentType.XML);
                    Page.PageSet pages = marshaller.unmarshal(zis);
View Full Code Here

               {
                  throw new OperationException(operationName, "Name of site does not match that of the zip entry site name.");
               }

               // Add import task to run later
               mopImport.siteTask = new SiteLayoutImportTask(portalConfig, siteKey, dataStorage);
            }
            else if (file.equals(PageExportTask.FILE))
            {
               // Unmarshal page data
               Marshaller<Page.PageSet> marshaller = operationContext.getBindingProvider().getMarshaller(Page.PageSet.class, ContentType.XML);
View Full Code Here

                        throw new OperationException(operationName,
                                "Name of site does not match that of the zip entry site name.");
                    }

                    // Add import task to run later
                    mopImport.siteTask = new SiteLayoutImportTask(portalConfig, siteKey, dataStorage);
                } else if (file.equals(PageExportTask.FILE)) {
                    // Unmarshal page data
                    Marshaller<Page.PageSet> marshaller = operationContext.getBindingProvider().getMarshaller(
                            Page.PageSet.class, ContentType.XML);
                    Page.PageSet pages = marshaller.unmarshal(zis);
View Full Code Here

            throws Throwable {

        if (mopTemplate.portalConfig != null) {
            PortalConfig portalConfig = applyPattern(mopTemplate.portalConfig, owner);
            portalConfig.setType(siteKey.getTypeName());
            mopImport.siteTask = new SiteLayoutImportTask(portalConfig, siteKey, svc.dataStorage);
        }

        if (mopTemplate.pageSet != null) {
            Page.PageSet pageSet = applyPattern(mopTemplate.pageSet, owner);
            for (Page page : pageSet.getPages()) {
View Full Code Here

TOP

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

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.