de.uplanet.lucy.server.businesslogic.system
Class SystemHelper

java.lang.Object
  extended by de.uplanet.lucy.server.businesslogic.system.SystemHelper

@VelocityCallable(value="singleton")
public final class SystemHelper
extends java.lang.Object

Provides method for the access on the system values. e.g. today or email of actual User.

Version:
$Revision: 80602 $

Constructor Summary
SystemHelper()
           
 
Method Summary
static void adjust(java.util.Calendar p_cal, java.lang.String p_strAdjust)
          Adjusts the given calendar with the adjust string.
static java.util.List<java.lang.String> changeToName(java.util.List<java.lang.String> p_guids)
          Deprecated. DO ABSOLUTELY NOT USE THIS METHOD!
static java.lang.String formatDate(java.util.TimeZone p_tzResult, java.util.Calendar l_calendar)
           
static java.lang.String[] getAvailableTimeZoneIDs()
           
static UpCalendar getCalendar(java.util.TimeZone p_tz, java.lang.String p_strAdjust)
          Gives Systeminformation Today adjusted by the adjust string.
static IValueHolder<?> getDefaultValueHolder(de.uplanet.jdbc.JdbcConnection p_conn, de.uplanet.lucy.constants.DEFAULT_TYPE p_eDefaultType, java.lang.String p_strDefault, int p_iUserId, java.util.TimeZone p_tz, de.uplanet.lucy.types.UP_TYPE p_dataType)
          Deprecated. DO ABSOLUTELY NOT USE THIS METHOD!
static java.util.Locale[] getLocales()
           
static java.lang.String getToday(java.util.TimeZone p_tz)
          Gives Systeminformation Today as a locale String.
static java.lang.String getToday(java.util.TimeZone p_tzUser, java.util.TimeZone p_tzResult)
          Gives Systeminformation Today as a locale String.
static java.lang.String getTodayFormat()
          Gives Systeminformation Today as a locale String. ( Used by VELOCITY !)
static java.lang.String getTodayPlus(java.util.TimeZone p_tz, java.lang.String p_strAdjust)
          Gives Systeminformation Today adjusted by the adjust string.
static java.lang.String getTodayPlus(java.util.TimeZone p_tzUser, java.util.TimeZone p_tzResult, java.lang.String p_strAdjust)
          Gives Systeminformation Today adjusted by the adjust string.
static UpCalendar getTodayPlusUTC(java.util.TimeZone p_tz, java.lang.String p_strAdjust)
          Gives Systeminformation Today adjusted by the adjust string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemHelper

public SystemHelper()
Method Detail

getDefaultValueHolder

@Deprecated
public static IValueHolder<?> getDefaultValueHolder(de.uplanet.jdbc.JdbcConnection p_conn,
                                                               de.uplanet.lucy.constants.DEFAULT_TYPE p_eDefaultType,
                                                               java.lang.String p_strDefault,
                                                               int p_iUserId,
                                                               java.util.TimeZone p_tz,
                                                               de.uplanet.lucy.types.UP_TYPE p_dataType)
                                             throws java.sql.SQLException,
                                                    de.uplanet.lucy.usermanager.NotFoundException,
                                                    java.io.IOException
Deprecated. DO ABSOLUTELY NOT USE THIS METHOD!

Throws:
java.sql.SQLException
de.uplanet.lucy.usermanager.NotFoundException
java.io.IOException

getToday

public static java.lang.String getToday(java.util.TimeZone p_tz)
Gives Systeminformation Today as a locale String.

Parameters:
p_tz -
Returns:
String Today as Locale String.

getToday

public static java.lang.String getToday(java.util.TimeZone p_tzUser,
                                        java.util.TimeZone p_tzResult)
Gives Systeminformation Today as a locale String.

Parameters:
p_tz -
Returns:
String Today as Locale String.

getTodayFormat

public static java.lang.String getTodayFormat()
Gives Systeminformation Today as a locale String. ( Used by VELOCITY !)

Returns:
String Today as Locale String.

getCalendar

public static UpCalendar getCalendar(java.util.TimeZone p_tz,
                                     java.lang.String p_strAdjust)
Gives Systeminformation Today adjusted by the adjust string. The adjust string works like year,month,day,hour,minute,second . If the values have a sign like - or + the value is interpreted realtive to today if they have no sign it is a absolut value (specials: use 1 for january) e.g. ",-1,+1,15,,0" which means: this year, last month, tomorow, at 15 o'clock, current minutes and 0 seconds

Parameters:
p_tz -
p_strAdjust - : y,m,d,h,m,s
Returns:
UpCalendar adjusted today in UTC and in ISO format.

adjust

public static void adjust(java.util.Calendar p_cal,
                          java.lang.String p_strAdjust)
Adjusts the given calendar with the adjust string. The adjust string works like year,month,day,hour,minute,second . If the values have a sign like - or + the value is interpreted realtive to the given calendar date. If they have no sign it is a absolut value (specials: use 1 for january) e.g. ",-1,+1,15,,0" which means: this year, last month, tomorow, at 15 o'clock, current minutes and 0 seconds

Parameters:
p_cal -
p_strAdjust -

getTodayPlus

public static java.lang.String getTodayPlus(java.util.TimeZone p_tzUser,
                                            java.util.TimeZone p_tzResult,
                                            java.lang.String p_strAdjust)
Gives Systeminformation Today adjusted by the adjust string. The adjust string works like year,month,day,hour,minute,second . If the values have a sign like - or + the value is interpreted realtive to today if they have no sign it is a absolut value (specials: use 1 for january) e.g. ",-1,+1,15,,0" which means: this year, last month, tomorow, at 15 o'clock, current minutes and 0 seconds

Parameters:
p_tzUser -
p_tzResultDb -
p_strAdjust - : y,m,d,h,m,s
Returns:
String adjusted today in UTC and in ISO format.

getTodayPlus

public static java.lang.String getTodayPlus(java.util.TimeZone p_tz,
                                            java.lang.String p_strAdjust)
Gives Systeminformation Today adjusted by the adjust string. The adjust string works like year,month,day,hour,minute,second . If the values have a sign like - or + the value is interpreted realtive to today if they have no sign it is a absolut value (specials: use 1 for january) e.g. ",-1,+1,15,,0" which means: this year, last month, tomorow, at 15 o'clock, current minutes and 0 seconds

Parameters:
p_tz -
p_strAdjust - : y,m,d,h,m,s
Returns:
String adjusted today in UTC and in ISO format.

formatDate

public static java.lang.String formatDate(java.util.TimeZone p_tzResult,
                                          java.util.Calendar l_calendar)

getTodayPlusUTC

public static UpCalendar getTodayPlusUTC(java.util.TimeZone p_tz,
                                         java.lang.String p_strAdjust)
Gives Systeminformation Today adjusted by the adjust string. The adjust string works like year,month,day,hour,minute,second . If the values have a sign like - or + the value is interpreted realtive to today if they have no sign it is a absolut value (specials: use 1 for january) e.g. ",-1,+1,15,,0" which means: this year, last month, tomorow, at 15 o'clock, current minutes and 0 seconds

Parameters:
p_tz -
p_strAdjust - : y,m,d,h,m,s
Returns:
String adjusted today in UTC and in ISO format.

getAvailableTimeZoneIDs

public static java.lang.String[] getAvailableTimeZoneIDs()
Returns:
String[] with TimeZone IDs

getLocales

public static java.util.Locale[] getLocales()

changeToName

@Deprecated
public static java.util.List<java.lang.String> changeToName(java.util.List<java.lang.String> p_guids)
                                                     throws de.uplanet.lucy.server.businesslogic.BlException
Deprecated. DO ABSOLUTELY NOT USE THIS METHOD!

Throws:
de.uplanet.lucy.server.businesslogic.BlException


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.