com.ontimize.dms.client
Class ContextAdapter
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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