|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WTDocumentService
Service for WTDocumentMaster and WTDocument objects and their associations.
Supported API: true
Extendable: false
| Method Summary | |
|---|---|
FormatContentHolder |
checkinDocument(FormatContentHolder document,
wt.doc.DocumentFormData form_data)
Uses the DocumentFactory to get the delegate to do the checkin of the document and allows for any post checkin processing. |
FormatContentHolder |
checkOutDocument(FormatContentHolder document,
wt.doc.DocumentFormData form_data)
Uses the DocumentFactory to get the delegate to do the checkout of the document and allows for any post checkout processing. |
Vector |
createDependencyLink(WTDocument doc,
Vector referenced_docs,
Vector comment)
Convenience method for creating a dependency link between multiple documents. |
WTDocument |
createDependencyLink(WTDocument doc,
Vector referenced_docs,
Vector comment,
String checkOutNote,
String checkInNote)
Convenience method for creating a dependency link between multiple documents. |
WTDocumentDependencyLink |
createDependencyLink(WTDocument doc,
WTDocument referenced_doc,
String comment)
Convenience method for creating a dependency link between two documents. |
FormatContentHolder |
createDocument(String doc_type,
wt.doc.DocumentFormData form_data)
Uses the DocumentFactory to get the delegate to create a document object and persist it. |
WTDocument |
createOrderedUsageLinks(WTDocument parent,
Vector child,
String checkOutNote,
String checkInNote)
Convenience method for creating a usage link between multiple documents. |
Vector |
createUsageLink(WTDocument parent,
Vector child)
Convenience method for creating a usage link between multiple documents. |
WTDocument |
createUsageLink(WTDocument parent,
Vector child,
String checkOutNote,
String checkInNote)
Convenience method for creating a usage link between multiple documents. |
WTDocumentConfigSpec |
findWTDocumentConfigSpec()
Returns the WTDocumentConfigSpec for the current principal. |
QueryResult |
getDependsOnWTDocuments(WTDocument document)
Return a QueryResult of WTDocuments that the given WTDocument is dependent on. |
QueryResult |
getDependsOnWTDocuments(WTDocument document,
boolean onlyOtherSides)
Return a QueryResult of WTDocuments that the given WTDocument is dependent on. |
QueryResult |
getHasDependentWTDocuments(WTDocument document)
Return a QueryResult of WTDocuments that are dependent on the given WTDocument. |
QueryResult |
getHasDependentWTDocuments(WTDocument document,
boolean onlyOtherSides)
Return a QueryResult of WTDocuments that are dependent on the given WTDocument. |
Enumeration |
getOrderedUsesWTDocumentMasters(WTDocument document)
Navigates the WTDocumentUsageLink along the uses role, returning a Enumeration of WTDocumentMaster. |
Enumeration |
getOrderedUsesWTDocuments(WTDocument document,
ConfigSpec configSpec)
Applies the configSpec to the result of navigating the WTDocumentUsageLink along the uses role; returns a Enumeration of Persistable[], in which the WTDocumentUsageLinks are at the 0th position and the corresponding iterations (or master if there is no corresponding iteration) in the 1th position. |
QueryResult |
getUsedByWTDocuments(WTDocumentMaster documentMaster)
Navigates the WTDocumentUsageLink along the usedBy role, returning a QueryResult of WTDocuments. |
QueryResult |
getUsesWTDocumentMasters(WTDocument document)
Navigates the WTDocumentUsageLink along the uses role, returning a QueryResult of WTDocumentMaster. |
QueryResult |
getUsesWTDocuments(WTDocument document,
WTDocumentConfigSpec configSpec)
Applies the configSpec to the result of navigating the WTDocumentUsageLink along the uses role; returns a QueryResult of Persistable[], in which the WTDocumentUsageLinks are at the 0th position and the corresponding iterations (or master if there is no corresponding iteration) in the 1th position. |
QueryResult |
getUsesWTDocumentUsageLinks(WTDocument document)
Returns the WTDocumentUsageLinks resulting from navigating the WTDocumentUsageLink along the uses role. |
Vector |
getWTDocumentStructure(WTDocument document,
WTDocumentConfigSpec configSpec,
int traversal)
Recursively walk a document structure returning the documents down the structure. |
WTDocument |
orderUsageLinks(WTDocument parent,
Vector child,
String checkOutNote,
String checkInNote)
Order usage links between the parent document and it's children documents. |
FormatContentHolder |
postCreateDocument(FormatContentHolder document,
wt.doc.DocumentFormData form_data)
Uses the DocumentFactory to get the delegate to allow for extra post processing of the document after it has been persisted. |
FormatContentHolder |
postUpdateDocument(FormatContentHolder document,
wt.doc.DocumentFormData form_data)
Uses the DocumentFactory to get the delegate to allow for extra post processing of the document after it has been persisted. |
void |
removeDependencyLink(Vector links)
Convenience method for removing multiple dependency links. |
void |
removeDependencyLink(WTDocumentDependencyLink link)
Convenience method for removing a dependency link between two documents. |
WTDocument |
removeDependencyLink(WTDocument document,
Vector links,
String checkOutNote,
String checkInNote)
Convenience method for removing multiple dependency links. |
WTDocument |
removeOrderedUsageLinks(WTDocument parent,
Vector child,
String checkOutNote,
String checkInNote)
Remove usage links from a parent document. |
void |
removeUsageLink(WTDocument parent,
Vector child)
Convenience method for removing a usage link between multiple documents. |
void |
removeUsageLink(WTDocument parent,
WTDocumentMaster child)
Convenience method for removing a usage link between two documents. |
WTDocumentConfigSpec |
saveWTDocumentConfigSpec(WTDocumentConfigSpec a_WTDocumentConfigSpec)
Saves the WTDocumentConfigSpec for the current principal. |
Vector |
updateDependencyLink(Vector links,
Vector comments)
Convenience method for updating a multiple dependency links. |
WTDocument |
updateDependencyLink(WTDocument document,
Vector links,
Vector comments,
String checkOutNote,
String checkInNote)
Convenience method for updating multiple dependency links. |
FormatContentHolder |
updateDocument(FormatContentHolder document,
wt.doc.DocumentFormData form_data)
Uses the DocumentFactory to get the delegate to update a document object and persist it. |
| Method Detail |
|---|
QueryResult getUsesWTDocuments(WTDocument document,
WTDocumentConfigSpec configSpec)
throws WTException
document - The WTDocument to navigate.configSpec - The ConfigSpec to use to filter the iterations for the masters used.
WTExceptionWTDocumentUsageLink,
WTDocument,
WTDocumentMaster,
Persistable
QueryResult getUsesWTDocumentUsageLinks(WTDocument document)
throws WTException
document - The WTDocument to navigate.
WTExceptionWTDocumentUsageLink,
WTDocument,
WTDocumentMaster
QueryResult getUsesWTDocumentMasters(WTDocument document)
throws WTException
document - The document to navigate.
WTExceptionWTDocumentUsageLink,
WTDocumentMaster
QueryResult getUsedByWTDocuments(WTDocumentMaster documentMaster)
throws WTException
documentMaster - The document master to navigate to find those documents that use it.
WTExceptionWTDocumentUsageLink,
WTDocument
WTDocument createOrderedUsageLinks(WTDocument parent,
Vector child,
String checkOutNote,
String checkInNote)
throws WTException
parent - WTDocument that uses the other side of the WTDocumentUsageLink.child - WTDocument that is usedBy the other side of the WTDocumentUsageLink.. Should not be the actual document but the reference string used in the client like VR:wt.doc.WTDocumet:oid.checkOutNote - Used if the parent document is checked out. If null is passed in the note is set to empty string.checkInNote - Used if the parent document is checked in. If null is passed in the note is set to empty string.
WTException
WTDocument orderUsageLinks(WTDocument parent,
Vector child,
String checkOutNote,
String checkInNote)
throws WTException
parent - WTDocument that uses the other side of the WTDocumentUsageLink.child - WTDocument that is usedBy the other side of the WTDocumentUsageLink.. Should not be the actual document but the reference string used in the client like VR:wt.doc.WTDocumet:oid.checkOutNote - Used if the parent document is checked out. If null is passed in the note is set to empty string.checkInNote - Used if the parent document is checked in. If null is passed in the note is set to empty string.
WTException
WTDocument removeOrderedUsageLinks(WTDocument parent,
Vector child,
String checkOutNote,
String checkInNote)
throws WTException
parent - WTDocument that uses the other side of the WTDocumentUsageLink.child - WTDocument that is usedBy the other side of the WTDocumentUsageLink.. Should not be the actual document but the reference string used in the client like VR:wt.doc.WTDocumet:oid.checkOutNote - Used if the parent document is checked out. If null is passed in the note is set to empty string.checkInNote - Used if the parent document is checked in. If null is passed in the note is set to empty string.
WTException
Enumeration getOrderedUsesWTDocuments(WTDocument document,
ConfigSpec configSpec)
throws WTException
document - The WTDocument to navigate.configSpec - The ConfigSpec to use to filter the iterations for the masters used.
WTExceptionWTDocumentUsageLink,
WTDocument,
WTDocumentMaster,
Persistable
Enumeration getOrderedUsesWTDocumentMasters(WTDocument document)
throws WTException
document - The document to navigate.
WTExceptionWTDocumentUsageLink,
WTDocumentMaster
QueryResult getDependsOnWTDocuments(WTDocument document)
throws WTException
document -
WTExceptionWTDocumentDependencyLink,
WTDocument
QueryResult getDependsOnWTDocuments(WTDocument document,
boolean onlyOtherSides)
throws WTException
document - onlyOtherSides -
WTExceptionWTDocumentDependencyLink,
WTDocument
QueryResult getHasDependentWTDocuments(WTDocument document)
throws WTException
document -
WTExceptionWTDocumentDependencyLink,
WTDocument
QueryResult getHasDependentWTDocuments(WTDocument document,
boolean onlyOtherSides)
throws WTException
document - onlyOtherSides -
WTExceptionWTDocumentDependencyLink,
WTDocument
WTDocumentDependencyLink createDependencyLink(WTDocument doc,
WTDocument referenced_doc,
String comment)
throws WTException
doc - The document that depends on the other document or the one that references other documents.referenced_doc - The document that is referenced by the other document.comment - Some explanation of why one document is dependent on the other document.
WTException
Vector createDependencyLink(WTDocument doc,
Vector referenced_docs,
Vector comment)
throws WTException
doc - The document that depends on the other document or the one that references other documents.referenced_docs - The documents that are referenced the other document. Should not be the actual document but the reference string used in the client like VR:wt.doc.WTDocumet:oid.comment - Some explanation of why one document is dependent on the other document. In the same order as the child vector.
WTException
WTDocument createDependencyLink(WTDocument doc,
Vector referenced_docs,
Vector comment,
String checkOutNote,
String checkInNote)
throws WTException
doc - The document that depends on the other document or the one that references other documents.referenced_docs - The documents that are referenced the other document. Should not be the actual document but the reference string used in the client like VR:wt.doc.WTDocumet:oid.comment - Some explanation of why one document is dependent on the other document. In the same order as the child vector.checkOutNote - Used if the parent document is checked out. If null is passed in the note is set to empty string.checkInNote - Used if the parent document is checked in. If null is passed in the note is set to empty string.
WTException
Vector updateDependencyLink(Vector links,
Vector comments)
throws WTException
links - The dependency links that are to be updated.comments - Some explanation of why one document is dependent on the other document. In the same order as the child vector.
WTException
WTDocument updateDependencyLink(WTDocument document,
Vector links,
Vector comments,
String checkOutNote,
String checkInNote)
throws WTException
document - The document that depends on the other document or the one that references other documents.links - The dependency links that are to be updated.comments - Some explanation of why one document is dependent on the other document. In the same order as the child vector.checkOutNote - Used if the parent document is checked out. If null is passed in the note is set to empty string.checkInNote - Used if the parent document is checked in. If null is passed in the note is set to empty string.
WTException
Vector createUsageLink(WTDocument parent,
Vector child)
throws WTException
parent - WTDocument that uses the other side of the WTDocumentUsageLink.child - WTDocument that is usedBy the other side of the WTDocumentUsageLink.. Should not be the actual document but the reference string used in the client like VR:wt.doc.WTDocumet:oid.
WTException
WTDocument createUsageLink(WTDocument parent,
Vector child,
String checkOutNote,
String checkInNote)
throws WTException
parent - WTDocument that uses the other side of the WTDocumentUsageLink.child - WTDocument that is usedBy the other side of the WTDocumentUsageLink.. Should not be the actual document but the reference string used in the client like VR:wt.doc.WTDocumet:oid.checkOutNote - Used if the parent document is checked out. If null is passed in the note is set to empty string.checkInNote - Used if the parent document is checked in. If null is passed in the note is set to empty string.
WTException
Vector getWTDocumentStructure(WTDocument document,
WTDocumentConfigSpec configSpec,
int traversal)
throws WTException
document - The WTDocument to navigate.configSpec - The ConfigSpec to use to filter the iterations for the masters used.traversal - DocumentStructureNavigatorFactory.DEPTH_FIRST_NAVIGATOR or DocumentStructureNavigatorFactory.BREADTH_FIRST_NAVIGATOR.
WTException
void removeDependencyLink(Vector links)
throws WTException
links - Remove all of the dependency links in the vector.
WTException
void removeDependencyLink(WTDocumentDependencyLink link)
throws WTException
link - The dependency link to be removed.
WTException
WTDocument removeDependencyLink(WTDocument document,
Vector links,
String checkOutNote,
String checkInNote)
throws WTException
document - The document that depends on the other document or the one that references other documents.links - The link oids for the dependency links.checkOutNote - Used if the parent document is checked out. If null is passed in the note is set to empty string.checkInNote - Used if the parent document is checked in. If null is passed in the note is set to empty string.
WTException
void removeUsageLink(WTDocument parent,
Vector child)
throws WTException
parent - WTDocument that uses the other side of the WTDocumentUsageLink.child - WTDocument or WTDocumentMaster that is usedBy the other side of the WTDocumentUsageLink. Should not be the actual document but the reference string used in the client like VR:wt.doc.WTDocumet:oid.
WTException
void removeUsageLink(WTDocument parent,
WTDocumentMaster child)
throws WTException
parent - WTDocument that uses the other side of the WTDocumentUsageLink.child - WTDocument that is usedBy the other side of the WTDocumentUsageLink..
WTException
FormatContentHolder createDocument(String doc_type,
wt.doc.DocumentFormData form_data)
throws WTException
doc_type - The class for the document to be created.form_data - Name value pairs from the UI.
WTException
FormatContentHolder postCreateDocument(FormatContentHolder document,
wt.doc.DocumentFormData form_data)
throws WTException
document - The document that will be processed.form_data - Name value pairs from the UI.
WTException
FormatContentHolder updateDocument(FormatContentHolder document,
wt.doc.DocumentFormData form_data)
throws WTException
document - The document that will be processed.form_data - Name value pairs from the UI.
WTException
FormatContentHolder postUpdateDocument(FormatContentHolder document,
wt.doc.DocumentFormData form_data)
throws WTException
document - The document that will be processed.form_data - Name value pairs from the UI.
WTException
FormatContentHolder checkinDocument(FormatContentHolder document,
wt.doc.DocumentFormData form_data)
throws WTException
document - The document that will be processed.form_data - Name value pairs from the UI.
WTException
FormatContentHolder checkOutDocument(FormatContentHolder document,
wt.doc.DocumentFormData form_data)
throws WTException
document - The document that will be processed.form_data - Name value pairs from the UI.
WTException
WTDocumentConfigSpec findWTDocumentConfigSpec()
throws WTException
WTException
WTDocumentConfigSpec saveWTDocumentConfigSpec(WTDocumentConfigSpec a_WTDocumentConfigSpec)
throws WTException
a_WTDocumentConfigSpec -
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||