fr.paris.lutece.plugins.newsletter.modules.document.util
Class NewsletterDocumentUtils

java.lang.Object
  extended by fr.paris.lutece.plugins.newsletter.modules.document.util.NewsletterDocumentUtils

public final class NewsletterDocumentUtils
extends Object

Utility class for newsletter document


Field Summary
static String CONSTANT_IMG_FILE_TYPE
          Image file type
 
Method Summary
static String formatInteger(int nNbToformat, int nNbDigits)
          Get the string representation of an integer with a specified number of digits.
static String rewriteImgUrls(String strContent, String strBaseUrl, String strUnsecuredBaseUrl, String strUnsecuredFolderPath, String strUnsecuredFolder)
          Rewrite secured img urls to absolutes urls
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONSTANT_IMG_FILE_TYPE

public static final String CONSTANT_IMG_FILE_TYPE
Image file type

See Also:
Constant Field Values
Method Detail

rewriteImgUrls

public static String rewriteImgUrls(String strContent,
                                    String strBaseUrl,
                                    String strUnsecuredBaseUrl,
                                    String strUnsecuredFolderPath,
                                    String strUnsecuredFolder)
Rewrite secured img urls to absolutes urls

Parameters:
strContent - The content to analyze
strBaseUrl - The base url
strUnsecuredBaseUrl - The unsecured base URL
strUnsecuredFolderPath - The unsecured folder path
strUnsecuredFolder - The unsecured folder
Returns:
The converted content

formatInteger

public static String formatInteger(int nNbToformat,
                                   int nNbDigits)
Get the string representation of an integer with a specified number of digits.

Parameters:
nNbToformat - The number to format
nNbDigits - The number of digits to add
Returns:
The string representing the integer


Copyright © 2013 Mairie de Paris. All Rights Reserved.