www.element4solution.com

e4s.db
Class E4DBApplObjectTemporary

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

public class E4DBApplObjectTemporary
extends E4ApplObjBasic
implements E4ApplObj_Intf

This temporary application object is used, when access to data from another client is required. In this case, there will be a current application object where all data will be overtaken except the client itself. Usage of this class is not necessary in common project, usage only to advanced programmers because this "breaks" the client distinction mechanism. But there are cases (e.g. overtaking data from other clients) where this will be required.


Field Summary
 
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
E4DBApplObjectTemporary(E4ApplObj_Intf currentE4ApplObj, E4Client newClient)
           
E4DBApplObjectTemporary(E4Client newClient)
           
E4DBApplObjectTemporary(E4Client newClient, Language language)
           
 
Method Summary
static java.lang.String _getSVNVersionString()
           
 boolean canBeUsedForSystemLogin()
          This application object is not intended to be used as system login
 boolean canDo(E4Permission_Intf perm)
          No permissions provided for this class.
 java.lang.String getClient_Name()
          Get the name of 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.lang.String getUser_Name()
          Get the name of the user.
 E4User getUser()
           
 
Methods inherited from class e4s.application.E4ApplObjBasic
canDo_Reason, canDo_Reason, getClient_RootPath, getClient_URL, getDateFormat, getDecimalSign, getLanguage, getLoginTime, getPermissions, getScreenHeight, getScreenWidth, getSession, getTimeFormat, getTimeZone, 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, 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
 
Methods inherited from interface e4s.application.E4ApplObj_Intf
getClient_RootPath, getClient_URL, getDateFormat, getDecimalSign, getLanguage, getLoginTime, getPermissions, getScreenHeight, getScreenWidth, getSession, getTimeFormat, getTimeZone, setLanguage
 

Constructor Detail

E4DBApplObjectTemporary

public E4DBApplObjectTemporary(E4ApplObj_Intf currentE4ApplObj,
                               E4Client newClient)
                        throws E4DBException
Throws:
E4DBException

E4DBApplObjectTemporary

public E4DBApplObjectTemporary(E4Client newClient,
                               Language language)
                        throws E4DBException
Throws:
E4DBException

E4DBApplObjectTemporary

public E4DBApplObjectTemporary(E4Client newClient)
                        throws E4DBException
Throws:
E4DBException
Method Detail

canBeUsedForSystemLogin

public boolean canBeUsedForSystemLogin()
This application object is not intended to be used as system login

Specified by:
canBeUsedForSystemLogin in interface E4ApplObj_Intf

getUser

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

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

getCountryCode

public CountryCode getCountryCode()
Description copied from interface: E4ApplObj_Intf
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:
"US"

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()

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()

getClient_Name

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

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

canDo

public boolean canDo(E4Permission_Intf perm)
No permissions provided for this class.

Specified by:
canDo in interface E4ApplObj_Intf
Overrides:
canDo in class E4ApplObjBasic
Parameters:
perm - the permission to be tested
Returns:
false
See Also:
E4ModuleEditPermissions, E4PermissionRegistry, E4ModuleImplementation.getApplication_Permissions(), E4ModuleImplementation.getE4S_Permissions(), #canDo_Reason(e4s.db.systabledef.E4Permission), E4ApplObjBasic.readPermissions()

_getSVNVersionString

public static java.lang.String _getSVNVersionString()

www.element4solution.com