com.frevvo.forms.client
public class SubmissionEntry extends com.google.gdata.data.BaseEntry<SubmissionEntry>
This entry represents a single form submission.
This entry does not contain any owned/contained feeds.
com.google.gdata.data.BaseEntry.AtomHandler, com.google.gdata.data.BaseEntry.EntryState
Modifier and Type | Field and Description |
---|---|
static String |
ERROR_ELEMENT |
static String |
ERRORDESCRIPTION_ELEMENT |
static String |
REL_DOCUMENT |
static String |
REL_PARENTSUBMISSION |
static String |
REL_SUBMISSION |
static String |
SUBMISSION_ENTRY_URL_FORMAT |
static String |
VALUE_ATTRIBUTE |
static String |
VERSION_ELEMENT |
Constructor and Description |
---|
SubmissionEntry()
Constructs a new Entry instance
|
Modifier and Type | Method and Description |
---|---|
URL |
createFormInstance(Map<String,Object> linkParams,
List<com.google.gdata.data.media.MediaSource> documents)
Creates a new Form instance and returns the raw instance URL
|
URL |
createFormInstanceEmbed(Map<String,Object> linkParams,
List<com.google.gdata.data.media.MediaSource> documents)
Creates a new Form instance and returns the embed instance URL
|
FormEntry |
createInstance(Map<String,Object> linkParams,
List<com.google.gdata.data.media.MediaSource> documents)
Creates a new instance and returns the corresponding FormEntry
|
void |
declareExtensions(com.google.gdata.data.ExtensionProfile extProfile) |
void |
generate(com.google.gdata.util.common.xml.XmlWriter w,
com.google.gdata.data.ExtensionProfile extProfile) |
List<com.google.gdata.data.Link> |
getDocumentLinks()
Get all the submission documents
|
List<com.google.gdata.data.Link> |
getDocumentLinks(String contentType)
Get the submission documents filtered by content type
|
static URL |
getEntryURL(URL baseUrl,
String id)
Gets an URL for accessing an FormType entry
|
String |
getErrorDescription() |
<T extends com.google.gdata.data.Extension> |
getExtension(Class<T> extensionClass) |
com.google.gdata.data.Link |
getFormTypeEmbedLink(Map<String,Object> linkParams)
Get the embed JS url for the FormType that can edit this submission
|
com.google.gdata.data.Link |
getFormTypeLink(Map<String,Object> linkParams)
Get the HTML link to this
FormTypeEntry . |
com.google.gdata.data.Link |
getFormTypePopupLink(Map<String,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,
String namespace,
String localName,
Attributes attrs) |
KeysExtension |
getKeys()
Get the keys associated with this submission
|
String |
getKind()
Get the kind of submission: either FLOW or FORM
|
FormsService |
getService() |
com.google.gdata.data.Link |
getSnapshotLink(String contentType)
Get the snapshot link for the given content type
|
List<com.google.gdata.data.Link> |
getSnapshotLinks()
Get all available snapshot links for this entry
|
String |
getState()
Get the state for this submission: either SAVED, PENDING or SUBMITTED
|
boolean |
isError() |
SubmissionEntry |
update() |
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, 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
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
public static final String REL_SUBMISSION
public static final String REL_PARENTSUBMISSION
public static final String SUBMISSION_ENTRY_URL_FORMAT
public static final String VERSION_ELEMENT
public static final String ERROR_ELEMENT
public static final String ERRORDESCRIPTION_ELEMENT
public static final String VALUE_ATTRIBUTE
public static final String REL_DOCUMENT
public static URL getEntryURL(URL baseUrl, String id) throws MalformedURLException
id
- the theme entry idMalformedURLException
public FormsService getService()
getService
in class com.google.gdata.data.BaseEntry<SubmissionEntry>
public boolean isError()
public String getErrorDescription()
public void declareExtensions(com.google.gdata.data.ExtensionProfile extProfile)
declareExtensions
in interface com.google.gdata.data.Kind.Adaptor
declareExtensions
in class com.google.gdata.data.ExtensionPoint
public String getKind()
getKind
in interface com.google.gdata.data.IAtom
getKind
in class com.google.gdata.data.BaseEntry<SubmissionEntry>
public String getState()
public SubmissionEntry update() throws IOException, com.google.gdata.util.ServiceException
update
in class com.google.gdata.data.BaseEntry<SubmissionEntry>
IOException
com.google.gdata.util.ServiceException
public KeysExtension getKeys()
public List<com.google.gdata.data.Link> getDocumentLinks()
public List<com.google.gdata.data.Link> getDocumentLinks(String contentType)
contentType
- An optional contentType used to filter the list of documentspublic com.google.gdata.data.Link getFormTypeLink(Map<String,Object> linkParams) throws com.google.gdata.util.ServiceException
FormTypeEntry
.linkParams
- The parameters used to customize the link to the formFormTypeEntry
's formcom.google.gdata.util.ServiceException
public com.google.gdata.data.Link getFormTypePopupLink(Map<String,Object> linkParams) throws com.google.gdata.util.ServiceException
FormTypeEntry
.linkParams
- The parameters used to customize the link to the formFormTypeEntry
's formcom.google.gdata.util.ServiceException
public com.google.gdata.data.Link getFormTypeEmbedLink(Map<String,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 List<com.google.gdata.data.Link> getSnapshotLinks()
public com.google.gdata.data.Link getSnapshotLink(String contentType)
contentType
- The type of snapshotpublic URL createFormInstance(Map<String,Object> linkParams, 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
formcom.google.gdata.util.ServiceException
public URL createFormInstanceEmbed(Map<String,Object> linkParams, 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
formcom.google.gdata.util.ServiceException
public FormEntry createInstance(Map<String,Object> linkParams, 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
formcom.google.gdata.util.ServiceException
public <T extends com.google.gdata.data.Extension> T getExtension(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 IOException
generate
in interface com.google.gdata.data.Extension
generate
in class com.google.gdata.data.BaseEntry<SubmissionEntry>
IOException
public com.google.gdata.util.XmlParser.ElementHandler getHandler(com.google.gdata.data.ExtensionProfile p, String namespace, String localName, Attributes attrs)
getHandler
in interface com.google.gdata.data.Extension
getHandler
in class com.google.gdata.data.BaseEntry<SubmissionEntry>
Copyright © 2006–2015 frevvo Inc. All rights reserved.