com.cybelia.sandra
Class SandraHelper
java.lang.Object
com.cybelia.sandra.SandraHelper
public class SandraHelper
- extends Object
- Author:
- letellier
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.commons.logging.Log log
SUIVI_TOUR_PREFIX
public static final String SUIVI_TOUR_PREFIX
- See Also:
- Constant Field Values
SUIVI_TOUR_EXTENTION
public static final String SUIVI_TOUR_EXTENTION
- See Also:
- Constant Field Values
SandraHelper
public SandraHelper()
getDifferenceInMilliseconds
public static int getDifferenceInMilliseconds(Date beginDate,
Date endDate)
- Do the difference between the two dates in argument. The result is a number
of seconds between the two dates.
- Parameters:
beginDate - first dateendDate - second date
- Returns:
- a number of seconds between beginDate and endDate
convertToStringArray
public static String[] convertToStringArray(Object[] datas)
pareInt
public static int pareInt(String s)
reformatData
public static List<List<String>> reformatData(List<String[]> datas)
getLastWeekDate
public static Date getLastWeekDate()
convertEntitiesToListForNotifier
public static String convertEntitiesToListForNotifier(Collection<? extends org.nuiton.topia.persistence.TopiaEntity> entities)
convertToListForNotifier
public static String convertToListForNotifier(Collection<?> list)
convertToSubListForNotifier
public static String convertToSubListForNotifier(Collection<?> list)
convertToListOfListForNotifier
public static <K,V> String convertToListOfListForNotifier(com.google.common.collect.ListMultimap<K,V> multimap)
extractIds
public static List<String> extractIds(Collection<? extends org.nuiton.topia.persistence.TopiaEntity> entities)
convertDateToString
public static String convertDateToString(Date d)
getWorstSecurityLevel
public static int getWorstSecurityLevel(Eleveur breeder)
getWorstInfoAccessSecurityLevel
public static InfoAccess getWorstInfoAccessSecurityLevel(Eleveur breeder)
razUserIndicateurs
public static UserIndicateurs razUserIndicateurs(UserIndicateurs userIndicateurs)
addOrder
public static String addOrder(String alias,
String sortCriterion,
int sortDirection)
addOrder
public static String addOrder(String alias,
boolean isNull,
String sortCriterion,
int sortDirection)
createUserIndicateurIfDontExist
public static UserIndicateurs createUserIndicateurIfDontExist(org.nuiton.topia.TopiaContext transaction,
org.nuiton.topia.taas.entities.TaasUser user)
throws org.nuiton.topia.TopiaException
- Throws:
org.nuiton.topia.TopiaException
getAllCamionUser
public static List<org.nuiton.topia.taas.entities.TaasUser> getAllCamionUser(org.nuiton.topia.TopiaContext transaction)
throws org.nuiton.topia.TopiaException
- Throws:
org.nuiton.topia.TopiaException
addSuiviTourCSV
public static void addSuiviTourCSV(Tour tour,
SuiviTour suiviTour)
throws IOException
- Throws:
IOException
Copyright © 2008-2012 Cybelia. All Rights Reserved.