com.frevvo.forms.client
public class FormTypeFeed extends com.google.gdata.data.media.MediaFeed<FormTypeFeed,FormTypeEntry>
This feed contains a list of FormTypeEntry
's and can also be
used to create new FormTypeEntry
's.
com.google.gdata.data.BaseFeed.FeedHandler, com.google.gdata.data.BaseFeed.FeedState
com.google.gdata.data.Source.SourceHandler, com.google.gdata.data.Source.SourceState
Modifier and Type | Field and Description |
---|---|
static String |
FORMTYPES_FEED_URL_FORMAT |
Constructor and Description |
---|
FormTypeFeed()
Constructs a new Feed instance
|
Modifier and Type | Method and Description |
---|---|
FormTypeEntry |
createEntry() |
FormTypeEntry |
createEntry(ApplicationEntry appEntry)
Create a new FormTypeEntry using the given ApplicationEntry as the owner.
|
com.google.gdata.data.Link |
getEntryPostLink() |
static URL |
getFeedURL(URL baseUrl)
Gets an URL for accessing the FormType feed
|
ApplicationEntry |
getOwnerEntry()
Get the ApplicationEntry that owns this feed.
|
String |
getOwnerId()
Get the application id that owns this feed.
|
FormTypeEntry |
uploadFormType(InputStream is)
Upload a FormTypeEntry from a previously downloaded archive.
|
FormTypeEntry |
uploadFormType(InputStream is,
boolean replace)
Upload a FormTypeEntry from a previously downloaded archive.
|
addAdaptor, declareExtensions, generate, generateAtom, generateFeedEnd, generateFeedStart, generateRss, getAdaptedFeed, getAdaptor, getAdaptors, getCanPost, getEntries, getEntries, getEtag, getFeedBatchLink, getHandler, getItemsPerPage, getKind, getNextLink, getPreviousLink, getSelf, getSelfLink, getService, getStartIndex, getTotalResults, getVersionId, insert, parseAtom, parseAtom, parseAtom, readFeed, readFeed, setCanPost, setEntries, setEtag, setItemsPerPage, setKind, setStartIndex, setTotalResults, setVersionId, visitChildren
addHtmlLink, addLink, generateInnerAtom, getAuthors, getCategories, getContributors, getHtmlLink, getIcon, getId, getLinks, getLinks, getLogo, getRights, getUpdated, removeLinks, removeLinks, setGenerator, setIcon, setId, setLogo, setRights, setSubtitle, setTitle, setUpdated
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
consumeAttributes, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate
public static final String FORMTYPES_FEED_URL_FORMAT
public static URL getFeedURL(URL baseUrl) throws MalformedURLException
MalformedURLException
public com.google.gdata.data.Link getEntryPostLink()
getEntryPostLink
in interface com.google.gdata.data.IFeed
getEntryPostLink
in class com.google.gdata.data.BaseFeed<FormTypeFeed,FormTypeEntry>
public String getOwnerId()
Get the application id that owns this feed.
You can use the ownerId to get the ApplicationEntry associated with this SchemaFeed.
public ApplicationEntry getOwnerEntry()
Get the ApplicationEntry that owns this feed.
This method differs from the getOwnerId()
method in that it
returns the associated ApplicationEntry
as opposed to
returning the ownerId.
com.google.gdata.util.ServiceException
IOException
public FormTypeEntry createEntry()
createEntry
in interface com.google.gdata.data.IFeed
createEntry
in class com.google.gdata.data.BaseFeed<FormTypeFeed,FormTypeEntry>
public FormTypeEntry createEntry(ApplicationEntry appEntry)
Create a new FormTypeEntry using the given ApplicationEntry as the owner.
You only need to use this method instead of the
createEntry()
when inserting a FormTypeEntry into a global
ApplicationFeed, i.e. a feed without an ownerId.
appEntry
- The owner entrypublic FormTypeEntry uploadFormType(InputStream is) throws com.google.gdata.util.ServiceException, IOException
Upload a FormTypeEntry from a previously downloaded archive. If a FormTypeEntry with the same id already exists it will replaced.
is
- The archive input streamcom.google.gdata.util.ServiceException
IOException
public FormTypeEntry uploadFormType(InputStream is, boolean replace) throws com.google.gdata.util.ServiceException, IOException
Upload a FormTypeEntry from a previously downloaded archive. If a FormTypeEntry with the same id already exists, it will be replaced. Otherwise, the archive will be uploaded with the same id.
is
- The input stream to the archivereplace
- true
will replace an existing form, otherwise
a copy will be createdFormTypeEntry
com.google.gdata.util.ServiceException
IOException
Copyright © 2006–2015 frevvo Inc. All rights reserved.