|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.doc.WTDocumentDelegate
Delegate for the UI to process specifically WTDocuments. Allows customers
to substitute site specific processing.
Supported API: true
Extendable: true
Field Summary | |
private static String |
BOUNDARY_DELIM
|
private static String |
CLASSNAME
|
private static String |
DELIM
|
static String |
DEPENDENCYCOMMENT
|
static String |
DEPENDSON
|
private static String |
DOCRB_RESOURCE
|
static String |
DOCUMENTOID
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static ResourceBundle |
messagesResource
|
protected static long |
OLD_FORMAT_VERSION_UID
|
static String |
PER_DEPENDENCYCOMMENT
|
static String |
PER_DEPENDSON
|
static String |
PER_REMOVECOMMENT
|
static String |
PER_REMOVEDEPENDENCY
|
static String |
REMOVECOMMENT
|
static String |
REMOVEDEPENDENCY
|
static String |
REMOVESTRUCTURE
|
private static String |
RESOURCE
|
private static ReferenceFactory |
RF
|
(package private) static long |
serialVersionUID
|
static String |
STRUCTURE
|
private static boolean |
VERBOSE
|
Constructor Summary | |
WTDocumentDelegate()
|
Method Summary | |
FormatContentHolder |
checkinDocument(FormatContentHolder document,
DocumentFormData form_data)
Does the checkin of the document and allows for any post checkin processing. |
FormatContentHolder |
checkOutDocument(FormatContentHolder document,
DocumentFormData form_data)
Does the checkout of the document and allows for any post checkout processing. |
protected WTDocument |
createDependencyLinks(WTDocument document,
DocumentFormData form_data)
|
FormatContentHolder |
createDocument(DocumentFormData form_data)
Create a document object and persist it. |
protected WTDocument |
createStructureLinks(WTDocument document,
DocumentFormData form_data)
|
protected void |
persistURLAttachment(FormatContentHolder document,
String urlAttachment)
|
FormatContentHolder |
postCreateDocument(FormatContentHolder document,
DocumentFormData form_data)
Allow for extra post processing of the document after it has been persisted. |
FormatContentHolder |
postUpdateDocument(FormatContentHolder document,
DocumentFormData form_data)
Allow for extra post processing of the document after it has been persisted. |
protected DocumentFormData |
processURLAttachments(FormatContentHolder document,
DocumentFormData form_data)
|
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(WTDocumentDelegate thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
protected void |
removeDependencyLinks(DocumentFormData form_data)
|
protected void |
removeStructureLinks(WTDocument document,
DocumentFormData form_data)
|
protected Vector |
stringToVector(String s,
Vector v,
String delimiter)
|
protected Vector |
stringToVector(String s,
Vector v,
String delimiter,
String default_string)
|
String |
stripBoundaryDelim(String s,
String delim)
|
protected void |
updateDependencyLinks(WTDocument document,
DocumentFormData form_data)
|
FormatContentHolder |
updateDocument(FormatContentHolder document,
DocumentFormData form_data)
Update a document object and persist it. |
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 |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static ResourceBundle messagesResource
private static final String DOCRB_RESOURCE
public static final String DEPENDSON
public static final String DEPENDENCYCOMMENT
public static final String REMOVEDEPENDENCY
public static final String REMOVECOMMENT
public static final String PER_DEPENDSON
public static final String PER_DEPENDENCYCOMMENT
public static final String PER_REMOVEDEPENDENCY
public static final String PER_REMOVECOMMENT
public static final String STRUCTURE
public static final String REMOVESTRUCTURE
public static final String DOCUMENTOID
private static boolean VERBOSE
private static String DELIM
private static String BOUNDARY_DELIM
private static final ReferenceFactory RF
Constructor Detail |
public WTDocumentDelegate()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(WTDocumentDelegate thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public FormatContentHolder createDocument(DocumentFormData form_data) throws WTException
createDocument
in interface DocumentDelegate
form_data
- Name value pairs from the UI.
WTException
public FormatContentHolder postCreateDocument(FormatContentHolder document, DocumentFormData form_data) throws WTException
postCreateDocument
in interface DocumentDelegate
document
- The document that will be processed.form_data
- Name value pairs from the UI.
WTException
public FormatContentHolder updateDocument(FormatContentHolder document, DocumentFormData form_data) throws WTException
updateDocument
in interface DocumentDelegate
document
- The document that will be processed.form_data
- Name value pairs from the UI.
WTException
public FormatContentHolder postUpdateDocument(FormatContentHolder document, DocumentFormData form_data) throws WTException
postUpdateDocument
in interface DocumentDelegate
document
- The document that will be processed.form_data
- Name value pairs from the UI.
WTException
public FormatContentHolder checkinDocument(FormatContentHolder document, DocumentFormData form_data) throws WTException
checkinDocument
in interface DocumentDelegate
document
- The document that will be processed.form_data
- Name value pairs from the UI.
WTException
public FormatContentHolder checkOutDocument(FormatContentHolder document, DocumentFormData form_data) throws WTException
checkOutDocument
in interface DocumentDelegate
document
- The document that will be processed.form_data
- Name value pairs from the UI.
WTException
protected WTDocument createDependencyLinks(WTDocument document, DocumentFormData form_data) throws WTException
WTException
protected void updateDependencyLinks(WTDocument document, DocumentFormData form_data) throws WTException
WTException
protected void removeDependencyLinks(DocumentFormData form_data) throws WTException
WTException
public String stripBoundaryDelim(String s, String delim)
protected WTDocument createStructureLinks(WTDocument document, DocumentFormData form_data) throws WTException
WTException
protected void removeStructureLinks(WTDocument document, DocumentFormData form_data) throws WTException
WTException
protected Vector stringToVector(String s, Vector v, String delimiter)
protected Vector stringToVector(String s, Vector v, String delimiter, String default_string)
protected DocumentFormData processURLAttachments(FormatContentHolder document, DocumentFormData form_data)
protected void persistURLAttachment(FormatContentHolder document, String urlAttachment) throws WTException, WTPropertyVetoException, PropertyVetoException
WTException
WTPropertyVetoException
PropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |