Package org.infoglue.cms.applications.common

Examples of org.infoglue.cms.applications.common.VisualFormatter


    if(startTagIndex > 0 && startTagIndex < xml.length() && endTagIndex > startTagIndex && endTagIndex <  xml.length())
    {
      value = xml.substring(startTagIndex + attributeName.length() + 11, endTagIndex);
      if(escapeHTML)
        value = new VisualFormatter().escapeHTML(value);
    }
    /*
    try
    {
      InputSource inputSource = new InputSource(new StringReader(xml));
View Full Code Here


    if(startTagIndex > 0 && startTagIndex < xml.length() && endTagIndex > startTagIndex && endTagIndex <  xml.length())
    {
      value = xml.substring(startTagIndex + attributeName.length() + 11, endTagIndex);
      if(escapeHTML)
        value = new VisualFormatter().escapeHTML(value);
    }   

    return value;
  }
View Full Code Here

      //logger.info("templateContentVO:" + templateContentVO);
      ContentVersionVO contentVersionVO = ContentVersionController.getContentVersionController().getLatestActiveContentVersionVO(pageMetaInfoContentVO.getId(), this.masterLanguageVO.getId());
      if(contentVersionVO == null)
      {
        SiteNodeVO siteNodeVO = SiteNodeController.getController().getSiteNodeVOWithId(siteNodeId);
            String versionValue = "<?xml version='1.0' encoding='UTF-8'?><article xmlns=\"x-schema:ArticleSchema.xml\"><attributes><Title><![CDATA[" + siteNodeVO.getName() + "]]></Title><NavigationTitle><![CDATA[" + siteNodeVO.getName() + "]]></NavigationTitle><NiceURIName><![CDATA[" + new VisualFormatter().replaceNiceURINonAsciiWithSpecifiedChars(siteNodeVO.getName(), CmsPropertyHandler.getNiceURIDefaultReplacementCharacter()) + "]]></NiceURIName><Description><![CDATA[" + siteNodeVO.getName() + "]]></Description><MetaInfo><![CDATA[" + siteNodeVO.getName() + "]]></MetaInfo><ComponentStructure><![CDATA[]]></ComponentStructure></attributes></article>";
            contentVersionVO = new ContentVersionVO();
            contentVersionVO.setVersionComment("Autogenerated version");
            contentVersionVO.setVersionModifier(getInfoGluePrincipal().getName());
            contentVersionVO.setVersionValue(versionValue);
        contentVersionVO = ContentVersionController.getContentVersionController().create(pageMetaInfoContentVO.getId(), this.masterLanguageVO.getId(), contentVersionVO, null);
View Full Code Here

     
      ContentVersionVO contentVersionVO = ContentVersionController.getContentVersionController().getLatestActiveContentVersionVO(templateContentVO.getId(), this.masterLanguageVO.getId());
      if(contentVersionVO == null)
      {
        SiteNodeVO siteNodeVO = SiteNodeController.getController().getSiteNodeVOWithId(siteNodeId);
            String versionValue = "<?xml version='1.0' encoding='UTF-8'?><article xmlns=\"x-schema:ArticleSchema.xml\"><attributes><Title><![CDATA[" + siteNodeVO.getName() + "]]></Title><NavigationTitle><![CDATA[" + siteNodeVO.getName() + "]]></NavigationTitle><NiceURIName><![CDATA[" + new VisualFormatter().replaceNiceURINonAsciiWithSpecifiedChars(siteNodeVO.getName(), CmsPropertyHandler.getNiceURIDefaultReplacementCharacter()) + "]]></NiceURIName><Description><![CDATA[" + siteNodeVO.getName() + "]]></Description><MetaInfo><![CDATA[" + siteNodeVO.getName() + "]]></MetaInfo><ComponentStructure><![CDATA[]]></ComponentStructure></attributes></article>";
            contentVersionVO = new ContentVersionVO();
            contentVersionVO.setVersionComment("Autogenerated version");
            contentVersionVO.setVersionModifier(getInfoGluePrincipal().getName());
            contentVersionVO.setVersionValue(versionValue);
        contentVersionVO = ContentVersionController.getContentVersionController().create(templateContentVO.getId(), languageId, contentVersionVO, null);
View Full Code Here

        {
          if(n.getFirstChild() != null && n.getFirstChild().getNodeValue() != null)
          {
            value = n.getFirstChild().getNodeValue();
            if(value != null && escapeHTML)
              value = new VisualFormatter().escapeHTML(value);

            break;
          }
        }
      }             
View Full Code Here

        return this.siteNodeVO.getName();
    }

    public String getPublishDateTime()
    {       
        return new VisualFormatter().formatDate(this.siteNodeVO.getPublishDateTime(), "yyyy-MM-dd HH:mm");
    }
View Full Code Here

        return new VisualFormatter().formatDate(this.siteNodeVO.getPublishDateTime(), "yyyy-MM-dd HH:mm");
    }
       
    public String getExpireDateTime()
    {
        return new VisualFormatter().formatDate(this.siteNodeVO.getExpireDateTime(), "yyyy-MM-dd HH:mm");
    }
View Full Code Here

    }
     
    public void setPublishDateTime(String publishDateTime)
    {
         logger.info("publishDateTime:" + publishDateTime);
       this.siteNodeVO.setPublishDateTime(new VisualFormatter().parseDate(publishDateTime, "yyyy-MM-dd HH:mm"));
    }
View Full Code Here

    }

    public void setExpireDateTime(String expireDateTime)
    {
         logger.info("expireDateTime:" + expireDateTime);
         this.siteNodeVO.setExpireDateTime(new VisualFormatter().parseDate(expireDateTime, "yyyy-MM-dd HH:mm"));
  }
View Full Code Here

            {
              if(response.indexOf("serverStartDateTime:") > -1)
              {
                String applicationStartupDateTimeString = response.substring(response.indexOf("serverStartDateTime:") + 20).trim();
                logger.info("applicationStartupDateTimeString:" + applicationStartupDateTimeString);
                VisualFormatter visualFormatter = new VisualFormatter();
                Date serverStartupDate = visualFormatter.parseDate(applicationStartupDateTimeString, "yyyy-MM-dd HH:mm:ss");
                PublicationVO publicationVO = PublicationController.getController().getPublicationVO(publicationId);
                if(publicationVO.getPublicationDateTime().before(serverStartupDate))
                  publicationDetails.add(new String[]{"" + deliverUrl, "N/A", "Application restarted after the publication: " + applicationStartupDateTimeString});             
                else
                  publicationDetails.add(new String[]{"" + deliverUrl, "N/A", "No information found"});             
              }
              else
              {
                publicationDetails.add(new String[]{"" + deliverUrl, "N/A", "No information found"});             
              }
            }
            else
            {
              Map<String,String> responseMap = httpHelper.toMap(response.trim(), "utf-8");
              CacheEvictionBean bean = CacheEvictionBean.getCacheEvictionBean(responseMap);
              if(bean == null)
                throw new Exception("No information found");
             
              VisualFormatter visualFormatter = new VisualFormatter();
              publicationDetails.add(new String[]{"" + deliverUrl, responseMap.get("status"), "" + visualFormatter.formatDate(bean.getProcessedTimestamp(), "yyyy-MM-dd HH:mm:ss")});
            }
          }
        }
        catch(Exception e)
        {
View Full Code Here

TOP

Related Classes of org.infoglue.cms.applications.common.VisualFormatter

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.