com.frevvo.forms.client
public class FormEntry extends com.google.gdata.data.BaseEntry<FormEntry>
com.google.gdata.data.BaseEntry.AtomHandler, com.google.gdata.data.BaseEntry.EntryState
Modifier and Type | Field and Description |
---|---|
static String |
ENTRY_URL_FORMAT |
static String |
REL_CONTROL |
static String |
REL_EDIT |
static String |
REL_FORMTYPE |
static String |
REL_USE |
Constructor and Description |
---|
FormEntry() |
Modifier and Type | Method and Description |
---|---|
void |
cancelInstance()
Cancel this form releasing the form data from the server.
|
void |
declareExtensions(com.google.gdata.data.ExtensionProfile extProfile) |
ControlFeed |
getControlFeed() |
com.google.gdata.data.Link |
getControlFeedLink() |
static URL |
getEntryURL(URL baseUrl,
String id)
Get the form entry URL
|
com.google.gdata.data.Link |
getFormEditEmbedLink() |
com.google.gdata.data.Link |
getFormEditEmbedLink(Map<String,Object> params) |
com.google.gdata.data.Link |
getFormEditLink() |
com.google.gdata.data.Link |
getFormEditLink(Map<String,Object> params) |
FormTypeEntry |
getFormTypeEntry() |
com.google.gdata.data.Link |
getFormTypeEntryLink() |
com.google.gdata.data.Link |
getFormUseEmbedLink() |
com.google.gdata.data.Link |
getFormUseEmbedLink(Map<String,Object> params) |
com.google.gdata.data.Link |
getFormUseLink() |
com.google.gdata.data.Link |
getFormUseLink(Map<String,Object> params) |
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
The actual list of images supported depends on the JRE/ImageIO
libraries installed.
|
SubmissionEntry |
getSubmissionEntry()
Get submission for this entry or null if the entry hasn't been submitted
yet or was cancelled
|
String |
getSubmissionId()
Return the submission id for this entry.
|
boolean |
isDirty()
Has the editing entry been modified.
|
FormData |
saveInstance()
Save and continue using this form
|
FormData |
saveInstance(boolean disposeInstance)
Save and optionally terminate this form instance
|
void |
submitEditingInstance(boolean finish) |
void |
submitEditingInstance(boolean finish,
String authHeader,
List<org.apache.commons.httpclient.Cookie> cookies) |
FormData |
submitInstance()
Submit this form and return the form documents and attachments.
|
FormData |
submitInstance(String authHeader,
List<org.apache.commons.httpclient.Cookie> cookies) |
addAdaptor, addHtmlLink, addLink, addLink, delete, generate, generateAtom, generateRss, getAdaptedEntry, getAdaptor, getAdaptors, getAuthors, getCanEdit, getCategories, getContent, getContentHandlerInfo, getContributors, getEdited, getEditLink, getEtag, getHandler, getHtmlLink, getId, getKind, 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, update, visitChildren
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild
public static final String ENTRY_URL_FORMAT
public static final String REL_CONTROL
public static final String REL_FORMTYPE
public static final String REL_USE
public static final String REL_EDIT
public static URL getEntryURL(URL baseUrl, String id) throws MalformedURLException
baseUrl
- The base urlid
- The formEntry idfull
- Whether full metadata needs to be returnedMalformedURLException
public boolean isDirty()
public com.google.gdata.data.Link getFormUseLink()
public com.google.gdata.data.Link getFormEditLink()
public com.google.gdata.data.Link getFormUseEmbedLink()
public com.google.gdata.data.Link getFormUseEmbedLink(Map<String,Object> params)
public com.google.gdata.data.Link getFormEditEmbedLink()
public com.google.gdata.data.Link getFormEditEmbedLink(Map<String,Object> params)
public com.google.gdata.data.Link getControlFeedLink()
public ControlFeed getControlFeed() throws MalformedURLException, IOException, com.google.gdata.util.ServiceException
MalformedURLException
IOException
com.google.gdata.util.ServiceException
public com.google.gdata.data.Link getFormTypeEntryLink()
public FormTypeEntry getFormTypeEntry() throws MalformedURLException, IOException, com.google.gdata.util.ServiceException
MalformedURLException
IOException
com.google.gdata.util.ServiceException
public void submitEditingInstance(boolean finish) throws MalformedURLException
MalformedURLException
public void submitEditingInstance(boolean finish, String authHeader, List<org.apache.commons.httpclient.Cookie> cookies) throws MalformedURLException
MalformedURLException
public FormData submitInstance() throws com.google.gdata.util.ServiceException
MalformedURLException
com.google.gdata.util.ServiceException
public FormData submitInstance(String authHeader, List<org.apache.commons.httpclient.Cookie> cookies) throws com.google.gdata.util.ServiceException
com.google.gdata.util.ServiceException
public void cancelInstance() throws com.google.gdata.util.ServiceException
MalformedURLException
com.google.gdata.util.ServiceException
public FormData saveInstance() throws com.google.gdata.util.ServiceException
null
or the saved form data if
FormTypeEntry.FORMTYPE_FORMACTIONDOCS_PARAMETER
is set to
true
when the instance was created. Note that only
the instance data will be returned: i.e. xml documents,
attachments and signatures.com.google.gdata.util.ServiceException
public FormData saveInstance(boolean disposeInstance) throws com.google.gdata.util.ServiceException
terminateInstances
- false
to continue using this form, or
true
to terminate itFormTypeEntry.FORMTYPE_FORMACTIONDOCS_PARAMETER
is set to
true
when the instance was created. Note that only
the instance data will be returned: i.e. xml documents,
attachments and signatures.com.google.gdata.util.ServiceException
public String getSubmissionId()
public SubmissionEntry getSubmissionEntry() throws com.google.gdata.util.ServiceException
com.google.gdata.util.ServiceException
public List<com.google.gdata.data.Link> getSnapshotLinks()
public com.google.gdata.data.Link getSnapshotLink(String contentType)
contentType
- The type of snapshot (see getSnapshotLinks()
for sample valuespublic 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
com.google.gdata.data.ExtensionPoint#declareExtensions(com.google.gdata
.data.ExtensionProfile)
Copyright © 2006–2015 frevvo Inc. All rights reserved.