public class

RevisionEntry

extends BaseEntry<E extends BaseEntry>
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.BaseEntry<E extends com.google.gdata.data.BaseEntry>
         ↳ com.google.gdata.data.docs.RevisionEntry

Class Overview

Defines an entry in a feed of revisions of a document.

Summary

Constants
String KIND Kind category term used to label revision entries.
String LABEL Label for category.
String PUBLISH_NAMESPACE
Fields
public static final Category CATEGORY Category used to label revision entries.
[Expand]
Inherited Fields
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
RevisionEntry()
RevisionEntry(BaseEntry<?> sourceEntry)
Public Methods
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
String getMd5Checksum()
Returns the MD5 checksum calculated for the document.
Person getModifyingUser()
Link getPublishLink()
Returns the publically accessible link for the published revision.
Boolean isPublish()
Returns whether the revision is published.
Boolean isPublishAuto()
Returns whether changes to the document are automatically re-published.
Boolean isPublishOutsideDomain()
Sets whether the document is published outside of its domain.
void setMd5Checksum(String md5Checksum)
Set the MD5 checksum calculated for the document.
void setModifyingUser(Person modifyingUser)
Revisions have only one author, the user who modified the document to create that revision.
void setPublish(Boolean publish)
Sets whether the revision is published.
void setPublishAuto(Boolean publishAuto)
Sets whether changes to the document are automatically re-published.
void setPublishOutsideDomain(Boolean publishOutsideDomain)
Sets whether the document is published outside of its domain.
[Expand]
Inherited Methods
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension
From interface com.google.gdata.data.IAtom
From interface com.google.gdata.data.IEntry
From interface com.google.gdata.data.Kind.Adaptable
From interface com.google.gdata.data.Kind.Adaptor

Constants

public static final String KIND

Kind category term used to label revision entries.

Constant Value: "http://schemas.google.com/docs/2007#revision"

public static final String LABEL

Label for category.

Constant Value: "revision"

public static final String PUBLISH_NAMESPACE

Constant Value: "http://schemas.google.com/docs/2007#publish"

Fields

public static final Category CATEGORY

Category used to label revision entries.

Public Constructors

public RevisionEntry ()

public RevisionEntry (BaseEntry<?> sourceEntry)

Parameters
sourceEntry

Public Methods

public void declareExtensions (ExtensionProfile extProfile)

Declares the set of expected Extension types for an ExtensionPoint within the target extension profile. The base implementation does not declare any extensions, but can be overridden by specific types of ExtensionPoints that always contain a well-defined set of extensions.

Parameters
extProfile The ExtensionProfile to initialize.

public String getMd5Checksum ()

Returns the MD5 checksum calculated for the document.

Returns
  • the MD5 checksum

public Person getModifyingUser ()

Returns
  • the user who modified the document/created the revision

public Link getPublishLink ()

Returns the publically accessible link for the published revision.

public Boolean isPublish ()

Returns whether the revision is published.

Returns
  • whether revision is published

public Boolean isPublishAuto ()

Returns whether changes to the document are automatically re-published.

Returns
  • whether auto re-published

public Boolean isPublishOutsideDomain ()

Sets whether the document is published outside of its domain.

Returns
  • whether outside domain

public void setMd5Checksum (String md5Checksum)

Set the MD5 checksum calculated for the document.

Parameters
md5Checksum The MD5 checksum

public void setModifyingUser (Person modifyingUser)

Revisions have only one author, the user who modified the document to create that revision. These are convenience methods for setting and getting a sole author.

Parameters
modifyingUser The user who modified the document/created the revision

public void setPublish (Boolean publish)

Sets whether the revision is published.

Parameters
publish True if revision is published

public void setPublishAuto (Boolean publishAuto)

Sets whether changes to the document are automatically re-published.

Parameters
publishAuto True if auto re-published

public void setPublishOutsideDomain (Boolean publishOutsideDomain)

Sets whether the document is published outside of its domain.

Parameters
publishOutsideDomain True if outside domain