Package org.infoglue.deliver.applications.databeans

Examples of org.infoglue.deliver.applications.databeans.ComponentBinding


    if(property != null)
    { 
      List<ComponentBinding> bindings = (List<ComponentBinding>)property.get("bindings");
      if(bindings.size() > 0)
      {
        ComponentBinding componentBinding = bindings.get(0);
        boundContentId = componentBinding.getEntityId();
        //boundContentId = new Integer((String)bindings.get(0));
      }
    }
   
    return boundContentId;
View Full Code Here


    if(property != null)
    { 
      List<ComponentBinding> bindings = (List<ComponentBinding>)property.get("bindings");
      if(bindings.size() > 0)
      {
        ComponentBinding componentBinding = bindings.get(0);
        assetKey = componentBinding.getAssetKey();
        //boundContentId = new Integer((String)bindings.get(0));
      }
    }
   
    return assetKey;
View Full Code Here

   
        List<ComponentBinding> bindings = (List<ComponentBinding>)property.get("bindings");
      Iterator<ComponentBinding> bindingsIterator = bindings.iterator();
      while(bindingsIterator.hasNext())
      {
        ComponentBinding componentBinding = bindingsIterator.next();
        Integer contentId = componentBinding.getEntityId();
        contents.add(this.templateController.getContent(contentId));
      }
    }

    return contents;
View Full Code Here

      if(property != null)
    { 
        List<ComponentBinding> bindings = (List<ComponentBinding>)property.get("bindings");
      if(bindings.size() > 0)
      {
        ComponentBinding componentBinding = bindings.get(0);
          siteNodeId = componentBinding.getEntityId();
      }
    }

    return siteNodeId;
  }
View Full Code Here

   
        List<ComponentBinding> bindings = (List<ComponentBinding>)property.get("bindings");
      Iterator<ComponentBinding> bindingsIterator = bindings.iterator();
        while(bindingsIterator.hasNext())
      {
        ComponentBinding componentBinding = bindingsIterator.next();
          Integer siteNodeId = componentBinding.getEntityId();
          SiteNodeVO siteNodeVO = templateController.getSiteNode(siteNodeId);
        if(siteNodeVO != null && !siteNodeVO.getIsDeleted())
          siteNodeVOList.add(siteNodeVO);
      }
    }
View Full Code Here

   
        List<ComponentBinding> bindings = (List<ComponentBinding>)property.get("bindings");
      Iterator<ComponentBinding> bindingsIterator = bindings.iterator();
      while(bindingsIterator.hasNext())
      {
        ComponentBinding componentBinding = bindingsIterator.next();
        Integer siteNodeId = componentBinding.getEntityId();
        SiteNodeVO siteNode = templateController.getSiteNode(siteNodeId);
        if(siteNode != null && !siteNode.getIsDeleted())
        {
          WebPage webPage = new WebPage();         
          webPage.setSiteNodeId(siteNodeId);
View Full Code Here

        List<ComponentBinding> bindings = (List<ComponentBinding>)property.get("bindings");
      Iterator<ComponentBinding> bindingsIterator = bindings.iterator();
      if(bindingsIterator.hasNext())
      {
        webPage = new WebPage();
        ComponentBinding componentBinding = bindingsIterator.next();
        Integer siteNodeId = componentBinding.getEntityId();
        SiteNodeVO siteNode = templateController.getSiteNode(siteNodeId);
        if(siteNode != null && !siteNode.getIsDeleted())
        {
          webPage.setSiteNodeId(siteNodeId);
          webPage.setLanguageId(templateController.getLanguageId());
View Full Code Here

      EntityVOWithSupplementingEntityVO entity;
      while(bindingsIterator.hasNext())
      {
        try
        {
          ComponentBinding componentBinding = bindingsIterator.next();
          entity = new EntityVOWithSupplementingEntityVO();
          Integer contentId = componentBinding.getEntityId();
          entity.setEntity(this.templateController.getContent(contentId));
          if (componentBinding instanceof SupplementedComponentBinding)
          {
            try
            {
View Full Code Here

      EntityVOWithSupplementingEntityVO entity;
      while(bindingsIterator.hasNext())
      {
        try
        {
          ComponentBinding componentBinding = bindingsIterator.next();
          entity = new EntityVOWithSupplementingEntityVO();

          if ("Content".equalsIgnoreCase(componentBinding.getEntityClass()))
          {
            Integer contentId = componentBinding.getEntityId();
            entity.setEntity(this.templateController.getContent(contentId));
          }
          else if ("External".equalsIgnoreCase(componentBinding.getEntityClass()))
          {
            Integer entityId = componentBinding.getEntityId();
            entity.setEntity(new EntityVOWithSupplementingEntityVO.IdOnlyBaseEntityVO(entityId));
          }

          if (componentBinding instanceof SupplementedComponentBinding)
          {
View Full Code Here

TOP

Related Classes of org.infoglue.deliver.applications.databeans.ComponentBinding

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.