org.openmdx.portal.servlet
Class ApplicationContext
java.lang.Object
org.openmdx.portal.servlet.ApplicationContext
- All Implemented Interfaces:
- Serializable
public final class ApplicationContext
- extends Object
- implements Serializable
- See Also:
- Serialized Form
|
Constructor Summary |
ApplicationContext(String applicationName,
String locale,
String timezone,
UiContext uiContext,
String sessionId,
String loginPrincipal,
String userRole,
org.openmdx.compatibility.base.naming.Path loginRealmIdentity,
List retrieveByPathPatterns,
String userHomeIdentity,
String[] rootObjectIdentities,
PortalExtension_1_0 portalExtension,
HtmlEncoder_1_0 httpEncoder,
Map filters,
Codes codes,
TextsFactory textsFactory,
LayoutFactory layoutFactory,
File tempDirectory,
String tempFilePrefix,
String quickAccessorsReference,
Map mimeTypeImpls,
String exceptionDomain,
String filterCriteriaField,
String[] filterValuePatterns,
org.openmdx.compatibility.base.dataprovider.cci.Dataprovider_1_0 connectionData,
RoleMapper_1_0 roleMapper)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationContext
public ApplicationContext(String applicationName,
String locale,
String timezone,
UiContext uiContext,
String sessionId,
String loginPrincipal,
String userRole,
org.openmdx.compatibility.base.naming.Path loginRealmIdentity,
List retrieveByPathPatterns,
String userHomeIdentity,
String[] rootObjectIdentities,
PortalExtension_1_0 portalExtension,
HtmlEncoder_1_0 httpEncoder,
Map filters,
Codes codes,
TextsFactory textsFactory,
LayoutFactory layoutFactory,
File tempDirectory,
String tempFilePrefix,
String quickAccessorsReference,
Map mimeTypeImpls,
String exceptionDomain,
String filterCriteriaField,
String[] filterValuePatterns,
org.openmdx.compatibility.base.dataprovider.cci.Dataprovider_1_0 connectionData,
RoleMapper_1_0 roleMapper)
throws org.openmdx.base.exception.ServiceException
- Throws:
org.openmdx.base.exception.ServiceException
getOrderAsString
public static String getOrderAsString(List order)
getQuickAccessors
public QuickAccessor[] getQuickAccessors()
saveSettings
public void saveSettings(boolean logoff)
getApplicationName
public String getApplicationName()
getRootObject
public javax.jmi.reflect.RefObject[] getRootObject()
getRootObjectActions
public Action[] getRootObjectActions()
getUiContext
public UiContext getUiContext()
getPortalExtension
public PortalExtension_1_0 getPortalExtension()
getHtmlEncoder
public HtmlEncoder_1_0 getHtmlEncoder()
getInspector
public Inspector getInspector(String forClass)
throws org.openmdx.base.exception.ServiceException
- Throws:
org.openmdx.base.exception.ServiceException
getAssertableInspector
public AssertableInspector getAssertableInspector(String forClass)
throws org.openmdx.base.exception.ServiceException
- Throws:
org.openmdx.base.exception.ServiceException
getLabel
public String getLabel(String forClass)
getIconKey
public String getIconKey(String forClass)
throws org.openmdx.base.exception.ServiceException
- Throws:
org.openmdx.base.exception.ServiceException
getBackColor
public String getBackColor(String forClass)
throws org.openmdx.base.exception.ServiceException
- Throws:
org.openmdx.base.exception.ServiceException
getColor
public String getColor(String forClass)
throws org.openmdx.base.exception.ServiceException
- Throws:
org.openmdx.base.exception.ServiceException
getFilters
public Filters getFilters(String forReference)
getCodes
public Codes getCodes()
getLayout
public String getLayout(String forClass,
boolean forEditing)
getTexts
public Texts_1_0 getTexts()
getTextsFactory
public TextsFactory getTextsFactory()
getCurrentTimeZone
public String getCurrentTimeZone()
setCurrentTimeZone
public void setCurrentTimeZone(String id)
setCurrentLocale
public void setCurrentLocale(String locale)
getCurrentLocaleAsIndex
public short getCurrentLocaleAsIndex()
getCurrentLocaleAsString
public String getCurrentLocaleAsString()
getCurrentLocale
public Locale getCurrentLocale()
getLoginPrincipalId
public String getLoginPrincipalId()
getCurrentUserRole
public String getCurrentUserRole()
getUserRoles
public List getUserRoles()
addErrorMessage
public void addErrorMessage(String message,
String[] parameters)
getErrorMessages
public List getErrorMessages()
getTempDirectory
public File getTempDirectory()
getTempFileName
public String getTempFileName(String name,
String extension)
getExceptionDomain
public String getExceptionDomain()
getFilterCriteriaField
public String getFilterCriteriaField()
refreshDataPkg
public org.openmdx.base.accessor.jmi.cci.RefPackage_1_1 refreshDataPkg()
throws org.openmdx.base.exception.ServiceException
- Refresh the data package. This package is used to retrieve data objects
for the attributes and grid panes. This refresh is typically invoked
after an operation invocation with isQuery=false.
- Throws:
org.openmdx.base.exception.ServiceException
refreshControlPkg
public org.openmdx.base.accessor.jmi.cci.RefPackage_1_1 refreshControlPkg()
throws org.openmdx.base.exception.ServiceException
- Throws:
org.openmdx.base.exception.ServiceException
getDataPackage
public org.openmdx.base.accessor.jmi.cci.RefPackage_1_1 getDataPackage()
getDataPackageReloadedAt
public Date getDataPackageReloadedAt()
getControlPackage
public org.openmdx.base.accessor.jmi.cci.RefPackage_1_0 getControlPackage()
getMimeTypeImpls
public Map getMimeTypeImpls()
getSettings
public Properties getSettings()
getObjectRetrievalXri
public String getObjectRetrievalXri(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 object)
setPanelState
public void setPanelState(String panelName,
int panelState)
getPanelState
public int getPanelState(String panelName)
setDataRequestedAt
public void setDataRequestedAt(Date requestedAt)
setDataRequestedFor
public void setDataRequestedFor(Date requestedFor)
getRoleMapper
public RoleMapper_1_0 getRoleMapper()
getModel
public org.openmdx.model1.accessor.basic.cci.Model_1_0 getModel()
getFilterValuePattern
public String[] getFilterValuePattern()
- The like condition patterns define prefix and suffix patterns which are
added to filter values entered by the user. E.g. used in grid for completing
search value.
- Returns:
- filter value patterns. 0: pattern prefix 1, 1: pattern prefix 2, 2: suffix
getCurrentGuiMode
public String getCurrentGuiMode()
setCurrentGuiMode
public void setCurrentGuiMode(String newValue)
parseNumber
public BigDecimal parseNumber(String numberAsString)
- Locale-specific parsing of specified number.
getUserHomeIdentity
public org.openmdx.compatibility.base.naming.Path getUserHomeIdentity()
getCurrentSegment
public String getCurrentSegment()
This software is published under the BSD license. Copyright © 2006-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.