13.08.2012 Views

Groupwise Developer's Guide

Groupwise Developer's Guide

Groupwise Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The Document and DocumentVersions Objects<br />

The Document object is a collection of DocumentVersion objects, plus<br />

some additional information. Each version of each file in the GroupWise library<br />

has an associated DocumentVersion. You cannot access and file in the library<br />

unless you access that files DocumentVersion. The easiest way to access your<br />

DocumentVersion of choice is to access the<br />

DocumentReference.DocumentVersion property. This becomes<br />

problematic, however, when the DocumentReference.RefType is<br />

egwCurrent, yet you want a specific version, or vice versa. To access the<br />

current version of a document, you can access<br />

DocumentReference.Document.CurrentVersion property. If you<br />

need to access all document versions in order to select one, access the<br />

Document.DocumentVersions object.<br />

The Document Object<br />

The Document object encapsulates all versions of a given document. It has<br />

several important properties:<br />

Property Data Type Description<br />

Subject String This string holds the subject description of<br />

the document.<br />

AdditionalRights DocumentAccess Rights object This collection contains information about<br />

the sharing rights of the document for the<br />

particular account that is logged into the<br />

Object API.<br />

Author Address object This is an Address object containing the<br />

address information for the author of this<br />

document.<br />

AuthorCreateRights DocumentAccessRights object<br />

(R/O)<br />

Access rights granted to the document’s<br />

author. If running GroupWise Remote, this<br />

property is empty.<br />

CreationDate Date This is a date property containing the creation<br />

date of the document.<br />

Creator Address object (R/O) This is an Address object containing the<br />

address information for the creator of this<br />

document.<br />

CurrentVersion DocumentVersion object (R/O) This is the current version of the document<br />

in the form of a DocumentVersion<br />

object.<br />

DefaultRights DocumentAccess Rights object<br />

(R/O)<br />

This collection contains the sharing rights<br />

granted to everyone.<br />

DocumentLibrary DocumentLibrary object (R/O) The library that contains the document<br />

C h a p t e r 6<br />

109

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!