Examples of replaceNiceURINonAsciiWithSpecifiedChars()


Examples of org.infoglue.cms.applications.common.VisualFormatter.replaceNiceURINonAsciiWithSpecifiedChars()

  public String doReplaceNiceURINonAsciiWithSpecifiedChars() throws Exception
  {
    String text = getRequest().getParameter("text");
   
    VisualFormatter formatter = new VisualFormatter();
    text = formatter.replaceNiceURINonAsciiWithSpecifiedChars(text, CmsPropertyHandler.getNiceURIDefaultReplacementCharacter());
   
      this.getResponse().setContentType("text/plain");
    this.getResponse().getWriter().print(text);
   
    return NONE;
View Full Code Here

Examples of org.infoglue.cms.applications.common.VisualFormatter.replaceNiceURINonAsciiWithSpecifiedChars()

  }

  public String getAssetFileName(DigitalAssetVO digitalAssetVO, Integer contentId, Integer languageId, Database db) throws Exception
  {
    VisualFormatter formatter = new VisualFormatter();
    String fileName = digitalAssetVO.getDigitalAssetId() + "_" + formatter.replaceNiceURINonAsciiWithSpecifiedChars(digitalAssetVO.getAssetFileName(), CmsPropertyHandler.getNiceURIDefaultReplacementCharacter());

    if(CmsPropertyHandler.getAssetFileNameForm().equals("contentId_languageId_assetKey"))
    {
      if(contentId == null || languageId == null)
      {
View Full Code Here

Examples of org.infoglue.cms.applications.common.VisualFormatter.replaceNiceURINonAsciiWithSpecifiedChars()

      String suffix = "";
      int endingStartIndex = assetFileName.lastIndexOf(".");
      if(endingStartIndex > -1)
        suffix = assetFileName.substring(endingStartIndex);

      fileName = "" + contentId + "_" + languageId + formatter.replaceNiceURINonAsciiWithSpecifiedChars(digitalAssetVO.getAssetKey(), CmsPropertyHandler.getNiceURIDefaultReplacementCharacter()) + suffix;
    }

    return fileName;
  }
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.