org.openmdx.portal.servlet
Class ApplicationContext

java.lang.Object
  extended by 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, UiContext uiContext, String sessionId, String loginPrincipal, String userRole, 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 favoritesReference, Map mimeTypeImpls, String exceptionDomain, String filterCriteriaField, String[] filterValuePatterns, Dataprovider_1_0 connectionData, RoleMapper_1_0 roleMapper)
           
 
Method Summary
 void addErrorMessage(String message, String[] parameters)
           
 String getApplicationName()
           
 AssertableInspector getAssertableInspector(String forClass)
           
 String getBackColor(String forClass)
           
 Codes getCodes()
           
 String getColor(String forClass)
           
 RefPackage_1_0 getControlPackage()
           
 String getCurrentGuiMode()
           
 Locale getCurrentLocale()
           
 short getCurrentLocaleAsIndex()
           
 String getCurrentLocaleAsString()
           
 String getCurrentTimeZone()
           
 String getCurrentUserRole()
           
 RefPackage_1_0 getDataPackage()
           
 Date getDataPackageReloadedAt()
           
 List getErrorMessages()
           
 String getExceptionDomain()
           
 Action[] getFavoriteActions()
           
 RefObject[] getFavorites()
           
 String getFilterCriteriaField()
           
 Filters getFilters(String forReference)
           
 String[] getFilterValuePattern()
          The like condition patterns define prefix and suffix patterns which are added to filter values entered by the user.
 HtmlEncoder_1_0 getHtmlEncoder()
           
 String getIconKey(String forClass)
           
 Inspector getInspector(String forClass)
           
 String getLabel(String forClass)
           
 String getLayout(String forClass, boolean forEditing)
           
 String getLoginPrincipalId()
           
 Map getMimeTypeImpls()
           
 Model_1_0 getModel()
           
 String getObjectRetrievalXri(RefObject_1_0 object)
           
static String getOrderAsString(List order)
           
 int getPanelState(String panelName)
           
 PortalExtension_1_0 getPortalExtension()
           
 RoleMapper_1_0 getRoleMapper()
           
 RefObject[] getRootObject()
           
 Action[] getRootObjectActions()
           
 Properties getSettings()
           
 File getTempDirectory()
           
 String getTempFileName(String name, String extension)
           
 Texts_1_0 getTexts()
           
 TextsFactory getTextsFactory()
           
 UiContext getUiContext()
           
 List getUserRoles()
           
 BigDecimal parseNumber(String numberAsString)
          Locale-specific parsing of specified number.
 RefPackage_1_0 refreshControlPkg()
          Refresh the control package.
 RefPackage_1_0 refreshDataPkg()
          Refresh the data package.
 void saveSettings(boolean logoff)
           
 void setCurrentGuiMode(String newValue)
           
 void setCurrentLocale(String locale)
           
 void setDataRequestedAt(Date requestedAt)
           
 void setDataRequestedFor(Date requestedFor)
           
 void setPanelState(String panelName, int panelState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationContext

public ApplicationContext(String applicationName,
                          String locale,
                          UiContext uiContext,
                          String sessionId,
                          String loginPrincipal,
                          String userRole,
                          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 favoritesReference,
                          Map mimeTypeImpls,
                          String exceptionDomain,
                          String filterCriteriaField,
                          String[] filterValuePatterns,
                          Dataprovider_1_0 connectionData,
                          RoleMapper_1_0 roleMapper)
                   throws ServiceException
Throws:
ServiceException
Method Detail

getOrderAsString

public static String getOrderAsString(List order)

getFavorites

public RefObject[] getFavorites()

saveSettings

public void saveSettings(boolean logoff)

getApplicationName

public String getApplicationName()

getRootObject

public RefObject[] getRootObject()

getFavoriteActions

public Action[] getFavoriteActions()

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 ServiceException
Throws:
ServiceException

getAssertableInspector

public AssertableInspector getAssertableInspector(String forClass)
                                           throws ServiceException
Throws:
ServiceException

getLabel

public String getLabel(String forClass)

getIconKey

public String getIconKey(String forClass)
                  throws ServiceException
Throws:
ServiceException

getBackColor

public String getBackColor(String forClass)
                    throws ServiceException
Throws:
ServiceException

getColor

public String getColor(String forClass)
                throws ServiceException
Throws:
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()

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 RefPackage_1_0 refreshDataPkg()
                              throws 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:
ServiceException

refreshControlPkg

public RefPackage_1_0 refreshControlPkg()
                                 throws ServiceException
Refresh the control package. This package is used to retrieve control objects, i.e. favorites, user settings, root objects. This refresh is typically initiated explicitely by the user.

Throws:
ServiceException

getDataPackage

public RefPackage_1_0 getDataPackage()

getDataPackageReloadedAt

public Date getDataPackageReloadedAt()

getControlPackage

public RefPackage_1_0 getControlPackage()

getMimeTypeImpls

public Map getMimeTypeImpls()

getSettings

public Properties getSettings()

getObjectRetrievalXri

public String getObjectRetrievalXri(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 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.



This software is published under the BSD license. Copyright © 2006-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.