www.element4solution.com

e4s.application
Class E4ApplObj

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.application.E4ApplObjBasic
          extended by e4s.application.E4ApplObj
All Implemented Interfaces:
E4ApplObj_Intf

public class E4ApplObj
extends E4ApplObjBasic
implements E4ApplObj_Intf

The default implementation of the E4ApplObj_Intf, including permission handling.

Since:
JDK 1.4
See Also:
E4Client, E4User, Language, E4ServletImplementation_Intf.getApplObj(), e4s.servlet.E4ServletImplementation_Intf#setApplicationObject(), T_E4S_CLIENT_Sel, T_E4S_COMPANY_Sel, T_E4S_COMPANY_USER_Sel

Field Summary
protected  T_E4S_CLIENT_Obj m_client_object
           
protected  T_E4S_COMPANY_Obj m_company_object
           
protected  T_E4S_COMPANY_USER_Obj m_company_user_object
           
 
Fields inherited from class e4s.application.E4ApplObjBasic
m_created, m_language, m_permissions, PERMISSION_REASON_ADDED, PERMISSION_REASON_AND, PERMISSION_REASON_COMPANY, PERMISSION_REASON_GROUP, PERMISSION_REASON_INITIALIZED, PERMISSION_REASON_OR, PERMISSION_REASON_USER
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Fields inherited from interface e4s.application.E4ApplObj_Intf
SESSION_OBJ_ID
 
Constructor Summary
E4ApplObj(T_E4S_CLIENT_Obj client, T_E4S_COMPANY_Obj company, T_E4S_COMPANY_USER_Obj company_user)
           
 
Method Summary
static java.lang.String _getSVNVersionString()
           
 boolean canBeUsedForSystemLogin()
           
 T_E4S_CLIENT_Obj get_T_E4S_CLIENT_Obj()
           
 T_E4S_COMPANY_Obj get_T_E4S_COMPANY_Obj()
           
 T_E4S_COMPANY_USER_Obj get_T_E4S_COMPANY_USER_Obj()
           
 java.lang.String getClient_Name()
          Get the company's name for the client.
 E4Client getClient()
          Get the E4Client of the user running the application.
 java.lang.String getCompany_Name()
          Get the name of the company.
 CountryCode getCountryCode()
          Get the country-code which depends on the client.
 java.text.SimpleDateFormat getDateFormat()
          Get the date format.
 E4DecimalSign getDecimalSign()
          Get the decimal sign, as to be used for float representation.
 java.text.SimpleDateFormat getTimeFormat()
          Get the time format.
 TimeZone getTimeZone()
          Get the decimal sign, as to be used for float representation.
 java.lang.String getUser_Name()
          Get the name of the user.
 E4User getUser()
           
 java.lang.String toString()
           
 
Methods inherited from class e4s.application.E4ApplObjBasic
canDo_Reason, canDo_Reason, canDo, getClient_RootPath, getClient_URL, getLanguage, getLoginTime, getPermissions, getScreenHeight, getScreenWidth, getSession, grantPermission, readPermission, readPermission, readPermissions, readPermissions, setLanguage, setScreenHeight, setScreenWidth, setSession
 
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, 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
 
Methods inherited from interface e4s.application.E4ApplObj_Intf
canDo, getClient_RootPath, getClient_URL, getLanguage, getLoginTime, getPermissions, getScreenHeight, getScreenWidth, getSession, setLanguage
 

Field Detail

m_client_object

protected T_E4S_CLIENT_Obj m_client_object

m_company_object

protected T_E4S_COMPANY_Obj m_company_object

m_company_user_object

protected T_E4S_COMPANY_USER_Obj m_company_user_object
Constructor Detail

E4ApplObj

public E4ApplObj(T_E4S_CLIENT_Obj client,
                 T_E4S_COMPANY_Obj company,
                 T_E4S_COMPANY_USER_Obj company_user)
          throws E4DBException
Throws:
E4DBException
Method Detail

getClient

public E4Client getClient()
Description copied from class: E4ApplObjBasic
Get the E4Client of the user running the application.

Specified by:
getClient in interface E4ApplObj_Intf
Specified by:
getClient in class E4ApplObjBasic
Returns:
the E4Client

getClient_Name

public java.lang.String getClient_Name()
Get the company's name for the client.

Specified by:
getClient_Name in interface E4ApplObj_Intf
Overrides:
getClient_Name in class E4ApplObjBasic
See Also:
getClient()

getCompany_Name

public java.lang.String getCompany_Name()
Description copied from interface: E4ApplObj_Intf
Get the name of the company.

Specified by:
getCompany_Name in interface E4ApplObj_Intf
Overrides:
getCompany_Name in class E4ApplObjBasic
See Also:
E4ApplObj_Intf.getUser()

getUser_Name

public java.lang.String getUser_Name()
Description copied from interface: E4ApplObj_Intf
Get the name of the user.

Specified by:
getUser_Name in interface E4ApplObj_Intf
Overrides:
getUser_Name in class E4ApplObjBasic
See Also:
E4ApplObj_Intf.getUser()

getUser

public E4User getUser()
Specified by:
getUser in interface E4ApplObj_Intf
Specified by:
getUser in class E4ApplObjBasic

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.

Specified by:
getCountryCode in interface E4ApplObj_Intf
Overrides:
getCountryCode in class E4ApplObjBasic
Returns:
countrycode, using ISO abbreviations
See Also:
#setCountryCode

getDecimalSign

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

Specified by:
getDecimalSign in interface E4ApplObj_Intf
Overrides:
getDecimalSign in class E4ApplObjBasic
Returns:
decimalsign (common used either ',' or '.')
See Also:
#setDecimalSign

getTimeZone

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

Specified by:
getTimeZone in interface E4ApplObj_Intf
Overrides:
getTimeZone in class E4ApplObjBasic
Returns:
decimalsign (common used either ',' or '.')
See Also:
T_E4S_COMPANY_USER_Sel.CI_TIMEZONE

getDateFormat

public java.text.SimpleDateFormat getDateFormat()
Get the date format.

Specified by:
getDateFormat in interface E4ApplObj_Intf
Overrides:
getDateFormat in class E4ApplObjBasic
Returns:
the user defined date format or e4s.application.applObjectBasis#getTimeFormat() by default.
See Also:
getTimeFormat(), E4ServletImplementation_Intf.getDateFormat(), T_E4S_COMPANY_USER_Sel.CI_DATEFORMAT

getTimeFormat

public java.text.SimpleDateFormat getTimeFormat()
Get the time format.

Specified by:
getTimeFormat in interface E4ApplObj_Intf
Overrides:
getTimeFormat in class E4ApplObjBasic
Returns:
the user defined time format or e4s.application.applObjectBasis#getTimeFormat() by default.
See Also:
getDateFormat(), E4ServletImplementation_Intf.getTimeFormat(), T_E4S_COMPANY_USER_Sel.CI_TIMEFORMAT

toString

public java.lang.String toString()
Overrides:
toString in class E4Object

get_T_E4S_CLIENT_Obj

public T_E4S_CLIENT_Obj get_T_E4S_CLIENT_Obj()

get_T_E4S_COMPANY_Obj

public T_E4S_COMPANY_Obj get_T_E4S_COMPANY_Obj()

get_T_E4S_COMPANY_USER_Obj

public T_E4S_COMPANY_USER_Obj get_T_E4S_COMPANY_USER_Obj()

_getSVNVersionString

public static java.lang.String _getSVNVersionString()

canBeUsedForSystemLogin

public boolean canBeUsedForSystemLogin()
Specified by:
canBeUsedForSystemLogin in interface E4ApplObj_Intf

www.element4solution.com