Package org.infoglue.deliver.util

Examples of org.infoglue.deliver.util.Timer.printElapsedTime()


        catch(Exception e)
        {
            throw new SystemException("There was a problem parsing the component structure on the page. Could be invalid XML in the ComponentStructure attribute. Message:" + e.getMessage(), e);
        }
       
      decoratorTimer.printElapsedTime("After getting basecomponent");
     
      if(baseComponent == null)
      {
        decoratePageTemplate = showInitialBindingDialog(this.getDeliveryContext().getSiteNodeId(), this.getDeliveryContext().getLanguageId(), this.getDeliveryContext().getContentId());
      }
View Full Code Here


      extraBody = cacheString.toString();
      */
     
      //extraHeader.replaceAll()
     
      timer.printElapsedTime("Read files");
     
      StringBuffer modifiedTemplate = new StringBuffer(template);
     
      //Adding stuff in the header
      int indexOfHeadEndTag = modifiedTemplate.indexOf("<head");
View Full Code Here

        {
          logger.info("The current template is not a valid document. It does not comply with the simplest standards such as having a correct header.");
        }
      }

      timer.printElapsedTime("Header handled");

      //Adding stuff in the body 
      int indexOfBodyStartTag = modifiedTemplate.indexOf("<body");
      if(indexOfBodyStartTag == -1)
        indexOfBodyStartTag = modifiedTemplate.indexOf("<BODY");
View Full Code Here

     
      if(indexOfBodyStartTag > -1)
      {
          //String pageComponentStructureDiv = "";
        //String pageComponentStructureDiv = getPageComponentStructureDiv(templateController, deliveryContext.getSiteNodeId(), deliveryContext.getLanguageId(), component);
        timer.printElapsedTime("pageComponentStructureDiv");
        String componentPaletteDiv = getComponentPaletteDiv(deliveryContext.getSiteNodeId(), deliveryContext.getLanguageId(), templateController);
        //String componentPaletteDiv = "";
        timer.printElapsedTime("componentPaletteDiv");
        modifiedTemplate = modifiedTemplate.insert(modifiedTemplate.indexOf(">", indexOfBodyStartTag) + 1, extraBody + componentPaletteDiv);
        //modifiedTemplate = modifiedTemplate.insert(modifiedTemplate.indexOf(">", indexOfBodyStartTag) + 1, extraBody + componentPaletteDiv);
View Full Code Here

          //String pageComponentStructureDiv = "";
        //String pageComponentStructureDiv = getPageComponentStructureDiv(templateController, deliveryContext.getSiteNodeId(), deliveryContext.getLanguageId(), component);
        timer.printElapsedTime("pageComponentStructureDiv");
        String componentPaletteDiv = getComponentPaletteDiv(deliveryContext.getSiteNodeId(), deliveryContext.getLanguageId(), templateController);
        //String componentPaletteDiv = "";
        timer.printElapsedTime("componentPaletteDiv");
        modifiedTemplate = modifiedTemplate.insert(modifiedTemplate.indexOf(">", indexOfBodyStartTag) + 1, extraBody + componentPaletteDiv);
        //modifiedTemplate = modifiedTemplate.insert(modifiedTemplate.indexOf(">", indexOfBodyStartTag) + 1, extraBody + componentPaletteDiv);
      }
      else
      {
View Full Code Here

      else
      {
        logger.info("The current template is not a valid document. It does not comply with the simplest standards such as having a correct body.");
      }
     
      timer.printElapsedTime("Body handled");

      decoratedTemplate = modifiedTemplate.toString();
    }
    catch(Exception e)
    {
View Full Code Here

    try
    {
      if(document != null)
      {
        timer.printElapsedTime("Read document");

        String propertyXPath = "//property";
        //logger.info("propertyXPath:" + propertyXPath);
        List anl = document.selectNodes(propertyXPath);
        timer.printElapsedTime("Set property xpath");
View Full Code Here

        timer.printElapsedTime("Read document");

        String propertyXPath = "//property";
        //logger.info("propertyXPath:" + propertyXPath);
        List anl = document.selectNodes(propertyXPath);
        timer.printElapsedTime("Set property xpath");
        //logger.info("*********************************************************anl:" + anl.getLength());
        Iterator anlIterator = anl.iterator();
        while(anlIterator.hasNext())
        {
          Element binding = (Element)anlIterator.next();
View Full Code Here

            String assetMask        = binding.attributeValue("assetMask");
            boolean isPuffContentForPage   = new Boolean(binding.attributeValue("isPuffContentForPage")).booleanValue();

            property.setEntityClass(entity);
            String value = getComponentPropertyValue(componentId, name, property.getAllowLanguageVariations());
            timer.printElapsedTime("Set property1");

            property.setValue(value);
            property.setIsMultipleBinding(isMultipleBinding);
            property.setIsAssetBinding(isAssetBinding);
            property.setAssetMask(assetMask);
View Full Code Here

            property.setBindings(bindings);
          }
          else if(type.equalsIgnoreCase(ComponentProperty.TEXTFIELD)) 
          {   
            String value = getComponentPropertyValue(componentId, name, property.getAllowLanguageVariations());
            timer.printElapsedTime("Set property2");
            property.setValue(value);
          }
          else if(type.equalsIgnoreCase(ComponentProperty.DATEFIELD)) 
          {   
            String value = getComponentPropertyValue(componentId, name, property.getAllowLanguageVariations());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.