|
||||||||||
| 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 |
|---|
BaseEntry.AtomHandler, BaseEntry.EntryState |
| Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
|---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
| Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension |
|---|
AbstractExtension.AttributesHandler |
| Field Summary | |
|---|---|
static String |
ERROR_ELEMENT
|
static String |
ERRORDESCRIPTION_ELEMENT
|
static String |
REL_PARENTSUBMISSION
|
static String |
REL_SNAPSHOT
|
static String |
REL_SUBMISSION
|
static String |
SUBMISSION_ENTRY_URL_FORMAT
|
static String |
VALUE_ATTRIBUTE
|
static 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 | ||
|---|---|---|
URL |
createFormInstance(Map<String,Object> linkParams,
List<MediaSource> documents)
Creates a new Form instance and returns the raw instance URL |
|
URL |
createFormInstanceEmbed(Map<String,Object> linkParams,
List<MediaSource> documents)
Creates a new Form instance and returns the embed instance URL |
|
void |
declareExtensions(ExtensionProfile extProfile)
|
|
void |
generate(com.google.gdata.util.common.xml.XmlWriter w,
ExtensionProfile extProfile)
|
|
List<Link> |
getDocumentLinks()
Get all the submission documents |
|
List<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()
|
|
|
getExtension(Class<T> extensionClass)
|
|
Link |
getFormTypeEmbedLink(Map<String,Object> linkParams)
Get the embed JS url for the FormType that can edit this submission |
|
Link |
getFormTypeLink(Map<String,Object> linkParams)
Get the HTML link to this FormTypeEntry. |
|
Link |
getFormTypePopupLink(Map<String,Object> linkParams)
Get a link to an HTML page that embeds this FormTypeEntry. |
|
XmlParser.ElementHandler |
getHandler(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 |
|
Link |
getSnapshotLink(String contentType)
Get the snapshot link for the given content type |
|
List<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()
|
|
| 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.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 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_SNAPSHOT
| Constructor Detail |
|---|
public SubmissionEntry()
| Method Detail |
|---|
public static URL getEntryURL(URL baseUrl,
String id)
throws MalformedURLException
id - the theme entry id
MalformedURLExceptionpublic boolean isError()
public String getErrorDescription()
public void declareExtensions(ExtensionProfile extProfile)
declareExtensions in interface Kind.AdaptordeclareExtensions in class ExtensionPointpublic String getKind()
getKind in interface IAtomgetKind in class BaseEntry<SubmissionEntry>public String getState()
public SubmissionEntry update()
throws IOException,
ServiceException
update in class BaseEntry<SubmissionEntry>IOException
ServiceExceptionpublic KeysExtension getKeys()
public List<Link> getDocumentLinks()
public List<Link> getDocumentLinks(String contentType)
contentTypeFilter - An optional contentType used to filter the list of documents
public Link getFormTypeLink(Map<String,Object> linkParams)
throws ServiceException
FormTypeEntry.
linkParams - The parameters used to customize the link to the form
FormTypeEntry's form
ServiceException
public Link getFormTypePopupLink(Map<String,Object> linkParams)
throws ServiceException
FormTypeEntry.
linkParams - The parameters used to customize the link to the form
FormTypeEntry's form
ServiceExceptionpublic 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<Link> getSnapshotLinks()
public Link getSnapshotLink(String contentType)
contentType - The type of snapshot
public URL createFormInstance(Map<String,Object> linkParams,
List<MediaSource> documents)
throws 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
ServiceException
public URL createFormInstanceEmbed(Map<String,Object> linkParams,
List<MediaSource> documents)
throws 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
ServiceExceptionpublic <T extends Extension> T getExtension(Class<T> extensionClass)
getExtension in class ExtensionPoint
public void generate(com.google.gdata.util.common.xml.XmlWriter w,
ExtensionProfile extProfile)
throws IOException
generate in interface Extensiongenerate in class BaseEntry<SubmissionEntry>IOException
public XmlParser.ElementHandler getHandler(ExtensionProfile p,
String namespace,
String localName,
Attributes attrs)
getHandler in interface ExtensiongetHandler in class BaseEntry<SubmissionEntry>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||