Package org.exoplatform.portal.config.model

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


    protected static final Log log = ExoLogger.getLogger("portal:PortalDataMapper");

    @SuppressWarnings("unchecked")
    public static ModelObject buildModelObject(UIComponent uiComponent) {
        ModelObject model = null;
        if (uiComponent instanceof UIPortal) {
            model = toPortal((UIPortal) uiComponent);
        } else if (uiComponent instanceof UIPageBody) {
            model = new PageBody(((UIPageBody) uiComponent).getStorageId());
        } else if (uiComponent instanceof UIPage) {
View Full Code Here


        List<UIComponent> uiChildren = uiContainer.getChildren();
        if (uiChildren == null)
            return;
        ArrayList<ModelObject> children = new ArrayList<ModelObject>();
        for (UIComponent child : uiChildren) {
            ModelObject component = buildModelObject(child);
            if (component != null)
                children.add(component);
        }
        model.setChildren(children);
    }
View Full Code Here

        List<UIComponent> children = uiPortal.getChildren();
        if (children == null)
            return model;
        ArrayList<ModelObject> newChildren = new ArrayList<ModelObject>();
        for (UIComponent child : children) {
            ModelObject component = buildModelObject(child);
            if (component != null)
                newChildren.add(component);
        }
        model.getPortalLayout().setChildren(newChildren);
        return model;
View Full Code Here

            List<UIComponent> uiChildren = uiPage.getChildren();
            if (uiChildren == null)
                return;
            ArrayList<ModelObject> children = new ArrayList<ModelObject>();
            for (UIComponent child : uiChildren) {
                ModelObject component = PortalDataMapper.buildModelObject(child);
                if (component != null)
                    children.add(component);
            }
            page.setChildren(children);
            uiPage.getChildren().clear();
View Full Code Here

            return;
         }
         ArrayList<ModelObject> children = new ArrayList<ModelObject>();
         for (UIComponent child : uiChildren)
         {
            ModelObject component = PortalDataMapper.buildModelObject(child);
            if (component != null)
               children.add(component);
         }
         page.setChildren(children);
         uiPage.getChildren().clear();
View Full Code Here

         if (uiChildren == null)
            return;
         ArrayList<ModelObject> children = new ArrayList<ModelObject>();
         for (UIComponent child : uiChildren)
         {
            ModelObject component = PortalDataMapper.buildModelObject(child);
            if (component != null)
               children.add(component);
         }
         page.setChildren(children);
         uiPage.getChildren().clear();
View Full Code Here

   protected static final Log log = ExoLogger.getLogger("portal:PortalDataMapper");

   @SuppressWarnings("unchecked")
   public static ModelObject buildModelObject(UIComponent uiComponent)
   {
      ModelObject model = null;
      if (uiComponent instanceof UIPortal)
      {
         model = toPortal((UIPortal)uiComponent);
      }
      else if (uiComponent instanceof UIPageBody)
View Full Code Here

      if (uiChildren == null)
         return;
      ArrayList<ModelObject> children = new ArrayList<ModelObject>();
      for (UIComponent child : uiChildren)
      {
         ModelObject component = buildModelObject(child);
         if (component != null)
            children.add(component);
      }
      model.setChildren(children);
   }
View Full Code Here

      if (children == null)
         return model;
      ArrayList<ModelObject> newChildren = new ArrayList<ModelObject>();
      for (UIComponent child : children)
      {
         ModelObject component = buildModelObject(child);
         if (component != null)
            newChildren.add(component);
      }
      model.getPortalLayout().setChildren(newChildren);
      return model;
View Full Code Here

    protected static final Log log = ExoLogger.getLogger("portal:PortalDataMapper");

    @SuppressWarnings("unchecked")
    public static ModelObject buildModelObject(UIComponent uiComponent) {
        ModelObject model = null;
        if (uiComponent instanceof UIPortal) {
            model = toPortal((UIPortal) uiComponent);
        } else if (uiComponent instanceof UIPageBody) {
            model = new PageBody(((UIPageBody) uiComponent).getStorageId());
        } else if (uiComponent instanceof UIPage) {
View Full Code Here

TOP

Related Classes of org.exoplatform.portal.config.model.ModelObject

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.