lumis.doui
Class DouiContext

Package class diagram package DouiContext
java.lang.Object
  extended by lumis.doui.DouiContext

@StableMinor(version="4.1",
             sinceVersion="4.0")
public class DouiContext
extends Object

Provides general context information and constants for Doui services

Since:
4.0.0

Field Summary
static int DEFAULT_MAX_ROWS
           
static String DOUI_ORDER_BY_DIR
           
static String DOUI_ORDER_BY_FIELD
           
static String DOUI_PARAMETER_ERROR
           
static String DOUI_PARAMETER_FROM_FORM
           
static String DOUI_PARAMETER_MAX_ROWS
           
static String DOUI_PARAMETER_MESSAGE
           
static String DOUI_PARAMETER_START_AT
           
static String DOUI_PARAMETER_STORED_VALUES
           
 
Constructor Summary
DouiContext(IServiceInterfaceRequest request, IServiceInterfaceResponse response, ITransaction transaction)
           
 
Method Summary
protected  ControlContainer createControlContainer()
           
protected  DouiHyperlink createDouiHyperlink()
           
protected  ProcessActionContainer createProcessActionContainer()
           
protected  SourceContainer createSourceContainer()
           
 IServiceInterfaceActionRequest getActionRequest()
           
 IServiceInterfaceActionResponse getActionResponse()
           
 ControlContainer getControlContainer()
           
 IDouiDefinitionProcessor getDouiDefinitionProcessor()
          Returns a doui definition processor that evaluates the ELs present, according to this doui context.
 DouiHyperlink getDouiHyperlink()
           
 DouiServiceInterfaceInstanceDefinition getDouiServiceInterfaceDefinition()
           
 String getPreviousStoredValue(String key)
          Returns a previously stored value.
 ProcessActionContainer getProcessActionContainer()
           
 IServiceInterfaceRenderRequest getRenderRequest()
           
 IServiceInterfaceRenderResponse getRenderResponse()
           
 IServiceInterfaceRequest getRequest()
           
 IServiceInterfaceResponse getResponse()
           
 SourceContainer getSourceContainer()
           
 Map<String,String> getStoredValues()
          Returns a unmodifiable view of the stored values in this context.
 ITransaction getTransaction()
           
 boolean isPostback()
           
 boolean isProcessAction()
           
 void release()
           
 void storeValue(String key, String value)
          Stores a value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOUI_PARAMETER_STORED_VALUES

public static final String DOUI_PARAMETER_STORED_VALUES
See Also:
Constant Field Values

DOUI_PARAMETER_FROM_FORM

public static final String DOUI_PARAMETER_FROM_FORM
See Also:
Constant Field Values

DOUI_PARAMETER_ERROR

public static final String DOUI_PARAMETER_ERROR
See Also:
Constant Field Values

DOUI_PARAMETER_MESSAGE

public static final String DOUI_PARAMETER_MESSAGE
See Also:
Constant Field Values

DOUI_PARAMETER_START_AT

public static final String DOUI_PARAMETER_START_AT
See Also:
Constant Field Values

DOUI_PARAMETER_MAX_ROWS

public static final String DOUI_PARAMETER_MAX_ROWS
See Also:
Constant Field Values

DOUI_ORDER_BY_FIELD

public static final String DOUI_ORDER_BY_FIELD
See Also:
Constant Field Values

DOUI_ORDER_BY_DIR

public static final String DOUI_ORDER_BY_DIR
See Also:
Constant Field Values

DEFAULT_MAX_ROWS

public static final int DEFAULT_MAX_ROWS
See Also:
Constant Field Values
Constructor Detail

DouiContext

public DouiContext(IServiceInterfaceRequest request,
                   IServiceInterfaceResponse response,
                   ITransaction transaction)
            throws PortalException
Throws:
PortalException
Method Detail

getDouiDefinitionProcessor

public IDouiDefinitionProcessor getDouiDefinitionProcessor()
                                                    throws PortalException
Returns a doui definition processor that evaluates the ELs present, according to this doui context.

The ELs inside the controls are not evaluated. They must be evaluated by the controls themselves.

Throws:
PortalException
Since:
4.1.0

getDouiServiceInterfaceDefinition

public DouiServiceInterfaceInstanceDefinition getDouiServiceInterfaceDefinition()

isPostback

public boolean isPostback()

isProcessAction

public boolean isProcessAction()

storeValue

public void storeValue(String key,
                       String value)
Stores a value.

Parameters:
key - the value key.
value - the value to store.

getStoredValues

public Map<String,String> getStoredValues()
Returns a unmodifiable view of the stored values in this context.

Returns:
the stored values.

getPreviousStoredValue

public String getPreviousStoredValue(String key)
Returns a previously stored value.

Parameters:
key - the value key.
Returns:
the value or null if it was not found.

getRequest

public IServiceInterfaceRequest getRequest()
Returns:
Returns the request.

getResponse

public IServiceInterfaceResponse getResponse()
Returns:
Returns the response.

getRenderRequest

public IServiceInterfaceRenderRequest getRenderRequest()
Returns:
Returns the request.

getRenderResponse

public IServiceInterfaceRenderResponse getRenderResponse()
Returns:
Returns the response.

getActionRequest

public IServiceInterfaceActionRequest getActionRequest()
Returns:
Returns the request.

getActionResponse

public IServiceInterfaceActionResponse getActionResponse()
Returns:
Returns the response.

getControlContainer

public ControlContainer getControlContainer()
Returns:
Returns the controlContainer.

createControlContainer

protected ControlContainer createControlContainer()

getSourceContainer

public SourceContainer getSourceContainer()
Returns:
Returns the sourceContainer.

createSourceContainer

protected SourceContainer createSourceContainer()

getProcessActionContainer

public ProcessActionContainer getProcessActionContainer()

createProcessActionContainer

protected ProcessActionContainer createProcessActionContainer()

getDouiHyperlink

public DouiHyperlink getDouiHyperlink()

createDouiHyperlink

protected DouiHyperlink createDouiHyperlink()

getTransaction

public ITransaction getTransaction()

release

public void release()


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.