org.exoplatform.poll
Class Utils

java.lang.Object
  extended by org.exoplatform.poll.Utils

public class Utils
extends Object


Field Summary
static long MAXMESSAGE
           
static int MAXSIGNATURE
           
static int MAXTITLE
           
static String POLL
           
static String POLL_ID_SHOW
           
 
Constructor Summary
Utils()
           
 
Method Summary
static String[] getColor()
           
static String getExpire(long timeOut, Date modifiDate, String[] dateUnit)
           
static String getFormatDate(String format, Date myDate)
           
static String getSubString(String str, int max)
           
static boolean isEmpty(String str)
           
static boolean isValidEmailAddresses(String addressList)
           
static String removeZeroFirstNumber(String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POLL

public static final String POLL

POLL_ID_SHOW

public static final String POLL_ID_SHOW

MAXSIGNATURE

public static final int MAXSIGNATURE
See Also:
Constant Field Values

MAXTITLE

public static final int MAXTITLE
See Also:
Constant Field Values

MAXMESSAGE

public static final long MAXMESSAGE
See Also:
Constant Field Values
Constructor Detail

Utils

public Utils()
Method Detail

getFormatDate

public static String getFormatDate(String format,
                                   Date myDate)

isValidEmailAddresses

public static boolean isValidEmailAddresses(String addressList)
                                     throws Exception
Throws:
Exception

isEmpty

public static boolean isEmpty(String str)

removeZeroFirstNumber

public static String removeZeroFirstNumber(String str)

getSubString

public static String getSubString(String str,
                                  int max)

getColor

public static String[] getColor()

getExpire

public static String getExpire(long timeOut,
                               Date modifiDate,
                               String[] dateUnit)


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.