www.element4solution.com

e4s.servlet
Class E4ServletImplementation

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.servlet.E4ServletImplementation
Direct Known Subclasses:
E4ServletImplementation_Applet, E4ServletImplementation_Servlet

public abstract class E4ServletImplementation
extends E4Object

Covers functionality used in all implementations for E4ServletImplementation_Intf

Since:
JDK 1.4

Field Summary
static java.lang.String COOKIE_PREFIX
          This name is appended to cookies
static char COOKIE_SEPERATOR
          Seperator for array cookies.
protected  int m_last_alias
           
protected  E4Method_Intf m_last_mref
           
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Constructor Summary
E4ServletImplementation()
           
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
static java.lang.String getApplication()
          Get the name of the application currently running in.
 E4ApplObj_Intf getApplObj()
          Get the application object.
 E4Client getClient()
          Get the current E4Client.
static java.lang.Object getClientObject(E4ApplObj_Intf applobj, java.lang.String id)
           
 java.lang.Object getClientObject(E4Client client, java.lang.String id)
          Get an object, identified by a specified id, which is common and shared to all instances running the same current client.
 java.lang.Object getClientObject(java.lang.String id)
          Get an object, identified by a specified id, which is common and shared to all instances running the same current client.
static java.lang.String getClientValue(E4ApplObj_Intf applobj, java.lang.String id)
          Get a value, associated with an client and identified by a key.
 java.lang.String getClientValue(java.lang.String id)
          Get a value, associated with an client and identified by a key.
static java.lang.String getClientValue(java.lang.String id, E4ApplObj_Intf applobj)
          Get a value, associated with an client and identified by a key.
 boolean getClientValueBool(java.lang.String id)
          Get a value, associated with an client and identified by a key.
static boolean getClientValueBool(java.lang.String id, E4ApplObj_Intf applobj)
          Get a value, associated with an client and identified by a key.
 java.util.Date getClientValueDate(java.lang.String id)
          Get a value, associated with an client and identified by a key.
static java.util.Date getClientValueDate(java.lang.String id, E4ApplObj_Intf applobj)
          Get a value, associated with an client and identified by a key.
 float getClientValueFloat(java.lang.String id)
          Get a value, associated with an client and identified by a key.
static float getClientValueFloat(java.lang.String id, E4ApplObj_Intf applobj)
          Get a value, associated with an client and identified by a key.
 int getClientValueInt(java.lang.String id)
          Get a value, associated with an client and identified by a key.
static int getClientValueInt(java.lang.String id, E4ApplObj_Intf applobj)
          Get a value, associated with an client and identified by a key.
 long getClientValueLong(java.lang.String id)
          Get a value, associated with an client and identified by a key.
static long getClientValueLong(java.lang.String id, E4ApplObj_Intf applobj)
          Get a value, associated with an client and identified by a key.
 E4CompanyGroup getCompany_Group()
          Get the group of the company currently running.
abstract  java.lang.String getCookie(java.lang.String name)
          Read a value from a cookie by the specified cookie name.
 java.lang.String[] getCookieArr(java.lang.String name)
          Get an array of values in a cookie.
 boolean getCookieBool(java.lang.String name)
          Read a value from a cookie by the specified cookie name.
 java.util.Date getCookieDate(java.lang.String name)
          Read a value from a cookie by the specified cookie name.
 long getCookieLong(java.lang.String name)
          Read a value from a cookie by the specified cookie name.
 CountryCode getCountryCode()
          Get the country-code which depends on the client.
 java.text.SimpleDateFormat getDateFormat()
          Get the date format (depending on the current logged in user).
 E4DecimalSign getDecimalSign()
          Get the decimal sign, as to be used for float representation.
 Language getLanguage()
          Get the user's language.
 E4MethodPickup.PickParams getPickParams()
          This is more an internal function, not recommended for usage within applications.
 java.lang.String getRemoteAddr()
          Returns the Internet Protocol (IP) address of the client or last proxy that sent the request.
abstract  java.lang.String getSessionId()
           
 boolean getSessionObject_Boolean(java.lang.String obj_id)
          Get a session object as boolean for the current user session.
 long getSessionObject_Long(java.lang.String obj_id)
          Get a session object as long for the current user session.
 java.lang.String getSessionObject_String(java.lang.String obj_id)
          Get a session object as String for the current user session.
abstract  java.lang.Object getSessionObject(java.lang.String obj_id)
           
abstract  java.util.Hashtable getSessionObjects()
           
static java.util.Date getStartupTime()
           
 java.text.SimpleDateFormat getTimeFormat()
          Get the time format (depending on the current logged in user).
 TimeZone getTimeZone()
          Get the date format (depending on the current logged in user).
 E4User getUser()
          Get the user running the application.
 java.lang.String getUserValue(java.lang.String id)
          Get a value, associated with a userand identified by a key.
 boolean getUserValueBool(java.lang.String id)
          Get a value, associated with a userand identified by a key.
 java.util.Date getUserValueDate(java.lang.String id)
          Get a value, associated with a userand identified by a key.
 java.lang.String[] getUserValueIDs()
           
 int getUserValueInt(java.lang.String id)
          Get a value, associated with a userand identified by a key.
 long getUserValueLong(java.lang.String id)
          Get a value, associated with a userand identified by a key.
protected  HTML invoceFunctionHTML(E4Method_Intf mref, E4CgiParams cgiParams, E4ServletImplementation_Intf servlet)
          Get an enumeration of all system parameter's ID.
 boolean isRunningWindow()
          Check, if the current context is running within a window.
 void removeApplicationObject()
          Set the application object.
static void removeClientObject(E4ApplObj_Intf applobj, java.lang.String id)
           
 void removeClientObject(E4ClientObject_Intf obj)
          Remove an object, identified by a specified id, which is common and shared to all instances running the same current client. be careful, as removing the object might cause other instances to fail.
 void removeClientObject(E4Client client, java.lang.String id)
          Remove an object, identified by a specified id, which is common and shared to all instances running the same current client. be careful, as removing the object might cause other instances to fail.
 void removeClientObject(java.lang.String id)
          Remove an object, identified by a specified id, which is common and shared to all instances running the same current client. be careful, as removing the object might cause other instances to fail.
static boolean removeClientValue(E4ApplObj_Intf applobj, java.lang.String id)
          Remove a value, associated with an client and identified by a key.
 boolean removeClientValue(java.lang.String id)
          Remove a value, associated with an client and identified by a key.
 void removeSessionObject(E4SessionObject_Intf obj)
           
abstract  void removeSessionObject(java.lang.String obj_id)
           
 void removeUserValue(java.lang.String id)
          Remove a value, associated with the current user and identified by a key.
 boolean sessionCanEditHints()
          Can the user (administraor) within the current session edit hints?
 void sessionCanEditHints(boolean mode)
           
 boolean sessionCanEditStyles()
           
 void sessionCanEditStyles(boolean mode)
           
 boolean sessionCanEditTranslations()
           
 void sessionCanEditTranslations(boolean mode)
           
 void setApplicationObject(E4ApplObj_Intf applobj)
          Set the application object.
static void setClientObject(E4ApplObj_Intf applobj, java.lang.String id, java.lang.Object obj)
           
 void setClientObject(E4ClientObject_Intf obj)
           
 void setClientObject(E4Client client, java.lang.String id, java.lang.Object obj)
          Set an object, identified by a specified id, which is common and shared to all instances running the same current client.
 void setClientObject(java.lang.String id, java.lang.Object obj)
          Set an object, identified by a specified id, which is common and shared to all instances running the same current client.
static boolean setClientValue(E4ApplObj_Intf applobj, java.lang.String id, boolean val)
          Set a value, associated with an client and identified by a key.
static boolean setClientValue(E4ApplObj_Intf applobj, java.lang.String id, java.util.Date val)
          Set a value, associated with an client and identified by a key.
static boolean setClientValue(E4ApplObj_Intf applobj, java.lang.String id, E4Date val)
          Set a value, associated with an client and identified by a key.
static boolean setClientValue(E4ApplObj_Intf applobj, java.lang.String id, float val)
          Set a value, associated with an client and identified by a key.
static boolean setClientValue(E4ApplObj_Intf applobj, java.lang.String id, long val)
          Set a value, associated with an client and identified by a key.
static boolean setClientValue(E4ApplObj_Intf applobj, java.lang.String id, java.lang.String val)
          Set a value, associated with an client and identified by a key.
 boolean setClientValue(java.lang.String id, boolean val)
          Set a value, associated with an client and identified by a key.
 boolean setClientValue(java.lang.String id, java.util.Date val)
          Set a value, associated with an client and identified by a key.
 boolean setClientValue(java.lang.String id, E4String val)
          Set a value, associated with an client and identified by a key.
 boolean setClientValue(java.lang.String id, float val)
          Set a value, associated with an client and identified by a key.
 boolean setClientValue(java.lang.String id, int val)
          Set a value, associated with an client and identified by a key.
 boolean setClientValue(java.lang.String id, long val)
          Set a value, associated with an client and identified by a key.
 boolean setClientValue(java.lang.String id, java.lang.String val)
          Set a value, associated with an client and identified by a key.
static boolean setClientValue(java.lang.String id, java.lang.String val, E4ApplObj_Intf applobj)
          Deprecated.  
 void setCookie(java.lang.String name, boolean val)
          Store a value in a cookie.
 void setCookie(java.lang.String name, java.util.Date val)
          Store a value in a cookie.
 void setCookie(java.lang.String name, E4Long val)
          Store a value in a cookie.
 void setCookie(java.lang.String name, E4String val)
          Store a value in a cookie.
 void setCookie(java.lang.String name, int val)
          Store a value in a cookie.
 void setCookie(java.lang.String name, long val)
          Store a value in a cookie.
abstract  void setCookie(java.lang.String name, java.lang.String val)
          Store a value in a cookie.
 void setCookie(java.lang.String name, java.lang.String[] val)
          Store an array of values in a cookie.
 void setSessionObject(java.lang.String obj_id, boolean val)
          Set a session object for the current user session.
 void setSessionObject(java.lang.String obj_id, long val)
          Set a session object for the current user session.
abstract  void setSessionObject(java.lang.String obj_id, java.lang.Object obj)
           
 void setUserValue(java.lang.String id, boolean val)
          Set a value, associated with a userand identified by a key.
 void setUserValue(java.lang.String id, java.util.Date val)
          Set a value, associated with a userand identified by a key.
 void setUserValue(java.lang.String id, E4Long val)
          Set a value, associated with a userand identified by a key.
 void setUserValue(java.lang.String id, E4String val)
          Set a value, associated with a userand identified by a key.
 void setUserValue(java.lang.String id, int val)
          Set a value, associated with a userand identified by a key.
 void setUserValue(java.lang.String id, long val)
          Set a value, associated with a userand identified by a key.
 void setUserValue(java.lang.String id, java.lang.String val)
          Set a value, associated with a userand identified by a key.
 
Methods inherited from class e4s.util.E4Object
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, toString, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_last_alias

protected int m_last_alias

m_last_mref

protected E4Method_Intf m_last_mref

COOKIE_PREFIX

public static final java.lang.String COOKIE_PREFIX
This name is appended to cookies

See Also:
Constant Field Values

COOKIE_SEPERATOR

public static final char COOKIE_SEPERATOR
Seperator for array cookies.

See Also:
#getCookieArr(), Constant Field Values
Constructor Detail

E4ServletImplementation

public E4ServletImplementation()
Method Detail

isRunningWindow

public boolean isRunningWindow()
Check, if the current context is running within a window.

Returns:
true, if running in a window
See Also:
A.openInNewWindow(), e4s.E4Constants#PARAM_ISWINDOW

getPickParams

public E4MethodPickup.PickParams getPickParams()
This is more an internal function, not recommended for usage within applications. If this does not return not null, that indicates that there is a pickup in progress (user opened a window for selection), and the relevant values for this pickup are stored in this member.

Returns:
null: no pickup is in progress, else a pickup is in progress and the source parameters are stored in the returning object (e.g. from which field it was called).
See Also:
e4s.E4Constants#PARAM_ISPICKUP, E4MethodPickup

invoceFunctionHTML

protected HTML invoceFunctionHTML(E4Method_Intf mref,
                                  E4CgiParams cgiParams,
                                  E4ServletImplementation_Intf servlet)
                           throws E4ServletInvocationError,
                                  E4DBException,
                                  java.io.IOException,
                                  org.xml.sax.SAXParseException
Get an enumeration of all system parameter's ID. To get the values, call #getSystemParameter(String).

Throws:
E4ServletInvocationError
E4DBException
java.io.IOException
org.xml.sax.SAXParseException
See Also:
#setSystemParameter, #getSystemParameter

sessionCanEditStyles

public boolean sessionCanEditStyles()

sessionCanEditStyles

public void sessionCanEditStyles(boolean mode)

sessionCanEditTranslations

public boolean sessionCanEditTranslations()

sessionCanEditTranslations

public void sessionCanEditTranslations(boolean mode)

sessionCanEditHints

public boolean sessionCanEditHints()
Can the user (administraor) within the current session edit hints?

Returns:
true, if the user can edit hints
See Also:
E4HintID, T_E4S_HINT_Sel, T_E4S_HINT_READ_Sel, E4Hint, E4ModuleHintEdit, e4s.Html.HtmlContentElement#Hint(e4s.db.systabledef.E4HintID,e4s.servlet.E4ServletImplementation_Intf)

sessionCanEditHints

public void sessionCanEditHints(boolean mode)

setSessionObject

public void setSessionObject(java.lang.String obj_id,
                             long val)
Set a session object for the current user session. Stores the long value internal as Long.

Parameters:
obj_id - identifyer for the object
val - the value to be stored
See Also:
getSessionObject_Long( String ), removeSessionObject( String ), getSessionObjects(), setSessionObject( String, boolean ), setSessionObject( String, Object )

setSessionObject

public void setSessionObject(java.lang.String obj_id,
                             boolean val)
Set a session object for the current user session. Stores the boolean value internal as Boolean.

Parameters:
obj_id - identifyer for the object
val - the value to be stored
See Also:
getSessionObject_Boolean( String ), removeSessionObject( String ), getSessionObjects(), setSessionObject( String, boolean ), setSessionObject( String, Object )

getSessionObject_String

public java.lang.String getSessionObject_String(java.lang.String obj_id)
Get a session object as String for the current user session.

Parameters:
obj_id - identifyer for the object
Returns:
null if not found, or the String associated with this id.
See Also:
removeSessionObject( String ), setSessionObject( String, Object ), getSessionObjects()

getSessionObject_Long

public long getSessionObject_Long(java.lang.String obj_id)
Get a session object as long for the current user session.

Parameters:
obj_id - identifyer for the object
Returns:
null if not found, or the long value associated with this id.
See Also:
removeSessionObject( String ), setSessionObject( String, long ), getSessionObjects()

getSessionObject_Boolean

public boolean getSessionObject_Boolean(java.lang.String obj_id)
Get a session object as boolean for the current user session.

Parameters:
obj_id - identifyer for the object
Returns:
null if not found, or the boolean value associated with this id.
See Also:
removeSessionObject( String ), setSessionObject( String, boolean ), getSessionObjects()

getStartupTime

public static java.util.Date getStartupTime()

getApplObj

public E4ApplObj_Intf getApplObj()
Get the application object. The application object holds information such as E4Client, E4User-Name, etc..

Returns:
the application object
See Also:
E4ServletImplementation_Intf.getApplObj(), E4ServletImplementation_Intf.setApplicationObject(E4ApplObj_Intf), removeApplicationObject(), setApplicationObject(e4s.application.E4ApplObj_Intf)

setApplicationObject

public void setApplicationObject(E4ApplObj_Intf applobj)
Set the application object. The application object holds information such as E4Client, E4User-Name, etc..

Parameters:
applobj - the application object
See Also:
getApplObj(), removeApplicationObject()

removeApplicationObject

public void removeApplicationObject()
Set the application object. The application object holds information such as E4Client, E4User-Name, etc..

See Also:
getApplObj(), setApplicationObject(e4s.application.E4ApplObj_Intf)

getSessionObject

public abstract java.lang.Object getSessionObject(java.lang.String obj_id)

setSessionObject

public abstract void setSessionObject(java.lang.String obj_id,
                                      java.lang.Object obj)

getSessionObjects

public abstract java.util.Hashtable getSessionObjects()

removeSessionObject

public abstract void removeSessionObject(java.lang.String obj_id)

getSessionId

public abstract java.lang.String getSessionId()

getApplication

public static java.lang.String getApplication()
Get the name of the application currently running in.

Returns:
the name of the application
See Also:
E4ModuleImplementation.getApplication(), E4ModuleImplementation.setApplication(java.lang.String)

getClientValueBool

public static boolean getClientValueBool(java.lang.String id,
                                         E4ApplObj_Intf applobj)
                                  throws E4DBException
Get a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
applobj - a valid application object
id - the id for this value
Returns:
the value, null if not existing
Throws:
E4DBException
See Also:
setClientValue(String,String), getClientValueLong(String), getClientValueInt(String), getClientValueBool(String), getClientValueDate(String), getCookie(String)

getClientValueDate

public static java.util.Date getClientValueDate(java.lang.String id,
                                                E4ApplObj_Intf applobj)
                                         throws E4DBException
Get a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
applobj - a valid application object
id - the id for this value
Returns:
the value, null if not existing
Throws:
E4DBException
See Also:
setClientValue(String,String), getClientValueLong(String), getClientValueInt(String), getClientValueBool(String), getClientValueDate(String), getCookie(String)

getClientValueInt

public static int getClientValueInt(java.lang.String id,
                                    E4ApplObj_Intf applobj)
                             throws E4DBException
Get a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
applobj - a valid application object
id - the id for this value
Returns:
the value, null if not existing
Throws:
E4DBException
See Also:
setClientValue(String,String), getClientValueLong(String), getClientValueInt(String), getClientValueBool(String), getClientValueDate(String), getCookie(String)

getClientValueLong

public static long getClientValueLong(java.lang.String id,
                                      E4ApplObj_Intf applobj)
                               throws E4DBException
Get a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
applobj - a valid application object
id - the id for this value
Returns:
the value, null if not existing
Throws:
E4DBException
See Also:
setClientValue(String,String), getClientValueLong(String), getClientValueInt(String), getClientValueBool(String), getClientValueDate(String), getCookie(String)

getClientValueFloat

public static float getClientValueFloat(java.lang.String id,
                                        E4ApplObj_Intf applobj)
                                 throws E4DBException
Get a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
applobj - a valid application object
id - the id for this value
Returns:
the value, null if not existing
Throws:
E4DBException
See Also:
setClientValue(String,String), getClientValueLong(String), getClientValueInt(String), getClientValueBool(String), getClientValueDate(String)

getClientValue

public static java.lang.String getClientValue(java.lang.String id,
                                              E4ApplObj_Intf applobj)
                                       throws E4DBException
Get a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
applobj - a valid application object
id - the id for this value
Returns:
the value, null if not existing
Throws:
E4DBException
See Also:
setClientValue(String,String), getClientValueLong(String), getClientValueInt(String), getClientValueBool(String), getClientValueDate(String), getCookie(String)

getClientValue

public java.lang.String getClientValue(java.lang.String id)
                                throws E4DBException
Get a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
id - the id for this value
Returns:
the value, null if not existing
Throws:
E4DBException
See Also:
setClientValue(String,String), getClientValueLong(String), getClientValueInt(String), getClientValueBool(String), getClientValueDate(String), getCookie(String)

getClientValue

public static java.lang.String getClientValue(E4ApplObj_Intf applobj,
                                              java.lang.String id)
                                       throws E4DBException
Get a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
applobj - a valid application object
id - the id for this value
Returns:
the value, null if not existing
Throws:
E4DBException
See Also:
setClientValue(String,String), getClientValueLong(String), getClientValueInt(String), getClientValueBool(String), getClientValueDate(String), getCookie(String)

getClientValueLong

public long getClientValueLong(java.lang.String id)
                        throws E4DBException
Get a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
id - the id for this value
Returns:
the value, -1 if not existing
Throws:
E4DBException
See Also:
setClientValue(String,long), getClientValue(String), getClientValueInt(String), getClientValueBool(String), getClientValueDate(String), #getCookieInt(String)

getClientValueFloat

public float getClientValueFloat(java.lang.String id)
                          throws E4DBException
Get a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
id - the id for this value
Returns:
the value, Float.NaN if not existing
Throws:
E4DBException
See Also:
setClientValue(String,long), getClientValue(String), getClientValueInt(String), getClientValueBool(String), getClientValueDate(String), #getCookieInt(String)

getClientValueInt

public int getClientValueInt(java.lang.String id)
                      throws E4DBException
Get a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
id - the id for this value
Returns:
the value, -1 if not existing
Throws:
E4DBException
See Also:
setClientValue(String,int), getClientValueLong(String), getClientValue(String), getClientValueBool(String), getClientValueDate(String), getCookieLong(String)

getClientValueBool

public boolean getClientValueBool(java.lang.String id)
                           throws E4DBException
Get a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
id - the id for this value
Returns:
the value, -1 if not existing
Throws:
E4DBException
See Also:
setClientValue(String,boolean), getClientValueLong(String), getClientValue(String), getClientValueDate(String), getClientValueInt(String), getCookieBool(String)

getClientValueDate

public java.util.Date getClientValueDate(java.lang.String id)
                                  throws E4DBException
Get a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
id - the id for this value
Returns:
the value, -1 if not existing
Throws:
E4DBException
See Also:
setClientValue(String,java.util.Date), getClientValueLong(String), getClientValue(String), getClientValueBool(String), getClientValueInt(String), getCookieDate(String)

setClientValue

public boolean setClientValue(java.lang.String id,
                              java.lang.String val)
                       throws E4DBException
Set a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
id - the id for this value
val - the value to be stored, a value of null will cause deletion
Returns:
true, if this is a new or changed value
Throws:
E4DBException
See Also:
getClientValue(String), setCookie(String,String), setClientObject(String,Object)

setClientValue

public static boolean setClientValue(java.lang.String id,
                                     java.lang.String val,
                                     E4ApplObj_Intf applobj)
                              throws E4DBException
Deprecated. 

Throws:
E4DBException

setClientValue

public static boolean setClientValue(E4ApplObj_Intf applobj,
                                     java.lang.String id,
                                     float val)
                              throws E4DBException
Set a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
applobj - a valid application object
id - the id for this value
val - the value to be stored, a value of null will cause deletion
Returns:
true, if this is a new or changed value
Throws:
E4DBException
See Also:
getClientValue(e4s.application.E4ApplObj_Intf,String), #getClientValue(e4s.application.E4ApplObj_Intf,String,String)

setClientValue

public static boolean setClientValue(E4ApplObj_Intf applobj,
                                     java.lang.String id,
                                     boolean val)
                              throws E4DBException
Set a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
applobj - a valid application object
id - the id for this value
val - the value to be stored, a value of null will cause deletion
Returns:
true, if this is a new or changed value
Throws:
E4DBException
See Also:
getClientValue(e4s.application.E4ApplObj_Intf,String), #getClientValue(e4s.application.E4ApplObj_Intf,String,String)

setClientValue

public static boolean setClientValue(E4ApplObj_Intf applobj,
                                     java.lang.String id,
                                     long val)
                              throws E4DBException
Set a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
applobj - a valid application object
id - the id for this value
val - the value to be stored, a value of null will cause deletion
Returns:
true, if this is a new or changed value
Throws:
E4DBException
See Also:
getClientValue(e4s.application.E4ApplObj_Intf,String), #getClientValue(e4s.application.E4ApplObj_Intf,String,String)

setClientValue

public static boolean setClientValue(E4ApplObj_Intf applobj,
                                     java.lang.String id,
                                     java.util.Date val)
                              throws E4DBException
Set a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
applobj - a valid application object
id - the id for this value
val - the value to be stored, a value of null will cause deletion
Returns:
true, if this is a new or changed value
Throws:
E4DBException
See Also:
getClientValue(e4s.application.E4ApplObj_Intf,String), #getClientValue(e4s.application.E4ApplObj_Intf,String,String)

setClientValue

public static boolean setClientValue(E4ApplObj_Intf applobj,
                                     java.lang.String id,
                                     E4Date val)
                              throws E4DBException
Set a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
applobj - a valid application object
id - the id for this value
val - the value to be stored, a value of null will cause deletion
Returns:
true, if this is a new or changed value
Throws:
E4DBException
See Also:
getClientValue(e4s.application.E4ApplObj_Intf,String), #getClientValue(e4s.application.E4ApplObj_Intf,String,String)

setClientValue

public static boolean setClientValue(E4ApplObj_Intf applobj,
                                     java.lang.String id,
                                     java.lang.String val)
                              throws E4DBException
Set a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
applobj - a valid application object
id - the id for this value
val - the value to be stored, a value of null will cause deletion
Returns:
true, if this is a new or changed value
Throws:
E4DBException
See Also:
getClientValue(e4s.application.E4ApplObj_Intf,String), setCookie(String,String), setClientObject(String,Object)

setClientValue

public boolean setClientValue(java.lang.String id,
                              E4String val)
                       throws E4DBException
Set a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
id - the id for this value
val - the value to be stored, a value of null will cause deletion
Throws:
E4DBException
See Also:
getClientValue(String), setCookie(String,String)

setClientValue

public boolean setClientValue(java.lang.String id,
                              long val)
                       throws E4DBException
Set a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
id - the id for this value
val - the value to be stored
Returns:
true, if this is a new or changed value
Throws:
E4DBException
See Also:
getClientValueLong(String), setCookie(String,String)

setClientValue

public boolean setClientValue(java.lang.String id,
                              float val)
                       throws E4DBException
Set a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
id - the id for this value
val - the value to be stored
Returns:
true, if this is a new or changed value
Throws:
E4DBException
See Also:
getClientValueLong(String), setCookie(String,String)

setClientValue

public boolean setClientValue(java.lang.String id,
                              int val)
                       throws E4DBException
Set a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
id - the id for this value
val - the value to be stored
Returns:
true, if this is a new or changed value
Throws:
E4DBException
See Also:
getClientValueInt(String), setCookie(String,String)

setClientValue

public boolean setClientValue(java.lang.String id,
                              boolean val)
                       throws E4DBException
Set a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
id - the id for this value
val - the value to be stored, a value of true is stored as "1" and a value of false as "0"
Returns:
true, if this is a new or changed value
Throws:
E4DBException
See Also:
getClientValue(String), setCookie(String,String)

setClientValue

public boolean setClientValue(java.lang.String id,
                              java.util.Date val)
                       throws E4DBException
Set a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
id - the id for this value
val - the value to be stored, the value is stored in the format E4DBSelect.DB_DATEFORMAT
Throws:
E4DBException
See Also:
getClientValueDate(String), setCookie(String,java.util.Date)

removeClientValue

public boolean removeClientValue(java.lang.String id)
                          throws E4DBException
Remove a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
id - the id for this value
Throws:
E4DBException
See Also:
setClientValue(java.lang.String, java.lang.String), getClientValue(java.lang.String, e4s.application.E4ApplObj_Intf)

removeClientValue

public static boolean removeClientValue(E4ApplObj_Intf applobj,
                                        java.lang.String id)
                                 throws E4DBException
Remove a value, associated with an client and identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
id - the id for this value
Throws:
E4DBException
See Also:
setClientValue(java.lang.String, java.lang.String), getClientValue(java.lang.String, e4s.application.E4ApplObj_Intf)

setClientObject

public void setClientObject(java.lang.String id,
                            java.lang.Object obj)
Set an object, identified by a specified id, which is common and shared to all instances running the same current client. You can use this function also to update the associated object. A difference to the setClientValue(java.lang.String, java.lang.String) functionality is that client-objects are not database persistant.

Parameters:
id - a unique identifier associated with the object, not null
obj - the object to be stored, a value of null will be ignored
See Also:
setClientObject(e4s.application.E4Client,String,Object), removeClientObject(String), getClientObject(String), E4Client

setClientObject

public static void setClientObject(E4ApplObj_Intf applobj,
                                   java.lang.String id,
                                   java.lang.Object obj)

setClientObject

public void setClientObject(E4ClientObject_Intf obj)

setClientObject

public void setClientObject(E4Client client,
                            java.lang.String id,
                            java.lang.Object obj)
Set an object, identified by a specified id, which is common and shared to all instances running the same current client. You can use this function also to update the associated object. A difference to the setClientValue(java.lang.String, java.lang.String) functionality is that client-objects are not database persistant.

Parameters:
client - the current or another client
id - a unique identifier associated with the object, not null
obj - the object to be stored, a value of null will be ignored
See Also:
setClientObject(String,Object), removeClientObject(String), getClientObject(String), E4Client

getClientObject

public java.lang.Object getClientObject(java.lang.String id)
Get an object, identified by a specified id, which is common and shared to all instances running the same current client.

Parameters:
id - a unique identifier associated with the object
Returns:
null, if no object is available or the associated object
See Also:
getClientObject(e4s.application.E4Client,String), removeClientObject(String), setClientObject(String,Object), E4Client

getClientObject

public java.lang.Object getClientObject(E4Client client,
                                        java.lang.String id)
                                 throws E4ObjectNotAvailableException
Get an object, identified by a specified id, which is common and shared to all instances running the same current client.

Parameters:
client - the current or another client
id - a unique identifier associated with the object
Returns:
null, if no object is available or the associated object
Throws:
E4ObjectNotAvailableException
See Also:
getClientObject(String), removeClientObject(String), setClientObject(String,Object), E4Client

getClientObject

public static java.lang.Object getClientObject(E4ApplObj_Intf applobj,
                                               java.lang.String id)
                                        throws E4ObjectNotAvailableException
Throws:
E4ObjectNotAvailableException

removeClientObject

public static void removeClientObject(E4ApplObj_Intf applobj,
                                      java.lang.String id)

removeClientObject

public void removeClientObject(E4ClientObject_Intf obj)
Remove an object, identified by a specified id, which is common and shared to all instances running the same current client. be careful, as removing the object might cause other instances to fail.

Parameters:
id - a unique identifier associated with the object
See Also:
removeClientObject(e4s.application.E4Client,String), getClientObject(String), setClientObject(String,Object), E4Client

removeClientObject

public void removeClientObject(java.lang.String id)
Remove an object, identified by a specified id, which is common and shared to all instances running the same current client. be careful, as removing the object might cause other instances to fail.

Parameters:
id - a unique identifier associated with the object
See Also:
removeClientObject(e4s.application.E4Client,String), getClientObject(String), setClientObject(String,Object), E4Client

removeClientObject

public void removeClientObject(E4Client client,
                               java.lang.String id)
Remove an object, identified by a specified id, which is common and shared to all instances running the same current client. be careful, as removing the object might cause other instances to fail.

Parameters:
client - the current or any other client
id - a unique identifier associated with the object
See Also:
removeClientObject(String), getClientObject(String), setClientObject(String,Object), E4Client

getDecimalSign

public E4DecimalSign getDecimalSign()
Get the decimal sign, as to be used for float representation.

Returns:
decimalsign (common used either ',' or '.')
See Also:
e4s.html.input.extended.FLOATFIELD#setDecimalSign(), E4ApplObj_Intf.getDecimalSign()

getDateFormat

public java.text.SimpleDateFormat getDateFormat()
Get the date format (depending on the current logged in user).

Returns:
the dateformat e.g. new SimpleDateFormat("dd.MM.yyyy")
See Also:
getTimeFormat(), E4ApplObj_Intf.getDateFormat(), T_E4S_COMPANY_USER_Sel.CI_DATEFORMAT

getTimeFormat

public java.text.SimpleDateFormat getTimeFormat()
Get the time format (depending on the current logged in user).

Returns:
the timeformat e.g. new SimpleDateFormat("HH:mm:ss")
See Also:
getTimeFormat(), E4ApplObj_Intf.getTimeFormat(), T_E4S_COMPANY_USER_Sel.CI_DATEFORMAT

getTimeZone

public TimeZone getTimeZone()
Get the date format (depending on the current logged in user).

Returns:
the dateformat e.g. new SimpleDateFormat("dd.MM.yyyy")
See Also:
getTimeFormat(), E4ApplObj_Intf.getDateFormat(), T_E4S_COMPANY_USER_Sel.CI_DATEFORMAT

getCountryCode

public CountryCode getCountryCode()
Get the country-code which depends on the client. Note, that this is not the user's countrycode as it is necessary to have a E4Client dependent value, e.g. for a calendar.

Returns:
countrycode, using ISO abbreviations
See Also:
E4ApplObj_Intf.getCountryCode()

getLanguage

public Language getLanguage()
Get the user's language.

Returns:
language, using ISO abbreviations. If no application object is defined, this will return Language.ENGLISH
See Also:
E4ApplObj_Intf.getLanguage()

getClient

public E4Client getClient()
Get the current E4Client. It is important, that an E4ApplObj_Intf has been created common after a user login.

Returns:
the current client
See Also:
E4ApplObj_Intf.getClient()

getCompany_Group

public E4CompanyGroup getCompany_Group()
Get the group of the company currently running.

Returns:
the group
See Also:
E4User.getGroup(), getUser()

getUser

public E4User getUser()
Get the user running the application.

Returns:
the user object - holding information like company group, company and user id
See Also:
E4ApplObj_Intf.getUser()

setCookie

public abstract void setCookie(java.lang.String name,
                               java.lang.String val)
Store a value in a cookie. A cookie is an object that is stored locally on the client's machine, and requires clients who enable cookies in their browser settings.

Parameters:
name - the name of the cookie
val - the value of the cookie
See Also:
setCookie(String,String[]), setCookie(String,boolean), setCookie(String,long), setCookie(String,int), setCookie(String,e4s.util.E4String), setCookie(String,e4s.util.E4Long), setCookie(String,java.util.Date), getCookie(String)

getCookie

public abstract java.lang.String getCookie(java.lang.String name)
Read a value from a cookie by the specified cookie name. A cookie is an object that is stored locally on the client's machine, and requires clients who enable cookies in their browser settings.

Parameters:
name - the name of the cookie
Returns:
the value of the cookie, or null if the cookie does not exist
See Also:
setCookie(java.lang.String, java.lang.String), getCookieArr(String), getCookieLong(String), getCookieBool(String), getCookieDate(String)

setCookie

public void setCookie(java.lang.String name,
                      E4String val)
Store a value in a cookie. A cookie is an object that is stored locally on the client's machine, and requires clients who enable cookies in their browser settings.

Parameters:
name - the name of the cookie
val - the value of the cookie
See Also:
setCookie(String,String[]), setCookie(String,boolean), setCookie(String,long), setCookie(String,int), setCookie(String,String), setCookie(String,e4s.util.E4Long), setCookie(String,java.util.Date), getCookie(String)

setCookie

public void setCookie(java.lang.String name,
                      long val)
Store a value in a cookie. A cookie is an object that is stored locally on the client's machine, and requires clients who enable cookies in their browser settings.

Parameters:
name - the name of the cookie
val - the value of the cookie
See Also:
setCookie(String,String[]), setCookie(String,String), setCookie(String,boolean), setCookie(String,int), setCookie(String,e4s.util.E4String), setCookie(String,e4s.util.E4Long), setCookie(String,java.util.Date), getCookieLong(String)

setCookie

public void setCookie(java.lang.String name,
                      E4Long val)
Store a value in a cookie. A cookie is an object that is stored locally on the client's machine, and requires clients who enable cookies in their browser settings.

Parameters:
name - the name of the cookie
val - the value of the cookie
See Also:
setCookie(String,String[]), setCookie(String,boolean), setCookie(String,long), setCookie(String,int), setCookie(String,e4s.util.E4String), setCookie(String,String), setCookie(String,java.util.Date), getCookieLong(String)

setCookie

public void setCookie(java.lang.String name,
                      int val)
Store a value in a cookie. A cookie is an object that is stored locally on the client's machine, and requires clients who enable cookies in their browser settings.

Parameters:
name - the name of the cookie
val - the value of the cookie
See Also:
setCookie(String,String[]), setCookie(String,long), setCookie(String,boolean), setCookie(String,String), setCookie(String,e4s.util.E4String), setCookie(String,e4s.util.E4Long), setCookie(String,java.util.Date), #getCookieInt(String)

setCookie

public void setCookie(java.lang.String name,
                      boolean val)
Store a value in a cookie. A cookie is an object that is stored locally on the client's machine, and requires clients who enable cookies in their browser settings.

Parameters:
name - the name of the cookie
val - the value of the cookie, a value of true will be stored as "1" and a value of false as "0"
See Also:
setCookie(String,String[]), setCookie(String,long), setCookie(String,int), setCookie(String,String), setCookie(String,e4s.util.E4String), setCookie(String,e4s.util.E4Long), setCookie(String,java.util.Date), getCookieBool(String)

setCookie

public void setCookie(java.lang.String name,
                      java.util.Date val)
Store a value in a cookie. A cookie is an object that is stored locally on the client's machine, and requires clients who enable cookies in their browser settings.

Parameters:
name - the name of the cookie
val - the value of the cookie, the value is stored in the format E4DBSelect.DB_DATEFORMAT
See Also:
setCookie(String,String[]), setCookie(String,boolean), setCookie(String,long), setCookie(String,int), setCookie(String,e4s.util.E4String), setCookie(String,e4s.util.E4Long), setCookie(String,String), getCookieDate(String)

setCookie

public void setCookie(java.lang.String name,
                      java.lang.String[] val)
Store an array of values in a cookie. This function is useful, when several values needed to be stored in cookies but too many cookies shall be avoided. A cookie is an object that is stored locally on the client's machine, and requires clients who enable cookies in their browser settings. The number of elements in the array is not important, but all values together shall not exceed a value of (255 - number of elements - some space for escape characters), so we recommend not to exceed 128 bytes. The values are concatenated by a seperator defined in COOKIE_SEPERATOR.

Parameters:
name - the name of the cookie
val - the values of the cookie
See Also:
setCookie(String,String), getCookieArr(String)

getCookieLong

public long getCookieLong(java.lang.String name)
Read a value from a cookie by the specified cookie name. A cookie is an object that is stored locally on the client's machine, and requires clients who enable cookies in their browser settings.

Parameters:
name - the name of the cookie
Returns:
the value of the cookie, or -1 if the cookie does not exist
See Also:
setCookie(java.lang.String, java.lang.String), getCookieArr(String), getCookie(String), getCookieBool(String), getCookieDate(String)

getCookieBool

public boolean getCookieBool(java.lang.String name)
Read a value from a cookie by the specified cookie name. A cookie is an object that is stored locally on the client's machine, and requires clients who enable cookies in their browser settings.

Parameters:
name - the name of the cookie
Returns:
the value of the cookie, or false if the cookie does not exist
See Also:
setCookie(java.lang.String, java.lang.String), getCookieArr(String), getCookieLong(String), getCookie(String), getCookieDate(String)

getCookieDate

public java.util.Date getCookieDate(java.lang.String name)
                             throws java.lang.Exception
Read a value from a cookie by the specified cookie name. A cookie is an object that is stored locally on the client's machine, and requires clients who enable cookies in their browser settings.

Parameters:
name - the name of the cookie
Returns:
the value of the cookie, or null if the cookie does not exist
Throws:
java.lang.Exception
See Also:
setCookie(java.lang.String, java.lang.String), getCookieArr(String), getCookieLong(String), getCookieBool(String), getCookie(String)

getCookieArr

public java.lang.String[] getCookieArr(java.lang.String name)
Get an array of values in a cookie. This function is useful, when several values needed to be stored in cookies but too many cookies shall be avoided.

Parameters:
name - the name of the cookie
See Also:
setCookie(String,String[])

getRemoteAddr

public java.lang.String getRemoteAddr()
Returns the Internet Protocol (IP) address of the client or last proxy that sent the request. For HTTP servlets.

Returns:
null

setUserValue

public void setUserValue(java.lang.String id,
                         java.lang.String val)
                  throws E4DBException
Set a value, associated with a userand identified by a key. A client value is a value, identified by an id, which is shared between all sessions running the current E4Client. E4Client values are stored in a database table T_E4S_CLIENT_VAL_Sel.

Parameters:
id - the id for this value
val - the value to be stored, a value of null will cause deletion
Throws:
E4DBException
See Also:
getUserValue(String), setCookie(String,String), setClientObject(String,Object)

setUserValue

public void setUserValue(java.lang.String id,
                         E4String val)
                  throws E4DBException
Set a value, associated with a userand identified by a key. A user value is a value, identified by an id, which is local for one user and database persistant in T_E4S_USER_VAL_Sel.

Parameters:
id - the id for this value
val - the value to be stored, a value of null will cause deletion
Throws:
E4DBException
See Also:
getUserValue(String), setCookie(String,String)

setUserValue

public void setUserValue(java.lang.String id,
                         E4Long val)
                  throws E4DBException
Set a value, associated with a userand identified by a key. A user value is a value, identified by an id, which is local for one user and database persistant in T_E4S_USER_VAL_Sel.

Parameters:
id - the id for this value
val - the value to be stored
Throws:
E4DBException
See Also:
getUserValueLong(String), setCookie(String,String)

setUserValue

public void setUserValue(java.lang.String id,
                         long val)
                  throws E4DBException
Set a value, associated with a userand identified by a key. A user value is a value, identified by an id, which is local for one user and database persistant in T_E4S_USER_VAL_Sel.

Parameters:
id - the id for this value
val - the value to be stored
Throws:
E4DBException
See Also:
getUserValueLong(String), setCookie(String,String)

setUserValue

public void setUserValue(java.lang.String id,
                         int val)
                  throws E4DBException
Set a value, associated with a userand identified by a key. A user value is a value, identified by an id, which is local for one user and database persistant in T_E4S_USER_VAL_Sel.

Parameters:
id - the id for this value
val - the value to be stored
Throws:
E4DBException
See Also:
getUserValueInt(String), setCookie(String,String)

setUserValue

public void setUserValue(java.lang.String id,
                         boolean val)
                  throws E4DBException
Set a value, associated with a userand identified by a key. A user value is a value, identified by an id, which is local for one user and database persistant in T_E4S_USER_VAL_Sel.

Parameters:
id - the id for this value
val - the value to be stored, a value of true is stored as "1" and a value of false as "0"
Throws:
E4DBException
See Also:
getUserValueBool(String), setCookie(String,String)

setUserValue

public void setUserValue(java.lang.String id,
                         java.util.Date val)
                  throws E4DBException
Set a value, associated with a userand identified by a key. A user value is a value, identified by an id, which is local for one user and database persistant in T_E4S_USER_VAL_Sel.

Parameters:
id - the id for this value
val - the value to be stored, the value is stored in the format E4DBSelect.DB_DATEFORMAT
Throws:
E4DBException
See Also:
getUserValueDate(String), setCookie(String,java.util.Date)

getUserValue

public java.lang.String getUserValue(java.lang.String id)
                              throws E4DBException
Get a value, associated with a userand identified by a key. A user value is a value, identified by an id, which is local for one user and database persistant in T_E4S_USER_VAL_Sel.

Parameters:
id - the id for this value
Returns:
the value, null if not existing
Throws:
E4DBException
See Also:
setUserValue(String,String), getUserValueLong(String), getUserValueInt(String), getUserValueBool(String), getUserValueDate(String), getCookie(String)

getUserValueIDs

public java.lang.String[] getUserValueIDs()
                                   throws E4DBException
Throws:
E4DBException

getUserValueLong

public long getUserValueLong(java.lang.String id)
                      throws E4DBException
Get a value, associated with a userand identified by a key. A user value is a value, identified by an id, which is local for one user and database persistant in T_E4S_USER_VAL_Sel.

Parameters:
id - the id for this value
Returns:
the value, -1 if not existing
Throws:
E4DBException
See Also:
setUserValue(String,long), getUserValue(String), getUserValueInt(String), getUserValueBool(String), getUserValueDate(String), getCookieLong(String)

getUserValueInt

public int getUserValueInt(java.lang.String id)
                    throws E4DBException
Get a value, associated with a userand identified by a key. A user value is a value, identified by an id, which is local for one user and database persistant in T_E4S_USER_VAL_Sel.

Parameters:
id - the id for this value
Returns:
the value, -1 if not existing
Throws:
E4DBException
See Also:
setUserValue(String,int), getUserValueLong(String), getUserValue(String), getUserValueBool(String), getUserValueDate(String), #getCookieInt(String)

getUserValueDate

public java.util.Date getUserValueDate(java.lang.String id)
                                throws E4DBException
Get a value, associated with a userand identified by a key. A user value is a value, identified by an id, which is local for one user and database persistant in T_E4S_USER_VAL_Sel.

Parameters:
id - the id for this value
Returns:
the value, -1 if not existing
Throws:
E4DBException
See Also:
setUserValue(String,java.util.Date), getUserValueLong(String), getUserValue(String), getUserValueBool(String), getUserValueInt(String), getCookieDate(String)

getUserValueBool

public boolean getUserValueBool(java.lang.String id)
                         throws E4DBException
Get a value, associated with a userand identified by a key. A user value is a value, identified by an id, which is local for one user and database persistant in T_E4S_USER_VAL_Sel.

Parameters:
id - the id for this value
Returns:
the value, -1 if not existing
Throws:
E4DBException
See Also:
setUserValue(String,boolean), getUserValueLong(String), getUserValue(String), getUserValueDate(String), getUserValueInt(String), getCookieBool(String)

removeUserValue

public void removeUserValue(java.lang.String id)
                     throws E4DBException
Remove a value, associated with the current user and identified by a key. A user value is a value, identified by an id, which is local for one user and database persistant in T_E4S_USER_VAL_Sel.

Parameters:
id - the id for this value
Throws:
E4DBException
See Also:
setUserValue(java.lang.String, java.lang.String), getUserValue(java.lang.String)

removeSessionObject

public void removeSessionObject(E4SessionObject_Intf obj)

_getSVNVersionString

public static java.lang.String _getSVNVersionString()
Get version info string from subversion.

Returns:
the version info string.
See Also:
E4Util.getRevisionCodeFromSVN(Class)

www.element4solution.com