Ontimize Document Management 0.032EN

com.ontimize.dms.client
Class ContextAdapter

java.lang.Object
  extended by com.ontimize.dms.client.ContextAdapter
All Implemented Interfaces:
ContextValues, java.io.Serializable

public class ContextAdapter
extends java.lang.Object
implements ContextValues, java.io.Serializable

Adapter to save client context information.

Since:
17/02/2010
See Also:
Serialized Form

Constructor Summary
ContextAdapter(java.util.Map params)
          Creates the context from the given parameter.
 
Method Summary
 java.util.Map createContext()
           
 int getAction()
           
 java.lang.String getBase()
           
 java.util.Hashtable getCurrentExtraFields()
           
 java.util.Hashtable getCurrentFields()
           
 java.util.Hashtable getCurrentKeys()
           
 java.util.List getParentFields()
           
 Document getWorkingDirectory()
           
protected  void init(java.util.Map params)
           
 boolean isFileNameGenerationEnabled()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContextAdapter

public ContextAdapter(java.util.Map params)
               throws ContextException

Creates the context from the given parameter. Keys:

  • Codes.ACTION
  • Codes.FORM_WORKING
  • Codes.FORM_BASE
  • Codes.FORM_KEYS
  • Codes.FORM_FIELDS
  • Codes.FORM_EXTRA_FIELDS
  • Codes.FORM_PARENT_FIELDS
  • Codes.FILE_NAME_GENERATION

    Parameters:
    params - Map with the internal keys.
    Throws:
    java.lang.IllegalArgumentException
    ContextException
  • Method Detail

    init

    protected void init(java.util.Map params)
                 throws ContextException
    Throws:
    ContextException

    getAction

    public int getAction()
    Specified by:
    getAction in interface ContextValues

    getWorkingDirectory

    public Document getWorkingDirectory()
    Specified by:
    getWorkingDirectory in interface ContextValues

    getBase

    public java.lang.String getBase()
    Specified by:
    getBase in interface ContextValues

    getCurrentKeys

    public java.util.Hashtable getCurrentKeys()
    Specified by:
    getCurrentKeys in interface ContextValues

    getCurrentFields

    public java.util.Hashtable getCurrentFields()
    Specified by:
    getCurrentFields in interface ContextValues

    getCurrentExtraFields

    public java.util.Hashtable getCurrentExtraFields()
    Specified by:
    getCurrentExtraFields in interface ContextValues

    getParentFields

    public java.util.List getParentFields()
    Specified by:
    getParentFields in interface ContextValues

    isFileNameGenerationEnabled

    public boolean isFileNameGenerationEnabled()
    Specified by:
    isFileNameGenerationEnabled in interface ContextValues

    createContext

    public java.util.Map createContext()
    Specified by:
    createContext in interface ContextValues

    toString

    public java.lang.String toString()
    Overrides:
    toString in class java.lang.Object

    Ontimize Document Management