public class PreviewContextImpl extends AbstractContextImpl implements PreviewContext, PreviewConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
PreviewContextImpl()
Creates the preview context.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String | buildSerValue(java.lang.Object[] objs)
Builds the string serialization with the given array of object.
|
void | clearContext()
This method is called when the ContextSPI object is returned to their respective object pool.
|
void | copyContext(Context ctx)
Copy the content of the specified context to this context.
|
java.lang.Object[] | getContextAttributes()
Returns an array of context attributes to be serialized and persisted.
|
java.lang.String | getContextName()
Returns the name of the context which is the PreviewContext interface name.
|
java.util.Map<java.lang.String,java.lang.String> | getProperties()
Returns the preview properties.
|
java.lang.String | getProperty(java.lang.String key)
Returns the property value based on the specified property name.
|
java.util.Iterator | getPropertyNames()
Returns an iterator of property names (set using setProperty) currently contained in the preview context.
|
java.sql.Timestamp | getTimestamp()
Returns the appropriate timestamp to the caller to use when performing an operation.
|
void | initializeContext(ActivityData initData)
Initializes the context with the initialization data.
|
void | initializeContext(ActivityData initData, Context ctx)
Initializes the context based on the context passed in as the argument and updates it using the initData.
|
protected java.lang.String[] | parseSerValue(java.lang.String strSerValue)
Tokenizes a context string serialization into an array of string using the separator ":".
|
void | preInvokeContext(ActivityData sessionData)
Operation to perform at the beginning of each request.
|
void | setContextAttributes(java.lang.String[] ctxAttrs)
Initializes the context from the specified list of attributes.
|
void | setProperty(java.lang.String key, java.lang.String value)
Sets a property to associate with preview.
|
void | setTimestamp(java.sql.Timestamp timeStamp)
Sets the time to be used by the session.
|
void | setTimestamp(java.sql.Timestamp timeStamp, boolean isStat)
Sets the time to be used by the session.
|
java.lang.String | toString()
Returns the string representation of the object.
|
boolean | validate()
Validates the current context.
|
public static final java.lang.String COPYRIGHT
public java.lang.String getContextName()
public java.lang.String toString()
public boolean validate() throws BusinessContextException
public java.sql.Timestamp getTimestamp()
public void setTimestamp(java.sql.Timestamp timeStamp)
public void setTimestamp(java.sql.Timestamp timeStamp, boolean isStat)
public void setProperty(java.lang.String key, java.lang.String value)
public java.util.Map<java.lang.String,java.lang.String> getProperties()
public java.lang.String getProperty(java.lang.String key)
public java.util.Iterator getPropertyNames()
public void preInvokeContext(ActivityData sessionData) throws BusinessContextException
public void initializeContext(ActivityData initData) throws BusinessContextException
public java.lang.Object[] getContextAttributes() throws BusinessContextException
protected java.lang.String buildSerValue(java.lang.Object[] objs)
public void setContextAttributes(java.lang.String[] ctxAttrs) throws BusinessContextException
protected java.lang.String[] parseSerValue(java.lang.String strSerValue)
public void initializeContext(ActivityData initData, Context ctx) throws BusinessContextException
public void clearContext()
public void copyContext(Context ctx)