com.ibm.workplace.wcm.api
Interface Document

All Known Subinterfaces:
AuthoringTemplate, Category, Content, ContentComponentContainer, Editable, EditableLibraryComponent, LibraryComponent, LibraryFileComponent, LibraryHTMLComponent, LibraryImageComponent, PresentationTemplate, Site, SiteArea, SiteFrameworkContainer, Taxonomy, Workflow, WorkflowStage

public interface Document

An interface defining an object that exists as an entity in the repository.


Field Summary
static java.lang.String COPYRIGHT
          Copyright statement
 
Method Summary
 java.lang.String[] getAuthors()
          Returns the names of authors of this Document object as a string array.
 java.lang.String[] getDeleteAccessMembers()
          Returns a string array of members who have Delete access to this Document object.
 java.lang.String getDescription()
          Returns the description of this Document object.
 java.lang.String[] getEditAccessMembers()
          Returns a string array of members who have Edit access to this Document object.
 DocumentId getId()
          Returns the DocumentId of this Document object.
 java.lang.String[] getLiveAccessMembers()
          Returns a string array of members who have Live access to this Document object.
 java.lang.String getName()
          Returns the name of this Document object.
 java.lang.String[] getOwners()
          Returns the names of owners of this Document object as a string array.
 java.lang.String[] getReadAccessMembers()
          Returns a string array of members who have Read access to this Document object.
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright statement

See Also:
Constant Field Values
Method Detail

getId

public DocumentId getId()
Returns the DocumentId of this Document object.

Note. Calling this method on a Document that does not have a name set will result in a NullPointerException.

Returns:
the DocumentId of this Document
Throws:
java.lang.NullPointerException - if the name of this Document has not been set

getName

public java.lang.String getName()
Returns the name of this Document object.

Returns null if this Document does not have a name.

Returns:
the name of this Document object.

getDescription

public java.lang.String getDescription()
Returns the description of this Document object.

Returns null if this Document object does not have a description.

Returns:
the description

getAuthors

public java.lang.String[] getAuthors()
Returns the names of authors of this Document object as a string array.

The resultant array may contain the names of users or groups.

Returns an empty array if this Document object has no authors.

Returns:
a string array of author names

getOwners

public java.lang.String[] getOwners()
Returns the names of owners of this Document object as a string array.

The resultant array may contain the names of users or groups.

Returns an empty array if this Document object has no owners.

Returns:
a string array of owner names

getLiveAccessMembers

public java.lang.String[] getLiveAccessMembers()
Returns a string array of members who have Live access to this Document object.

The resultant array may contain the names of users or groups.

Returns an empty array if this Document object does not have Live access specified.

Returns:
a string array of members that have Live access to this Document object.

getReadAccessMembers

public java.lang.String[] getReadAccessMembers()
Returns a string array of members who have Read access to this Document object.

The resultant array may contain the names of users and groups.

Returns an empty array if this Document object does not have Read access specified.

Returns:
a string array of members that have Read access to this Document object.

getEditAccessMembers

public java.lang.String[] getEditAccessMembers()
Returns a string array of members who have Edit access to this Document object.

The resultant array may contain the names of users and groups.

Returns an empty array if this Document object does not have Edit access specified.

Returns:
a string array of members that have Edit access to this Document object.

getDeleteAccessMembers

public java.lang.String[] getDeleteAccessMembers()
Returns a string array of members who have Delete access to this Document object.

The resultant array may contain the names of users and groups.

Returns an empty array if this Document object does not have Delete access specified.

Returns:
a string array of members that have Delete access to this Document object.