java.lang.Object
de.uplanet.lucy.server.auxiliaries.calendar.CalHelper

@VelocityCallable("instance") @Deprecated public final class CalHelper extends Object
Deprecated.
Use the new API instead, e.g. DateTimeUtil, or CalendarAwareDate.
  • Constructor Details

    • CalHelper

      public CalHelper()
      Deprecated.
  • Method Details

    • init

      public void init(IServerBridgeRequest p_request)
      Deprecated.
      Parameters:
      p_request - The current request.
    • getVHFromDateTimeString

      @Deprecated public IValueHolder<?> getVHFromDateTimeString(String p_strInValue)
      Deprecated.
      Converts the given UTC date-time string to a value holder.
      Parameters:
      p_strInValue - The UTC date time string.
    • getVHFromDateTimeString

      @Deprecated public IValueHolder<?> getVHFromDateTimeString(String p_strInValue, String p_strTimeZone)
      Deprecated.
      Converts the given date-time string to a value holder.
      Parameters:
      p_strInValue - The date time string.
      p_strTimeZone - The time zone to be used.
    • getVHFromDateTimeString

      @Deprecated public IValueHolder<?> getVHFromDateTimeString(String p_strInValue, TimeZone p_timeZone)
      Deprecated.
      Converts the given date-time string to a value holder.
      Parameters:
      p_strInValue - The date time string.
      p_timeZone - The time zone to be used.
    • getVHFromDateTimeStringWithAdjust

      @Deprecated public IValueHolder<?> getVHFromDateTimeStringWithAdjust(String p_strInValue, String p_strAdjust, TimeZone p_timeZone)
      Deprecated.
      Converts the given date-time string to a value holder.
      Parameters:
      p_strInValue - The date time string.
      p_strAdjust - The adjust string.
      p_timeZone - The time zone.
    • getVHFromDateString

      @Deprecated public IValueHolder<?> getVHFromDateString(String p_strInValue)
      Deprecated.
      Converts the given UTC date string to a value holder.
      Parameters:
      p_strInValue - The UTC date string.
    • getVHFromDateString

      @Deprecated public IValueHolder<?> getVHFromDateString(String p_strInValue, String p_strTimeZone)
      Deprecated.
      Converts the given date string to a value holder.
      Parameters:
      p_strInValue - The date string.
      p_strTimeZone - The time zone to be used.
    • getVHFromDateString

      @Deprecated public IValueHolder<?> getVHFromDateString(String p_strInValue, TimeZone p_timeZone)
      Deprecated.
      Converts the given date string to a value holder.
      Parameters:
      p_strInValue - The date time string.
      p_timeZone - The time zone to be used.
    • getVHFromDateStringWithAdjust

      @Deprecated public IValueHolder<?> getVHFromDateStringWithAdjust(String p_strInValue, String p_strAdjust, TimeZone p_timeZone)
      Deprecated.
      Converts the given string to a date value holder.
      Parameters:
      p_strInValue - The DateTime string.
      p_strAdjust - The adjust string.
      p_timeZone - The time zone.
    • getVHFromTimeString

      @Deprecated public IValueHolder<?> getVHFromTimeString(String p_strInValue)
      Deprecated.
      Converts the given time string to a value holder.

      The date part of the value holder created contains the current date in the UTC time zone.

      Parameters:
      p_strInValue - The time string.
    • getVHFromTimeString

      @Deprecated public IValueHolder<?> getVHFromTimeString(String p_strInValue, String p_strTimeZone)
      Deprecated.
      Converts the given time string to a value holder.

      The date part of the value holder created contains the current date in the given time zone.

      Parameters:
      p_strInValue - The time string.
      p_strTimeZone - The time zone to be used.
    • getVHFromTimeString

      @Deprecated public IValueHolder<?> getVHFromTimeString(String p_strInValue, TimeZone p_timeZone)
      Deprecated.
      Converts the given time string to a value holder.

      The date part of the value holder created contains the current date in the given time zone.

      Parameters:
      p_strInValue - The time string.
      p_timeZone - The time zone to be used.
    • getVHFromTimeStringWithAdjust

      @Deprecated public IValueHolder<?> getVHFromTimeStringWithAdjust(String p_strInValue, String p_strAdjust, TimeZone p_timeZone)
      Deprecated.
      Converts the given time string to a value holder.

      The date part of the value holder created contains the current date in the given time zone.

      Parameters:
      p_strInValue - The time string.
      p_strAdjust - The adjust string.
      p_timeZone - The time zone to be used.
    • convertDateForInput

      @Deprecated public String convertDateForInput(String p_strInValue)
      Deprecated.
    • convertDateTimeForInput

      @Deprecated public String convertDateTimeForInput(String p_strInValue)
      Deprecated.
    • convertDateTimeForVCalendar

      @Deprecated public String convertDateTimeForVCalendar(String p_strInValue)
      Deprecated.
    • convertValueHolderForVCalendar

      @Deprecated public String convertValueHolderForVCalendar(IValueHolder<?> p_vh)
      Deprecated.
    • convertDateForOutput

      @Deprecated public String convertDateForOutput(String p_strValue)
      Deprecated.
    • convertDateTimeForOutput

      @Deprecated public String convertDateTimeForOutput(String p_strValue)
      Deprecated.
    • convertDateTimeForOutput

      @Deprecated public String convertDateTimeForOutput(long p_value)
      Deprecated.
    • convertDateTimeForOutput

      @Deprecated public String convertDateTimeForOutput(Date p_dt)
      Deprecated.
    • getSelectedApps

      public List<ApplicationInfo> getSelectedApps()
      Deprecated.
      Method getSelectedApps.
      Returns:
      List
    • getSelectedApps

      public List<ApplicationInfo> getSelectedApps(String p_strUserGuid)
      Deprecated.
      Method getSelectedApps by User Guid.
      Parameters:
      p_strUserGuid - used for profile settings
      Returns:
      List
    • getDeSelectedApps

      public List<ApplicationInfo> getDeSelectedApps()
      Deprecated.
      Method getDeSelectedApps.
      Returns:
      List
    • getDeSelectedApps

      public List<ApplicationInfo> getDeSelectedApps(String p_strUserGuid)
      Deprecated.
      Method getDeSelectedApps.
      Parameters:
      p_strUserGuid - used for profile settings
      Returns:
      List
    • getDefaultIso

      @Deprecated public String getDefaultIso(String p_strAdjust)
      Deprecated.
      Returns the adjusted ISO time string realted to the users timezone
      Parameters:
      p_strAdjust - eg. ",+1,1,0,0,0"
      Returns:
      String e.g. "2003-09-01 00:00:00"
    • getDefaultIso

      @Deprecated public String getDefaultIso(String p_strAdjust, String p_strTimeZone)
      Deprecated.
      Returns the adjusted ISO time string.
      Parameters:
      p_strAdjust - eg. ",+1,1,0,0,0"
      p_strTimeZone - as Stirng
      Returns:
      String e.g. "2003-09-01 00:00:00"
    • format

      @Deprecated public String format(Calendar p_cal, String p_pattern)
      Deprecated.
      Parameters:
      p_cal -
      p_pattern -
      Returns:
      a format date time string using the sessions language locale
    • format

      @Deprecated public String format(String p_strDateTimeISOinUTC, String p_pattern)
      Deprecated.
      Parameters:
      p_strDateTimeISOinUTC -
      p_pattern -
      Returns:
      a format date time string using the sessions language locale
    • getDiffInMillis

      @Deprecated public long getDiffInMillis(String p_strIso)
      Deprecated.
      Parameters:
      p_strIso -
      Returns:
      The difference between today (now) and the given date in millisecons (negative if the given date is before now).
    • compare

      @Deprecated public int compare(String p_strIso1, String p_strIso2)
      Deprecated.
    • compare

      @Deprecated public int compare(String p_strIso1)
      Deprecated.
      Do not use this method.
    • getDiffInMillis

      @Deprecated public long getDiffInMillis(String p_strIso1, String p_strIso2)
      Deprecated.
      Parameters:
      p_strIso1 -
      p_strIso2 -
      Returns:
      the difference between p_strIso2 and the given date p_strIso1 in millisecons (p_strIso2 - p_strIso1)
    • isToday

      @Deprecated public boolean isToday(String p_strIso)
      Deprecated.
      Parameters:
      p_strIso -
      Returns:
      Boolean
    • isToday

      @Deprecated public boolean isToday(Calendar p_cal)
      Deprecated.
      Parameters:
      p_cal - a calendar
      Returns:
      boolean true if the calendar is today
    • getDiffInDays

      @Deprecated public int getDiffInDays(String p_strIso)
      Deprecated.
      Parameters:
      p_strIso -
      Returns:
      the difference between today(now) and the given date in days (negative if the given date is before now)
    • getWeekNumber

      @Deprecated public int getWeekNumber(Calendar p_cal)
      Deprecated.
    • getDateFromString

      @Deprecated public Date getDateFromString(String p_strDate, TimeZone p_tz)
      Deprecated.
      Parameters:
      p_strDate - A string representing a date.
      p_tz - The time zone to be used.
      Returns:
      Date
    • getUpCalendarFromString

      @Deprecated public Calendar getUpCalendarFromString(String p_strDate, TimeZone p_tz)
      Deprecated.
      Parameters:
      p_strDate - A string representing a date.
      p_tz - The time zone to be used.
      Returns:
      UpCalendar
    • getUpCalendarFromVH

      @Deprecated public Calendar getUpCalendarFromVH(IValueHolder<?> p_vh, TimeZone p_tz)
      Deprecated.
      Parameters:
      p_vh - A date ValueHolder.
      p_tz - The time zone to be used.
      Returns:
      UpCalendar
    • getUpCalendarFromDate

      @Deprecated public Calendar getUpCalendarFromDate(Date p_dt, TimeZone p_tz)
      Deprecated.
      Parameters:
      p_dt - A date object.
      p_tz - The time zone to be used.
      Returns:
      UpCalendar
    • getNowCalendar

      @Deprecated public Calendar getNowCalendar(TimeZone p_tz)
      Deprecated.
      Parameters:
      p_tz -
      Returns:
      UpCalendar at now using the given timezone
    • getNowCalendar

      @Deprecated public Calendar getNowCalendar()
      Deprecated.
      Returns:
      UpCalendar at now using the context users timezone
    • getCalendar

      @Deprecated public Calendar getCalendar(String p_strAdjust)
      Deprecated.
    • getCalendarWithAdjustment

      @Deprecated public Calendar getCalendarWithAdjustment(String p_strAdjust)
      Deprecated.
    • getLunationNumber

      @Deprecated public long getLunationNumber(Date p_dt)
      Deprecated.
    • getLunationNumber

      @Deprecated public long getLunationNumber(long p_lTime)
      Deprecated.
    • getMeeusLunationNumber

      @Deprecated public long getMeeusLunationNumber(Date p_dt)
    • getMeeusLunationNumber

      @Deprecated public long getMeeusLunationNumber(long p_lTime)
    • getPhaseOfTheMoon

      @Deprecated public double getPhaseOfTheMoon(Date p_dt)
      Deprecated.
    • getPhaseOfTheMoon

      @Deprecated public double getPhaseOfTheMoon(long p_lTime)
      Deprecated.
    • getShroveMondayDate

      @Deprecated public ChimeraDate getShroveMondayDate(Object p_obj, TimeZone p_tz)
      Get the Shrove Monday (Rosenmontag) date in the given year.
      Parameters:
      p_obj - The year, either as an integer, or date, or IValueHolder.
      p_tz - The time zone.
      Returns:
      The Shrove Monday date as both a java.sql.Timestamp and as a IDateTimeValueHolder
    • getAshWednesdayDate

      @Deprecated public ChimeraDate getAshWednesdayDate(Object p_obj, TimeZone p_tz)
      Get the Ash Wednesday (Aschermittwoch) date in the given year.
      Parameters:
      p_obj - The year, either as an integer, or date, or IValueHolder.
      p_tz - The time zone.
      Returns:
      The Ash Wednesday date as both a java.sql.Timestamp and as a IDateTimeValueHolder
    • getMaundyThursdayDate

      @Deprecated public ChimeraDate getMaundyThursdayDate(Object p_obj, TimeZone p_tz)
      Get the Maundy Thursday (Gründonnerstag) date in the given year.
      Parameters:
      p_obj - The year, either as an integer, or date, or IValueHolder.
      p_tz - The time zone.
      Returns:
      The Maundy Thursday date as both a java.sql.Timestamp and as a IDateTimeValueHolder
    • getGoodFridayDate

      @Deprecated public ChimeraDate getGoodFridayDate(Object p_obj, TimeZone p_tz)
      Get the Good Friday (Karfreitag) date in the given year.
      Parameters:
      p_obj - The year, either as an integer, or date, or IValueHolder.
      p_tz - The time zone.
      Returns:
      The Good Friday date as both a java.sql.Timestamp and as a IDateTimeValueHolder
    • getEasterDate

      @Deprecated public ChimeraDate getEasterDate(Object p_obj, TimeZone p_tz)
      Get the Easter (Ostersonntag) date in the given year.
      Parameters:
      p_obj - The year, either as an integer, or date, or IValueHolder.
      p_tz - The time zone.
      Returns:
      The Easter date as both a java.sql.Timestamp and as a IDateTimeValueHolder
    • getEasterMondayDate

      @Deprecated public ChimeraDate getEasterMondayDate(Object p_obj, TimeZone p_tz)
      Get the Easter Monday (Ostermontag) date in the given year.
      Parameters:
      p_obj - The year, either as an integer, or date, or IValueHolder.
      p_tz - The time zone.
      Returns:
      The Easter Monday date as both a java.sql.Timestamp and as a IDateTimeValueHolder
    • getAscensionDate

      @Deprecated public ChimeraDate getAscensionDate(Object p_obj, TimeZone p_tz)
      Get the Ascension Day (Christi Himmelfahrt) date in the given year.
      Parameters:
      p_obj - The year, either as an integer, or date, or IValueHolder.
      p_tz - The time zone.
      Returns:
      The Ascension Day date as both a java.sql.Timestamp and as a IDateTimeValueHolder
    • getWhitSundayDate

      @Deprecated public ChimeraDate getWhitSundayDate(Object p_obj, TimeZone p_tz)
      Get the Whit Sunday (Pfingstsonntag) date in the given year.
      Parameters:
      p_obj - The year, either as an integer, or date, or IValueHolder.
      p_tz - The time zone.
      Returns:
      The Whit Sunday date as both a java.sql.Timestamp and as a IDateTimeValueHolder
    • getWhitMondayDate

      @Deprecated public ChimeraDate getWhitMondayDate(Object p_obj, TimeZone p_tz)
      Get the Whit Monday (Pfingstmontag) date in the given year.
      Parameters:
      p_obj - The year, either as an integer, or date, or IValueHolder.
      p_tz - The time zone.
      Returns:
      The Whit Monday date as both a java.sql.Timestamp and as a IDateTimeValueHolder
    • getPentecostDate

      @Deprecated public ChimeraDate getPentecostDate(Object p_obj, TimeZone p_tz)
      Get the Pentecost date (Pfingstsonntag) in the given year. Same as getWhitSundayDate.
      Parameters:
      p_obj - The year, either as an integer, or date, or IValueHolder.
      p_tz - The time zone.
      Returns:
      The Pentecost date as both a java.sql.Timestamp and as a IDateTimeValueHolder
    • getCorpusChristiDate

      @Deprecated public ChimeraDate getCorpusChristiDate(Object p_obj, TimeZone p_tz)
      Get the Corpus Christi (Fronleichnam) date in the given year.
      Parameters:
      p_obj - The year, either as an integer, or date, or IValueHolder.
      p_tz - The time zone.
      Returns:
      The Corpus Christi date as both a java.sql.Timestamp and as a IDateTimeValueHolder
    • getPenanceDayDate

      @Deprecated public ChimeraDate getPenanceDayDate(Object p_obj, TimeZone p_tz)
      Get the Penance Day (Buß- und Bettag) date in the given year.
      Parameters:
      p_obj - The year, either as an integer, or date, or IValueHolder.
      p_tz - The time zone.
      Returns:
      The Penance Day date as both a java.sql.Timestamp and as a IDateTimeValueHolder
    • getRFC5545Util

      @Deprecated public RFC5545Util getRFC5545Util()
      Deprecated.
      Returns:
      A RFC 5545 utility.
      Since:
      Intrexx version 5.2.