|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.doc.LoadDoc
public class LoadDoc
Creates and persists documents objects based on input from a comma seperated value (csv) file. Method names and parameters are defined in csvmapfile.txt.
The load methods use a wt.load.StandardLoadService cache to cache
document masters and document version objects to improve performance of creating
structures and updating attrbiutes.
Supported API: true
Extendable: false
StandardLoadService,
wt.part.loadPart| Method Summary | |
|---|---|
static boolean |
addDocumentDependency(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Add documents to a dependency link. |
static boolean |
addToDocumentStructure(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Add document to a structured document. |
static boolean |
createDocumentRetainContent(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
WARNING DO NOT USE THIS OPTION UNLESS YOU ARE HANDLING THE ISSUE OF MULTIPLE SECONDARY CONTENT ITEMS ON NEW ITERATIONS/VERSIONS. |
static boolean |
createGeneral(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Processes the "General" or "Document" directive in the csv load file. |
static boolean |
createReq(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Processes the "Requirements" directive in the csv load file. |
static boolean |
createSpec(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Processes the "Specification" directive in the csv load file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean createGeneral(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Subsequent IBAValue load file lines may be used to associate
soft attribute values with the document. These values will not
be persisted until a "EndWTDocument" load file line is processed.
Establishes the document as the CURRENT_CONTENT_HOLDER for use by "ContentFile" lines.
Supports versioning which allows a document to be created at a specified version and iteration. Multiple document versions imply an "order". I.E. subsequent bulk load runs can "fill in the gaps", but it does so by attaching to the latest iteration of the previous version. If a newer iteration is added to the previous version, the new version will attached to the new latest iteration. For example: Load set 1 (E.1, A.1, C.2) will result in (A.1, C.2, E.1). The predecssors of: C.2 is A.1, E.1 is C.2. Load set 2 (B.1, A.2., C.1, C.3) will result in (A.1, A.2, B.1, C.1, C.2, C.3, E.1). The predecessors of: B.1 is A.2, C.1 is B.1, E.1 is C.3. Any new version/iterations added will continue to change the predessor links to the new latest iteration of the previous version.
Versioning does support gaps in the ordering.
Examples of valid versioning are: (A.1,A.3,B.2,B.5,E.4,E.5)
NOTE TO USERS OF THE SOURCE CODE: The ability to load document versions out of order is implemented by using the VersionControlHelper.service.insertNode() method. Calls to this method must not be removed from the code. To turn off this behavior, you should instead set the insert_on_latest_iteration flag to false in the constructDocument() method.
WARNING: By default on loading iterations/versions of a document all of the content is removed from the document on the new iteration/version creation. This is to stop excess content from accumulating on the document from iteration to iteration. So any new content both primary or secondary will be the only content. The previous iteratin/version is not touched, only the content on the new document that is created. If you want to load documents that retain their secondary content from the previous iteration/version and then replace any of the old files with the new files of the same name use either DocumentRetainContent or BeginWTDocumentRetainContent/EndWTDocumentRetainContent with ReplaceContentFile.
nv - Name/value pairs of meta data to set on the general document.
The attributes are as follows: (arguments in <> are optional)
cmd_line - command line argument that can be substituted into the load data.return_objects - Object(s) created by this method used by
wt.load.StandardLoadService for user feedback messages.
public static boolean createDocumentRetainContent(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Creates a document object, persists it in the database, checks it out, applies the default attribute values associated with the specified type definition, persists the document, checks it back in, and caches it in the loader's memory.
Subsequent IBAValue load file lines may be used to associate
soft attribute values with the document. These values will not
be persisted until a "EndWTDocument" load file line is processed.
Establishes the document as the CURRENT_CONTENT_HOLDER for use by "ContentFile" lines.
Supports versioning which allows a document to be created at a specified version and iteration. Multiple document versions imply an "order". I.E. subsequent bulk load runs can "fill in the gaps", but it does so by attaching to the latest iteration of the previous version. If a newer iteration is added to the previous version, the new version will attached to the new latest iteration. For example: Load set 1 (E.1, A.1, C.2) will result in (A.1, C.2, E.1). The predecssors of: C.2 is A.1, E.1 is C.2. Load set 2 (B.1, A.2., C.1, C.3) will result in (A.1, A.2, B.1, C.1, C.2, C.3, E.1). The predecessors of: B.1 is A.2, C.1 is B.1, E.1 is C.3. Any new version/iterations added will continue to change the predessor links to the new latest iteration of the previous version.
Versioning does support gaps in the ordering.
Examples of valid versioning are: (A.1,A.3,B.2,B.5,E.4,E.5)
NOTE TO USERS OF THE SOURCE CODE: The ability to load document versions out of order is implemented by using the VersionControlHelper.service.insertNode() method. Calls to this method must not be removed from the code. To turn off this behavior, you should instead set the insert_on_latest_iteration flag to false in the constructDocument() method.
nv - Name/value pairs of meta data to set on the general document.
The attributes are as follows: (arguments in <> are optional)
cmd_line - command line argument that can be substituted into the load data.return_objects - Object(s) created by this method used by
wt.load.StandardLoadService for user feedback messages.
public static boolean createReq(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Subsequent IBAValue load file lines may be used to associate
soft attribute values with the document. These values will not
be persisted until a "EndWTDocument" load file line is processed.
Establishes the document as the CURRENT_CONTENT_HOLDER for use by "ContentFile" lines.
Supports versioning which allows a document to be created at a specified version and iteration. Multiple document versions imply an "order". I.E. subsequent bulk load runs can "fill in the gaps", but it does so by attaching to the latest iteration of the previous version. If a newer iteration is added to the previous version, the new version will attached to the new latest iteration. For example: Load set 1 (E.1, A.1, C.2) will result in (A.1, C.2, E.1). The predecssors of: C.2 is A.1, E.1 is C.2. Load set 2 (B.1, A.2., C.1, C.3) will result in (A.1, A.2, B.1, C.1, C.2, C.3, E.1). The predecessors of: B.1 is A.2, C.1 is B.1, E.1 is C.3. Any new version/iterations added will continue to change the predessor links to the new latest iteration of the previous version.
Versioning does support gaps in the ordering.
Examples of valid versioning are: (A.1,A.3,B.2,B.5,E.4,E.5)
NOTE TO USERS OF THE SOURCE CODE: The ability to load document versions out of order is implemented by using the VersionControlHelper.service.insertNode() method. Calls to this method must not be removed from the code. To turn off this behavior, you should instead set the insert_on_latest_iteration flag to false in the constructDocument() method.
WARNING: By default on loading iterations/versions of a document all of the content is removed from the document on the new iteration/version creation. This is to stop excess content from accumulating on the document from iteration to iteration. So any new content both primary or secondary will be the only content. The previous iteratin/version is not touched, only the content on the new document that is created. If you want to load documents that retain their secondary content from the previous iteration/version and then replace any of the old files with the new files of the same name use either DocumentRetainContent or BeginWTDocumentRetainContent/EndWTDocumentRetainContent with ReplaceContentFile.
nv - Name/value pairs of meta data to set on the general document.
The attributes are as follows: (arguments in <> are optional)
cmd_line - command line argument that can be substituted into the load data.return_objects - Object(s) created by this method used by
wt.load.StandardLoadService for user feedback messages.
public static boolean createSpec(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Subsequent IBAValue load file lines may be used to associate
soft attribute values with the document. These values will not
be persisted until a "EndWTDocument" load file line is processed.
Establishes the document as the CURRENT_CONTENT_HOLDER for use by "ContentFile" lines.
Supports versioning which allows a document to be created at a specified version and iteration. Multiple document versions imply an "order". I.E. subsequent bulk load runs can "fill in the gaps", but it does so by attaching to the latest iteration of the previous version. If a newer iteration is added to the previous version, the new version will attached to the new latest iteration. For example: Load set 1 (E.1, A.1, C.2) will result in (A.1, C.2, E.1). The predecssors of: C.2 is A.1, E.1 is C.2. Load set 2 (B.1, A.2., C.1, C.3) will result in (A.1, A.2, B.1, C.1, C.2, C.3, E.1). The predecessors of: B.1 is A.2, C.1 is B.1, E.1 is C.3. Any new version/iterations added will continue to change the predessor links to the new latest iteration of the previous version.
Versioning does support gaps in the ordering.
Examples of valid versioning are: (A.1,A.3,B.2,B.5,E.4,E.5)
NOTE TO USERS OF THE SOURCE CODE: The ability to load document versions out of order is implemented by using the VersionControlHelper.service.insertNode() method. Calls to this method must not be removed from the code. To turn off this behavior, you should instead set the insert_on_latest_iteration flag to false in the constructDocument() method.
WARNING: By default on loading iterations/versions of a document all of the content is removed from the document on the new iteration/version creation. This is to stop excess content from accumulating on the document from iteration to iteration. So any new content both primary or secondary will be the only content. The previous iteratin/version is not touched, only the content on the new document that is created. If you want to load documents that retain their secondary content from the previous iteration/version and then replace any of the old files with the new files of the same name use either DocumentRetainContent or BeginWTDocumentRetainContent/EndWTDocumentRetainContent with ReplaceContentFile.
nv - Name/value pairs of meta data to set on the general document.
The attributes are as follows: (arguments in <> are optional)
cmd_line - command line argument that can be substituted into the load data.return_objects - Object(s) created by this method used by
wt.load.StandardLoadService for user feedback messages.
public static boolean addToDocumentStructure(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
nv - Name/value pairs to identify documents for the relationship.cmd_line - command line argument that can be substituted into the load data.return_objects - Object(s) created by this method used by
wt.load.StandardLoadService for user feedback messages.
public static boolean addDocumentDependency(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
nv - Name/value pairs to identify documents for the relationship.cmd_line - command line argument that can be substituted into the load data.return_objects - Object(s) created by this method used by
wt.load.StandardLoadService for user feedback messages.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||