Class CalHelper

    • Constructor Detail

      • CalHelper

        public CalHelper()
        Deprecated.
    • Method Detail

      • 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.
      • convertDateTimeForVCalendar

        @Deprecated
        public String convertDateTimeForVCalendar​(String p_strInValue)
        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)
        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)
      • 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
      • 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
      • 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