|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.BaseEntry<SubmissionEntry>
com.frevvo.forms.client.SubmissionEntry
public class SubmissionEntry
This entry represents a single form submission.
This entry does not contain any owned/contained feeds.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gdata.data.BaseEntry |
|---|
com.google.gdata.data.BaseEntry.AtomHandler, com.google.gdata.data.BaseEntry.EntryState |
| Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
|---|
com.google.gdata.data.ExtensionPoint.CumulativeBlobHandler, com.google.gdata.data.ExtensionPoint.ExtensionHandler |
| Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension |
|---|
com.google.gdata.data.AbstractExtension.AttributesHandler |
| Field Summary | |
|---|---|
static java.lang.String |
ERROR_ELEMENT
|
static java.lang.String |
ERRORDESCRIPTION_ELEMENT
|
static java.lang.String |
REL_PARENTSUBMISSION
|
static java.lang.String |
REL_SNAPSHOT
|
static java.lang.String |
REL_SUBMISSION
|
static java.lang.String |
SUBMISSION_ENTRY_URL_FORMAT
|
static java.lang.String |
VALUE_ATTRIBUTE
|
static java.lang.String |
VERSION_ELEMENT
|
| Fields inherited from class com.google.gdata.data.BaseEntry |
|---|
state |
| Fields inherited from class com.google.gdata.data.ExtensionPoint |
|---|
xmlBlob |
| Fields inherited from class com.google.gdata.data.AbstractExtension |
|---|
localName, namespace |
| Constructor Summary | |
|---|---|
SubmissionEntry()
Constructs a new Entry instance |
|
| Method Summary | ||
|---|---|---|
java.net.URL |
createFormInstance(java.util.Map<java.lang.String,java.lang.Object> linkParams,
java.util.List<com.google.gdata.data.media.MediaSource> documents)
Creates a new Form instance and returns the raw instance URL |
|
java.net.URL |
createFormInstanceEmbed(java.util.Map<java.lang.String,java.lang.Object> linkParams,
java.util.List<com.google.gdata.data.media.MediaSource> documents)
Creates a new Form instance and returns the embed instance URL |
|
void |
declareExtensions(com.google.gdata.data.ExtensionProfile extProfile)
|
|
void |
generate(com.google.gdata.util.common.xml.XmlWriter w,
com.google.gdata.data.ExtensionProfile extProfile)
|
|
java.util.List<com.google.gdata.data.Link> |
getDocumentLinks()
Get all the submission documents |
|
java.util.List<com.google.gdata.data.Link> |
getDocumentLinks(java.lang.String contentType)
Get the submission documents filtered by content type |
|
static java.net.URL |
getEntryURL(java.net.URL baseUrl,
java.lang.String id)
Gets an URL for accessing an FormType entry |
|
java.lang.String |
getErrorDescription()
|
|
|
getExtension(java.lang.Class<T> extensionClass)
|
|
com.google.gdata.data.Link |
getFormTypeEmbedLink(java.util.Map<java.lang.String,java.lang.Object> linkParams)
Get the embed JS url for the FormType that can edit this submission |
|
com.google.gdata.data.Link |
getFormTypeLink(java.util.Map<java.lang.String,java.lang.Object> linkParams)
Get the HTML link to this FormTypeEntry. |
|
com.google.gdata.data.Link |
getFormTypePopupLink(java.util.Map<java.lang.String,java.lang.Object> linkParams)
Get a link to an HTML page that embeds this FormTypeEntry. |
|
com.google.gdata.util.XmlParser.ElementHandler |
getHandler(com.google.gdata.data.ExtensionProfile p,
java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
|
|
KeysExtension |
getKeys()
Get the keys associated with this submission |
|
java.lang.String |
getKind()
Get the kind of submission: either FLOW or FORM |
|
com.google.gdata.data.Link |
getSnapshotLink(java.lang.String contentType)
Get the snapshot link for the given content type |
|
java.util.List<com.google.gdata.data.Link> |
getSnapshotLinks()
Get all available snapshot links for this entry |
|
java.lang.String |
getState()
Get the state for this submission: either SAVED, PENDING or SUBMITTED |
|
boolean |
isError()
|
|
SubmissionEntry |
update()
|
|
| Methods inherited from class com.google.gdata.data.BaseEntry |
|---|
addAdaptor, addHtmlLink, addLink, addLink, delete, generateAtom, generateRss, getAdaptedEntry, getAdaptor, getAdaptors, getAuthors, getCanEdit, getCategories, getContent, getContentHandlerInfo, getContributors, getEdited, getEditLink, getEtag, getHtmlLink, getId, getLink, getLinks, getLinks, getMediaEditLink, getPlainTextContent, getPubControl, getPublished, getRights, getSelf, getSelfLink, getService, getSource, getSummary, getTextContent, getTitle, getUpdated, getVersionId, isDraft, parseAtom, parseAtom, parseAtom, readEntry, readEntry, removeLinks, removeLinks, setCanEdit, setContent, setContent, setDraft, setEdited, setEtag, setId, setKind, setPubControl, setPublished, setRights, setService, setSource, setSummary, setTitle, setUpdated, setVersionId, visitChildren |
| Methods inherited from class com.google.gdata.data.ExtensionPoint |
|---|
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild |
| Methods inherited from class com.google.gdata.data.AbstractExtension |
|---|
consumeAttributes, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String REL_SUBMISSION
public static final java.lang.String REL_PARENTSUBMISSION
public static final java.lang.String SUBMISSION_ENTRY_URL_FORMAT
public static final java.lang.String VERSION_ELEMENT
public static final java.lang.String ERROR_ELEMENT
public static final java.lang.String ERRORDESCRIPTION_ELEMENT
public static final java.lang.String VALUE_ATTRIBUTE
public static final java.lang.String REL_SNAPSHOT
| Constructor Detail |
|---|
public SubmissionEntry()
| Method Detail |
|---|
public static java.net.URL getEntryURL(java.net.URL baseUrl,
java.lang.String id)
throws java.net.MalformedURLException
id - the theme entry id
java.net.MalformedURLExceptionpublic boolean isError()
public java.lang.String getErrorDescription()
public void declareExtensions(com.google.gdata.data.ExtensionProfile extProfile)
declareExtensions in interface com.google.gdata.data.Kind.AdaptordeclareExtensions in class com.google.gdata.data.ExtensionPointpublic java.lang.String getKind()
getKind in interface com.google.gdata.data.IAtomgetKind in class com.google.gdata.data.BaseEntry<SubmissionEntry>public java.lang.String getState()
public SubmissionEntry update()
throws java.io.IOException,
com.google.gdata.util.ServiceException
update in class com.google.gdata.data.BaseEntry<SubmissionEntry>java.io.IOException
com.google.gdata.util.ServiceExceptionpublic KeysExtension getKeys()
public java.util.List<com.google.gdata.data.Link> getDocumentLinks()
public java.util.List<com.google.gdata.data.Link> getDocumentLinks(java.lang.String contentType)
contentTypeFilter - An optional contentType used to filter the list of documents
public com.google.gdata.data.Link getFormTypeLink(java.util.Map<java.lang.String,java.lang.Object> linkParams)
throws com.google.gdata.util.ServiceException
FormTypeEntry.
linkParams - The parameters used to customize the link to the form
FormTypeEntry's form
com.google.gdata.util.ServiceException
public com.google.gdata.data.Link getFormTypePopupLink(java.util.Map<java.lang.String,java.lang.Object> linkParams)
throws com.google.gdata.util.ServiceException
FormTypeEntry.
linkParams - The parameters used to customize the link to the form
FormTypeEntry's form
com.google.gdata.util.ServiceExceptionpublic com.google.gdata.data.Link getFormTypeEmbedLink(java.util.Map<java.lang.String,java.lang.Object> linkParams)
Get the embed JS url for the FormType that can edit this submission
Next is an example of how this link href should be used in an html page:
<script language="JavaScript" type="text/javascript" src="{EMBEDLINK}"/>
linkParams - The parameters used to customize the embed url (see
FormTypeEntry.EMBED_*_PARAMETERS constants)
public java.util.List<com.google.gdata.data.Link> getSnapshotLinks()
public com.google.gdata.data.Link getSnapshotLink(java.lang.String contentType)
contentType - The type of snapshot
public java.net.URL createFormInstance(java.util.Map<java.lang.String,java.lang.Object> linkParams,
java.util.List<com.google.gdata.data.media.MediaSource> documents)
throws com.google.gdata.util.ServiceException
linkParams - The parameters that can be used to initialize the form
instancedocuments - A list of XML documents that can be used to initialize the
form
com.google.gdata.util.ServiceException
public java.net.URL createFormInstanceEmbed(java.util.Map<java.lang.String,java.lang.Object> linkParams,
java.util.List<com.google.gdata.data.media.MediaSource> documents)
throws com.google.gdata.util.ServiceException
linkParams - The parametes that can be used to initialize the form instancedocuments - The list of XML documents that can be used to initialize the
form
com.google.gdata.util.ServiceExceptionpublic <T extends com.google.gdata.data.Extension> T getExtension(java.lang.Class<T> extensionClass)
getExtension in class com.google.gdata.data.ExtensionPoint
public void generate(com.google.gdata.util.common.xml.XmlWriter w,
com.google.gdata.data.ExtensionProfile extProfile)
throws java.io.IOException
generate in interface com.google.gdata.data.Extensiongenerate in class com.google.gdata.data.BaseEntry<SubmissionEntry>java.io.IOException
public com.google.gdata.util.XmlParser.ElementHandler getHandler(com.google.gdata.data.ExtensionProfile p,
java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
getHandler in interface com.google.gdata.data.ExtensiongetHandler in class com.google.gdata.data.BaseEntry<SubmissionEntry>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||