com.frevvo.forms.client
public class ApplicationFeed extends com.google.gdata.data.media.MediaFeed<ApplicationFeed,ApplicationEntry>
This feed contains a list of ApplicationEntry
's and can
also be used to create new AppicationEntry
'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 |
APPS_FEED_URL_FORMAT |
Constructor and Description |
---|
ApplicationFeed()
Constructs a new Feed instance
|
Modifier and Type | Method and Description |
---|---|
com.google.gdata.data.Link |
getEntryPostLink() |
static URL |
getFeedURL(URL baseUrl)
Gets an URL for accessing the application feed
|
UserEntry |
getOnwerEntry()
Deprecated.
|
UserEntry |
getOwnerEntry()
Get the UserEntry that owns this feed.
|
String |
getOwnerId()
Get the user id that owns this feed.
|
ApplicationEntry |
uploadApplication(InputStream is)
Upload an ApplicationEntry from a previously downloaded archive.
|
ApplicationEntry |
uploadApplication(InputStream is,
boolean replace)
Upload an ApplicationEntry from a previously downloaded archive.
|
addAdaptor, createEntry, 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 APPS_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<ApplicationFeed,ApplicationEntry>
public String getOwnerId()
Get the user id that owns this feed.
You can use the ownerId to get the UserEntry associated with this ApplicationFeed.
public UserEntry getOwnerEntry() throws com.google.gdata.util.ServiceException, IOException
Get the UserEntry that owns this feed.
This method differs from the getOwnerId()
method in that it
returns the associated UserEntry
as opposed to returning the
ownerId.
com.google.gdata.util.ServiceException
IOException
public UserEntry getOnwerEntry() throws com.google.gdata.util.ServiceException, IOException
com.google.gdata.util.ServiceException
IOException
public ApplicationEntry uploadApplication(InputStream is) throws com.google.gdata.util.ServiceException, IOException
Upload an ApplicationEntry from a previously downloaded archive. If a ApplicationEntry with the same id already exists it will be replaced.
is
- The archive input streamcom.google.gdata.util.ServiceException
IOException
public ApplicationEntry uploadApplication(InputStream is, boolean replace) throws com.google.gdata.util.ServiceException, IOException
Upload an ApplicationEntry from a previously downloaded archive.
If the replaced
parameter is set to true and the same ID
already exists, the application will be replaced. Otherwise, the app
will simply be uploaded with the same ID.
If the replaced
parameter is set to false and the same ID
already exists, an error will be thrown. Otherwise the application will be
uploaded with a new 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.