www.element4solution.com

e4s.application.appmodule
Class E4ModuleImplementationApplication

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.html.E4HtmlObject
          extended by e4s.servlet.E4ModuleImplementation
              extended by e4s.application.appmodule.E4ModuleImplementationApplication
Direct Known Subclasses:
E4ModuleEditClient, E4ModuleEditCompany, E4ModuleEditPermissions, E4ModuleEditVarious, E4ModuleFreefieldDefinition, E4ModuleLogin, E4ModuleMainMenu, E4ModuleOverview, E4ModuleQuery

public class E4ModuleImplementationApplication
extends E4ModuleImplementation

Base module for the application modules in this package. Extension for application relevant data (such as T_E4S_COMPANY_Sel but also including some common functionality, inheritaed by the other modules in this package from this module.

Since:
JDK 1.4

Field Summary
static java.lang.String RESTRICTED_COMPANY_DOOR2SOLUTION_LOGIN
          Restricted name for company-Login
static java.lang.String RESTRICTED_COMPANY_DOOR2SOLUTION_NAME
          Restricted name for company-Name
static java.lang.String RESTRICTED_USER_DOOR2SOLUTION_LOGIN
          Restricted name for user-Login
 
Fields inherited from class e4s.html.E4HtmlObject
m_parent_e4sID
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Constructor Summary
E4ModuleImplementationApplication()
           
E4ModuleImplementationApplication(boolean persistant)
           
 
Method Summary
static java.lang.String _getSVNVersionString()
           
protected  T_E4S_COMPANY_GROUP_Obj find_T_E4S_COMPANY_GROUP(E4CompanyGroup group_id)
          Find a company-group.
protected  T_E4S_COMPANY_Obj find_T_E4S_COMPANY(E4CompanyId company_id)
          Find a company.
protected  T_E4S_PERMISSION_COMPANY_Obj find_T_E4S_PERMISSION_COMPANY(E4CompanyId company_id, E4Permission permission)
          Find a permission object (database record) regarding the specified company.
protected  T_E4S_PERMISSION_GROUP_Obj find_T_E4S_PERMISSION_GROUP(E4CompanyGroup group_id, E4Permission permission)
          Find a permission object (database record) regarding the specified group.
protected  T_E4S_PERMISSION_USER_Obj find_T_E4S_PERMISSION_USER(E4CompanyId company_id, E4CompanyUserId user_login, E4Permission permission)
          Find a permission object (database record) regarding the specified company/user.
static java.lang.String Format(E4CompanyId company_id)
           
protected static java.lang.String Format(long val, int len)
           
protected  java.lang.String getName(T_E4S_COMPANY_USER_Sel T_E4S_COMPANY_USER)
          Concatenate fields from user record to build name (Gender, Saturation, Firstname, Lastname)
protected  void subE4MenuItem(BODY body, E4Method mref, java.lang.String header, java.lang.String rem)
           
 
Methods inherited from class e4s.servlet.E4ModuleImplementation
canDo, canDo, canRun, closeHtmlOutput, empty2nbsp, empty2nbsp, getApplication_Permissions, getApplication, getApplObj, getClient, getClientImage, getClientObject, getClientObject, getClientObject, getClientValue, getClientValueBool, getClientValueDate, getClientValueFloat, getClientValueInt, getClientValueLong, getCookie, getCookieArr, getCookieBool, getCookieDate, getCookieLong, getCountryCode, getCSS, getDateFormat, getDbConnection, getDecimalSign, getE4ClientLogo, getE4S_Permissions, getLanguage_App, getLanguage_Sys, getLanguage, getParameters, getPersistantParameter, getPersistantParameterBoolean, getPersistantParameterDate, getPersistantParameterInt, getPersistantParameterIntArr, getPersistantParameterLong, getPickParams, getRemoteAddr, getRequiredModulePermission, getServlet, getSession, getSessionId, getSessionObject_Boolean, getSessionObject_Long, getSessionObject_String, getSessionObject, getSessionObject, getSessionObjects, getTimeFormat, getTimeZone, getUrl, getUserEmail, getUserValue, getUserValue, getUserValueArr, getUserValueBool, getUserValueBool, getUserValueDate, getUserValueDate, getUserValueInt, getUserValueInt, getUserValueLong, getUserValueLong, isok, isPersistant, isRunningWindow, isTimeout, ok, openHtmlOutput, removeApplicationObject, removeClientObject, removeClientObject, removeClientObject, removeClientValue, removeSessionObject, removeSessionObject, removeUserValue, removeUserValue, resetClientLogo, setAjaxTrace, setApplication, setApplicationObject, setClientObject, setClientObject, setClientObject, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setCookie, setCookie, setCookie, setCookie, setCookie, setCookie, setCookie, setCookie, setPersistantParameter, setPersistantParameter, setPersistantParameter, setPersistantParameter, setPersistantParameter, setPersistantParameter, setServlet, setSessionObject, setSessionObject, setSessionObject, setSessionObject, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, SystemError, write, write, write, write, write, writeln, writeln, writeln, writeln
 
Methods inherited from class e4s.html.E4HtmlObject
E4ID, E4ID, set_e4sID
 
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, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, 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

RESTRICTED_COMPANY_DOOR2SOLUTION_LOGIN

public static final java.lang.String RESTRICTED_COMPANY_DOOR2SOLUTION_LOGIN
Restricted name for company-Login

See Also:
Constant Field Values

RESTRICTED_COMPANY_DOOR2SOLUTION_NAME

public static final java.lang.String RESTRICTED_COMPANY_DOOR2SOLUTION_NAME
Restricted name for company-Name

See Also:
Constant Field Values

RESTRICTED_USER_DOOR2SOLUTION_LOGIN

public static final java.lang.String RESTRICTED_USER_DOOR2SOLUTION_LOGIN
Restricted name for user-Login

See Also:
Constant Field Values
Constructor Detail

E4ModuleImplementationApplication

public E4ModuleImplementationApplication()

E4ModuleImplementationApplication

public E4ModuleImplementationApplication(boolean persistant)
Method Detail

find_T_E4S_COMPANY

protected T_E4S_COMPANY_Obj find_T_E4S_COMPANY(E4CompanyId company_id)
                                        throws E4DBException
Find a company.

Parameters:
company_id - the identification for the company.
Returns:
the company object if available, or null if not found.
Throws:
E4DBException

find_T_E4S_COMPANY_GROUP

protected T_E4S_COMPANY_GROUP_Obj find_T_E4S_COMPANY_GROUP(E4CompanyGroup group_id)
                                                    throws E4DBException
Find a company-group.

Parameters:
group_id - the identification for the group.
Returns:
the group object if available, or null if not found.
Throws:
E4DBException
See Also:
E4DefaultTables

find_T_E4S_PERMISSION_USER

protected T_E4S_PERMISSION_USER_Obj find_T_E4S_PERMISSION_USER(E4CompanyId company_id,
                                                               E4CompanyUserId user_login,
                                                               E4Permission permission)
                                                        throws E4DBException
Find a permission object (database record) regarding the specified company/user. The group permission stands above the company permission which stands above the user permission. A group permission can deny (-1), grant (+1) or delegate (0) a permission. If delegated, then the company permission becames relevant, which also can deny, grant or delegate. Again, if delegated on company level then the user permission becomes relevant.

Parameters:
company_id - the company ID where the user belongs to
login_name - the login name of the user (must belong to company)
permission - the requested permission
Returns:
null if not found or a valid user-permission record
Throws:
E4DBException
See Also:
find_T_E4S_PERMISSION_GROUP(e4s.db.systabledef.E4CompanyGroup, e4s.db.systabledef.E4Permission), find_T_E4S_PERMISSION_COMPANY(e4s.db.systabledef.E4CompanyId, e4s.db.systabledef.E4Permission), E4DefaultTables

find_T_E4S_PERMISSION_COMPANY

protected T_E4S_PERMISSION_COMPANY_Obj find_T_E4S_PERMISSION_COMPANY(E4CompanyId company_id,
                                                                     E4Permission permission)
                                                              throws E4DBException
Find a permission object (database record) regarding the specified company. The group permission stands above the company permission which stands above the user permission. A group permission can deny (-1), grant (+1) or delegate (0) a permission. If delegated, then the company permission becames relevant, which also can deny, grant or delegate. Again, if delegated on company level then the user permission becomes relevant.

Parameters:
company_id - the company ID
permission - the requested permission
Returns:
null if not found or a valid user-permission record
Throws:
E4DBException
See Also:
find_T_E4S_PERMISSION_GROUP(e4s.db.systabledef.E4CompanyGroup, e4s.db.systabledef.E4Permission), find_T_E4S_PERMISSION_USER(e4s.db.systabledef.E4CompanyId, e4s.db.systabledef.E4CompanyUserId, e4s.db.systabledef.E4Permission), E4DefaultTables

find_T_E4S_PERMISSION_GROUP

protected T_E4S_PERMISSION_GROUP_Obj find_T_E4S_PERMISSION_GROUP(E4CompanyGroup group_id,
                                                                 E4Permission permission)
                                                          throws E4DBException
Find a permission object (database record) regarding the specified group. The group permission stands above the company permission which stands above the user permission. A group permission can deny (-1), grant (+1) or delegate (0) a permission. If delegated, then the company permission becames relevant, which also can deny, grant or delegate. Again, if delegated on company level then the user permission becomes relevant.

Parameters:
group_id - the group ID (each company is assigned a group)
permission - the requested permission
Returns:
null if not found or a valid user-permission record
Throws:
E4DBException
See Also:
find_T_E4S_PERMISSION_COMPANY(e4s.db.systabledef.E4CompanyId, e4s.db.systabledef.E4Permission), find_T_E4S_PERMISSION_USER(e4s.db.systabledef.E4CompanyId, e4s.db.systabledef.E4CompanyUserId, e4s.db.systabledef.E4Permission), E4DefaultTables

subE4MenuItem

protected void subE4MenuItem(BODY body,
                             E4Method mref,
                             java.lang.String header,
                             java.lang.String rem)

Format

public static java.lang.String Format(E4CompanyId company_id)

Format

protected static java.lang.String Format(long val,
                                         int len)

getName

protected java.lang.String getName(T_E4S_COMPANY_USER_Sel T_E4S_COMPANY_USER)
                            throws E4DBException
Concatenate fields from user record to build name (Gender, Saturation, Firstname, Lastname)

Parameters:
T_E4S_COMPANY_USER - a valid user record
Returns:
the name, e.g. "Mr. Robert Siegel"
Throws:
E4DBException

_getSVNVersionString

public static java.lang.String _getSVNVersionString()

www.element4solution.com