com.frevvo.forms.client
public class ApplicationEntry extends com.google.gdata.data.media.MediaEntry<ApplicationEntry>
This entry represents a single application created by a user, its owner.
It also contains links to related, owned feeds such as the
FormTypeFeed
and SchemasFeed
.
Note that there is a difference between retrieving a global
FormTypeFeed
, for instance, and an ApplicationEntry
's FormTypeFeed
. In the first case, the feed will contain all
FormTypeEntry
's for all applications, whereas the second case
will contain only FormTypeEntry
's for the owner
ApplicationEntry
. Another important point is that it is only
possible to insert a new FormTypeEntry
(or
SchemaEntry
) in a FormTypeFeed
feed that is related
to a single ApplicationEntry
: i.e. it is not possible to insert
a FormTypeEntry
into a global FormTypeFeed
.
com.google.gdata.data.BaseEntry.AtomHandler, com.google.gdata.data.BaseEntry.EntryState
Modifier and Type | Field and Description |
---|---|
static String |
APP_ENTRY_URL_FORMAT |
static String |
REL_FLOWS |
static String |
REL_FORMS |
static String |
REL_SCHEMAS |
static String |
REL_SCRIPT |
static String |
REL_STYLES |
Constructor and Description |
---|
ApplicationEntry()
Constructs a new Entry instance.
|
Modifier and Type | Method and Description |
---|---|
void |
declareExtensions(com.google.gdata.data.ExtensionProfile extProfile)
Initializes an ExtensionProfile based upon the extensions expected by an
this entry.
|
void |
deleteScript()
Delete the script from this entry.
|
static URL |
getEntryURL(URL baseUrl,
String id)
Gets an URL for accessing an application entry
|
FormTypeFeed |
getFlowTypeFeed()
Get the FormTypeFeed owned by this ApplicationEntry.
|
com.google.gdata.data.Link |
getFlowTypeFeedLink()
Get the FormTypeFeed link owned by this ApplicationEntry.
|
FormTypeFeed |
getFormTypeFeed()
Get the FormTypeFeed owned by this ApplicationEntry.
|
com.google.gdata.data.Link |
getFormTypeFeedLink()
Get the FormTypeFeed link owned by this ApplicationEntry.
|
UserEntry |
getOnwerEntry()
Deprecated.
|
UserEntry |
getOwnerEntry()
Get the UserEntry that owns this entry.
|
String |
getOwnerId()
Get the user id that owns this entry.
|
SchemaFeed |
getSchemaFeed()
Get the SchemaFeed owned by this ApplicationEntry.
|
com.google.gdata.data.Link |
getSchemaFeedLink()
Get the SchemaFeed link owned by this ApplicationEntry.
|
InputStream |
getScript()
Get the script from this entry.
|
void |
setScript(InputStream script)
Update the script for this entry.
|
ApplicationEntry |
updateMedia(boolean arg0) |
getContentHandlerInfo, getMediaEditLink, getMediaSource, setMediaSource, setService
addAdaptor, addHtmlLink, addLink, addLink, delete, generate, generateAtom, generateRss, getAdaptedEntry, getAdaptor, getAdaptors, getAuthors, getCanEdit, getCategories, getContent, getContributors, getEdited, getEditLink, getEtag, getHandler, getHtmlLink, getId, getKind, getLink, getLinks, getLinks, 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, 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
consumeAttributes, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final String REL_FORMS
public static final String REL_FLOWS
public static final String REL_SCHEMAS
public static final String REL_STYLES
public static final String REL_SCRIPT
public static final String APP_ENTRY_URL_FORMAT
public static URL getEntryURL(URL baseUrl, String id) throws MalformedURLException
id
- the application 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 com.google.gdata.data.Link getFormTypeFeedLink()
Get the FormTypeFeed link owned by this ApplicationEntry.
Invoking this method will not hit the server.
FormTypeFeed
link for forms onlypublic com.google.gdata.data.Link getFlowTypeFeedLink()
Get the FormTypeFeed link owned by this ApplicationEntry. This link will only return flows.
Invoking this method will not hit the server.
FormTypeFeed
link for flows onlypublic FormTypeFeed getFormTypeFeed() throws IOException, com.google.gdata.util.ServiceException
Get the FormTypeFeed owned by this ApplicationEntry.
This method differs from the getFormTypeFeedLink()
method in
that it returns the associated feed as opposed to returning only the
link.
Invoking this method will hit the server.
IOException
com.google.gdata.util.ServiceException
public FormTypeFeed getFlowTypeFeed() throws IOException, com.google.gdata.util.ServiceException
Get the FormTypeFeed owned by this ApplicationEntry. This link will only return flows.
This method differs from the getFlowTypeFeedLink()
method in
that it returns the associated feed as opposed to returning only the
link.
Invoking this method will hit the server.
FormTypeFeed
for this entryIOException
com.google.gdata.util.ServiceException
public com.google.gdata.data.Link getSchemaFeedLink()
Get the SchemaFeed link owned by this ApplicationEntry.
Invoking this method will not hit the server.
public SchemaFeed getSchemaFeed() throws IOException, com.google.gdata.util.ServiceException
Get the SchemaFeed owned by this ApplicationEntry.
This method differs from the getSchemaFeedLink()
method in
that it returns the associated feed as opposed to returning only the
link.
Invoking this method will hit the server.
IOException
com.google.gdata.util.ServiceException
public String getOwnerId()
Get the user id that owns this entry.
You can use the ownerId to get the UserEntry associated with this ApplicationEntry.
public UserEntry getOwnerEntry() throws com.google.gdata.util.ServiceException, IOException
Get the UserEntry that owns this entry.
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 InputStream getScript() throws IOException, com.google.gdata.util.ServiceException
Get the script from this entry.
IOException
com.google.gdata.util.ServiceException
public void setScript(InputStream script) throws IOException, com.google.gdata.util.ServiceException
Update the script for this entry.
script
- IOException
com.google.gdata.util.ServiceException
public void deleteScript() throws IOException, com.google.gdata.util.ServiceException
Delete the script from this entry.
IOException
com.google.gdata.util.ServiceException
public ApplicationEntry updateMedia(boolean arg0) throws IOException, com.google.gdata.util.ServiceException
updateMedia
in class com.google.gdata.data.media.MediaEntry<ApplicationEntry>
IOException
com.google.gdata.util.ServiceException
Copyright © 2006–2015 frevvo Inc. All rights reserved.