wt.workflow.forum
Class DiscussionForumTemplateHandlerDelegate

java.lang.Object
  extended bywt.workflow.forum.DiscussionForumTemplateHandlerDelegate
All Implemented Interfaces:
CollabTemplateHandlerDelegate, Externalizable, Serializable

public class DiscussionForumTemplateHandlerDelegate
extends Object
implements CollabTemplateHandlerDelegate, Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String _rb
           
private static String CLASSNAME
           
static String DOC_TYPE
           
static String DTD_LOCATION
           
static long EXTERNALIZATION_VERSION_UID
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private static boolean VERBOSE
           
static String XML_VERSION
           
 
Constructor Summary
DiscussionForumTemplateHandlerDelegate()
           
 
Method Summary
private  void createSubstructure(NodeList list, Discussion parent, Document doc)
          method used to recursively instantiate topics or postings defined in a DOM tree of an XML structure
private  String decode(String encoded)
           
private  NodeList getChildNodes(Node node, short[] types)
          Return a NodeList that contains the children of the specified node that are of the specified types.
private  String getDefaultName()
           
private  String getTextNodeValue(Node node, short[] types)
          Returns value of the node.
private  boolean isOfType(Node node, short[] types)
          Return true if the type of the specified node is included in the specified list of node types.
 boolean isValidTemplate(CollaborationTemplate template)
          

Supported API: false
 CollaborationContainer populateContainer(CollaborationContainer container, CollaborationTemplate template)
          

Supported API: false
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(DiscussionForumTemplateHandlerDelegate thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
private  String substStr(String inStr, String key, String repl)
           
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

_rb

private static final String _rb
See Also:
Constant Field Values

XML_VERSION

public static final String XML_VERSION
See Also:
Constant Field Values

DTD_LOCATION

public static final String DTD_LOCATION
See Also:
Constant Field Values

DOC_TYPE

public static final String DOC_TYPE
See Also:
Constant Field Values

VERBOSE

private static boolean VERBOSE
Constructor Detail

DiscussionForumTemplateHandlerDelegate

public DiscussionForumTemplateHandlerDelegate()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(DiscussionForumTemplateHandlerDelegate thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

isValidTemplate

public boolean isValidTemplate(CollaborationTemplate template)
                        throws WTException


Supported API: false

Specified by:
isValidTemplate in interface CollabTemplateHandlerDelegate
Parameters:
template -
Returns:
boolean
Throws:
WTException

populateContainer

public CollaborationContainer populateContainer(CollaborationContainer container,
                                                CollaborationTemplate template)
                                         throws WTException


Supported API: false

Specified by:
populateContainer in interface CollabTemplateHandlerDelegate
Parameters:
container -
template -
Returns:
CollaborationContainer
Throws:
WTException

createSubstructure

private void createSubstructure(NodeList list,
                                Discussion parent,
                                Document doc)
                         throws WTException,
                                WTPropertyVetoException
method used to recursively instantiate topics or postings defined in a DOM tree of an XML structure

Throws:
WTException
WTPropertyVetoException

getDefaultName

private String getDefaultName()

getChildNodes

private NodeList getChildNodes(Node node,
                               short[] types)
Return a NodeList that contains the children of the specified node that are of the specified types.

Parameters:
node - the node whose children should be returned
types - a list of node type constants defined by the Node class

isOfType

private boolean isOfType(Node node,
                         short[] types)
Return true if the type of the specified node is included in the specified list of node types.

Parameters:
node - the node whose type should be compared against the specified list of types
types - a list of node type constants defined by the Node class

getTextNodeValue

private String getTextNodeValue(Node node,
                                short[] types)
Returns value of the node. Only value of types specified are returned.

Parameters:
node - the node whose value should be returned
types - a list of node type constants defined by the Node class

decode

private String decode(String encoded)

substStr

private String substStr(String inStr,
                        String key,
                        String repl)