Class AppsUtil

java.lang.Object
com.skava.marketplace.util.AppsUtil

public final class AppsUtil extends Object
  • Method Details

    • convertStringToLocalDateTime

      public static LocalDateTime convertStringToLocalDateTime(String time, String errorCode)
    • convertLocalDateTimeToString

      public static String convertLocalDateTimeToString(LocalDateTime date, String zoneId)
    • validateEndTime

      public static void validateEndTime(LocalDateTime endTime)
    • calculateExpiryDate

      public static LocalDateTime calculateExpiryDate(LocalDateTime startDateTime, Long durationInMonths)
    • getAppMaster

      public static AppMaster getAppMaster(AppMaster appMaster)
    • stripXSS

      public static String stripXSS(String value)
      Strips any potential XSS threats out of the value excluding the white listed HTML
      Parameters:
      value - Indicates a string value for encoding.
      Returns:
      Returns the the ESAPI library value to avoid encoded attacks.