org.exoplatform.platform.welcomescreens.service
Class Utils

java.lang.Object
  extended by org.exoplatform.platform.welcomescreens.service.Utils

public class Utils
extends Object

Author:
Fbradai

Field Summary
static DateFormat dateFormat
           
static int DEFAULT_DELAY_PERIOD
           
static String EXO_HOME_FOLDER
           
static String HOME_CONFIG_FILE_LOCATION
           
static String IS_EXTENDED
           
static String PRODUCT_CODE
           
static String PRODUCT_KEY
           
static String PRODUCT_NAME
           
static String REMIND_DATE
           
static String UNLIMITED
           
static String USER_HOME
           
 
Constructor Summary
Utils()
           
 
Method Summary
static String formatDate(Calendar date)
           
static String formatDateBase64(Calendar date)
           
static String getModifiedMD5Code(byte[] dataToHash)
           
static Calendar parseDateBase64(String dateString)
           
static String readFromFile(String key, String fileLocation)
           
static void writeRemindDate(String remindDateStringBase64, String fileLocation)
           
static void writeToFile(String key, String value, String fileLocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNLIMITED

public static final String UNLIMITED
See Also:
Constant Field Values

DEFAULT_DELAY_PERIOD

public static final int DEFAULT_DELAY_PERIOD
See Also:
Constant Field Values

REMIND_DATE

public static final String REMIND_DATE
See Also:
Constant Field Values

IS_EXTENDED

public static final String IS_EXTENDED
See Also:
Constant Field Values

PRODUCT_KEY

public static final String PRODUCT_KEY
See Also:
Constant Field Values

USER_HOME

public static final String USER_HOME

EXO_HOME_FOLDER

public static final String EXO_HOME_FOLDER

PRODUCT_NAME

public static final String PRODUCT_NAME
See Also:
Constant Field Values

dateFormat

public static final DateFormat dateFormat

PRODUCT_CODE

public static final String PRODUCT_CODE
See Also:
Constant Field Values

HOME_CONFIG_FILE_LOCATION

public static String HOME_CONFIG_FILE_LOCATION
Constructor Detail

Utils

public Utils()
Method Detail

getModifiedMD5Code

public static String getModifiedMD5Code(byte[] dataToHash)

readFromFile

public static String readFromFile(String key,
                                  String fileLocation)

formatDate

public static String formatDate(Calendar date)

writeRemindDate

public static void writeRemindDate(String remindDateStringBase64,
                                   String fileLocation)

parseDateBase64

public static Calendar parseDateBase64(String dateString)

formatDateBase64

public static String formatDateBase64(Calendar date)

writeToFile

public static void writeToFile(String key,
                               String value,
                               String fileLocation)


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.