Package org.infoglue.deliver.applications.databeans

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


     
      String entity   = property.attributeValue("entity");
      String entityId = property.attributeValue("entityId");
      String assetKey = property.attributeValue("assetKey");
     
      ComponentBinding componentBinding = new ComponentBinding();
      componentBinding.setEntityClass(entity);
      componentBinding.setEntityId(new Integer(entityId));
      componentBinding.setAssetKey(assetKey);

      componentBindings.add(componentBinding);
    }
   
    return componentBindings;
View Full Code Here


      //logger.info("entityId:" + entityId);
     
      if(entityClass.equalsIgnoreCase("Content"))
      {
        ContentVO contentVO = ContentDeliveryController.getContentDeliveryController().getContentVO(getDatabase(), new Integer(entityId), getDeliveryContext());
        ComponentBinding componentBinding = new ComponentBinding();
        componentBinding.setId(new Integer(id));
        componentBinding.setComponentId(componentId);
        componentBinding.setEntityClass(entityClass);
        componentBinding.setEntityId(new Integer(entityId));
        componentBinding.setAssetKey(assetKey);
        componentBinding.setBindingPath(contentVO.getName());
       
        contentBindings.add(componentBinding);
      }
    }
     
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 boundContentId   = componentBinding.getEntityId();
        String assetKey     = componentBinding.getAssetKey();
       
        if(assetKey != null && !assetKey.equals(""))
          assets.add(templateController.getAsset(boundContentId, assetKey));
        else
          assets.addAll(templateController.getAssets(boundContentId));
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 boundContentId   = componentBinding.getEntityId();
        String assetKey     = componentBinding.getAssetKey();
   
        if(assetKey != null && !assetKey.equals(""))
          assetUrls.add(templateController.getAssetUrl(boundContentId, assetKey));
        else
          assetUrls.addAll(templateController.getAssetUrls(boundContentId));
View Full Code Here

    {
        List<ComponentBinding> bindings = (List<ComponentBinding>)property.get("bindings");
      Iterator<ComponentBinding> bindingsIterator = bindings.iterator();
      while(bindingsIterator.hasNext())
      {
        ComponentBinding componentBinding = bindingsIterator.next();
        bindingList.add(componentBinding.getEntityId());
      }
    }

    return bindingList;
  }
View Full Code Here

              String entityName = bindingElement.getAttribute("entity");
              String entityId = bindingElement.getAttribute("entityId");
              String assetKey = bindingElement.getAttribute("assetKey");
              //logger.info("Binding found:" + entityName + ":" + entityId);
             
              ComponentBinding componentBinding = new ComponentBinding();
              //componentBinding.setId(new Integer(id));
              //componentBinding.setComponentId(componentId);
              componentBinding.setEntityClass(entity);
              componentBinding.setEntityId(new Integer(entityId));
              componentBinding.setAssetKey(assetKey);
              //componentBinding.setBindingPath(path);
             
              bindings.add(componentBinding);
              /*
              if(entityName.equalsIgnoreCase("Content"))
 
View Full Code Here

        String entityName = bindingElement.getAttribute("entity");
        String entityId = bindingElement.getAttribute("entityId");
        String assetKey = bindingElement.getAttribute("assetKey");
        //logger.info("Binding found:" + entityName + ":" + entityId);
       
        ComponentBinding componentBinding = new ComponentBinding();
        //componentBinding.setId(new Integer(id));
        //componentBinding.setComponentId(componentId);
        componentBinding.setEntityClass(entity);
        componentBinding.setEntityId(new Integer(entityId));
        componentBinding.setAssetKey(assetKey);
        //componentBinding.setBindingPath(path);
       
        bindings.add(componentBinding);
        /*
        if(entityName.equalsIgnoreCase("Content"))
 
View Full Code Here

        String entityName = bindingElement.attributeValue("entity");
        String entityId = bindingElement.attributeValue("entityId");
        String assetKey = bindingElement.attributeValue("assetKey");
        //logger.info("Binding found:" + entityName + ":" + entityId);
       
        ComponentBinding componentBinding = new ComponentBinding();
        //componentBinding.setId(new Integer(id));
        //componentBinding.setComponentId(componentId);
        componentBinding.setEntityClass(entity);
        componentBinding.setEntityId(new Integer(entityId));
        componentBinding.setAssetKey(assetKey);
        //componentBinding.setBindingPath(path);
       
        bindings.add(componentBinding);
        /*
        if(entityName.equalsIgnoreCase("Content"))
 
View Full Code Here

        //logger.info("Binding found:" + entityName + ":" + entityId);

        if(propertyName.equals("GUFlashImages") || propertyName.equals("MiniArticleShortcuts"))
          this.templateController.getDeliveryContext().addDebugInformation("DEBUG INFO property halfway: " + entityName + ":" + entityId + ":" + assetKey + " (Thread" + Thread.currentThread().getId() + ").\n");

        ComponentBinding componentBinding = new ComponentBinding();
        //componentBinding.setId(new Integer(id));
        //componentBinding.setComponentId(componentId);
        componentBinding.setEntityClass(entity);
        componentBinding.setEntityId(new Integer(entityId));
        componentBinding.setAssetKey(assetKey);
        //componentBinding.setBindingPath(path);
       
        bindings.add(componentBinding);
       
        /*
 
View Full Code Here

            Element bindingElement = (Element)bindingNodeList.item(j);
            String entityName = bindingElement.getAttribute("entity");
            String entityId = bindingElement.getAttribute("entityId");
            String assetKey = bindingElement.getAttribute("assetKey");
           
            ComponentBinding componentBinding = new ComponentBinding();
            //componentBinding.setId(new Integer(id));
            //componentBinding.setComponentId(componentId);
            componentBinding.setEntityClass(entity);
            componentBinding.setEntityId(new Integer(entityId));
            componentBinding.setAssetKey(assetKey);
            //componentBinding.setBindingPath(path);

            /*
            if(entityName.equalsIgnoreCase("Content"))
            {
 
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.