Package org.exoplatform.portal.pom.data

Examples of org.exoplatform.portal.pom.data.Mapper


        POMSession session = pomMgr.getSession();
        WorkspaceObject workspaceObject = session.findObjectById(applicationStorageId);

        if (workspaceObject instanceof UIWindow) {
            UIWindow application = (UIWindow) workspaceObject;
            Mapper mapper = new Mapper(session);

            ApplicationData data = mapper.load(application);
            return data;
        }
        throw new NoSuchDataException("Could not load the application data specified by the ID: " + applicationStorageId);
    }
View Full Code Here


        public DashboardData run(POMSession session) {
            UIContainer container = session.findObjectById(ObjectType.CONTAINER, storageId);

            //
            if (container != null) {
                return new Mapper(session).loadDashboard(container);
            }

            //
            return null;
        }
View Full Code Here

            if (container == null) {
                throw new IllegalArgumentException();
            }

            //
            Mapper mapper = new Mapper(session);

            //
            mapper.saveDashboard(dashboard, container);

            //
            return null;
        }
View Full Code Here

            final Collection<? extends Site> portals = workspace.getSites(siteType);
            final Iterator<? extends Site> iterator = portals.iterator();
            ListAccess<PortalData> la = new ListAccess<PortalData>() {
                public PortalData[] load(int index, int length) throws Exception {
                    // Iterator<? extends Site> iterator = portals.iterator();
                    Mapper mapper = new Mapper(session);
                    PortalData[] result = new PortalData[length];
                    for (int i = 0; i < length; i++) {
                        result[i] = mapper.load(iterator.next());
                    }
                    return result;
                }

                public int getSize() throws Exception {
View Full Code Here

                site = workspace.addSite(type, config.getName());
                Page root = site.getRootPage();
                root.addChild("pages");
                root.addChild("templates");
            }
            new Mapper(session).save(config, site);

            //
            return null;
        }
View Full Code Here

        public PortalData run(POMSession session) {
            Workspace workspace = session.getWorkspace();
            Site site = workspace.getSite(type, key.getId());
            if (site != null) {
                return new Mapper(session).load(site);
            }

            //
            return null;
        }
View Full Code Here

         UIContainer container = session.findObjectById(ObjectType.CONTAINER, storageId);

         //
         if (container != null)
         {
            return new Mapper(session).loadDashboard(container);
         }

         //
         return null;
      }
View Full Code Here

         {
            throw new IllegalArgumentException();
         }

         //
         Mapper mapper = new Mapper(session);

         //
         mapper.saveDashboard(dashboard, container);

         //
         return null;
      }
View Full Code Here

         return new PageData[length];
      }

      protected PageData loadT(POMSession session, org.gatein.mop.api.workspace.Page w)
      {
         return new Mapper(session).load(w);
      }
View Full Code Here

         return new NavigationData[length];
      }

      protected NavigationData loadT(POMSession session, Navigation w)
      {
         return new Mapper(session).load(w);
      }
View Full Code Here

TOP

Related Classes of org.exoplatform.portal.pom.data.Mapper

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.