com.frevvo.forms.client
public class TaskEntry extends com.google.gdata.data.BaseEntry<TaskEntry>
This entry represents a single task.
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 |
REL_PARENTTASK |
static String |
REL_TASK |
static String |
TASK_ENTRY_URL_FORMAT |
Constructor and Description |
---|
TaskEntry()
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
|
void |
declareExtensions(com.google.gdata.data.ExtensionProfile extProfile) |
List<com.google.gdata.data.Link> |
getDocumentLink(String contentType)
Get the task documents filtered by content type
|
static URL |
getEntryURL(URL baseUrl,
String id)
Gets an URL for accessing an FormType entry
|
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 . |
KeysExtension |
getKeys()
Get the keys associated with this submission
|
String |
getKind()
Get the kind of task: either FLOW or FORM
|
String |
getState()
Get the state for this submission: either SAVED, PENDING or SUBMITTED, ...
|
void |
setResetToStep(String activityName) |
addAdaptor, addHtmlLink, addLink, addLink, delete, generate, generateAtom, generateRss, getAdaptedEntry, getAdaptor, getAdaptors, getAuthors, getCanEdit, getCategories, getContent, getContentHandlerInfo, getContributors, getEdited, getEditLink, getEtag, getHandler, 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, 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 REL_TASK
public static final String REL_PARENTTASK
public static final String TASK_ENTRY_URL_FORMAT
public static URL getEntryURL(URL baseUrl, String id) throws MalformedURLException
id
- the theme entry idMalformedURLException
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 void setResetToStep(String activityName)
public String getKind()
getKind
in interface com.google.gdata.data.IAtom
getKind
in class com.google.gdata.data.BaseEntry<TaskEntry>
public String getState()
public KeysExtension getKeys()
public List<com.google.gdata.data.Link> getDocumentLink(String contentType)
contentTypeFilter
- 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 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 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)Copyright © 2006–2015 frevvo Inc. All rights reserved.