com.frevvo.forms.client
Class ApplicationEntry

java.lang.Object
  extended by com.google.gdata.data.AbstractExtension
      extended by com.google.gdata.data.ExtensionPoint
          extended by com.google.gdata.data.BaseEntry<E>
              extended by com.google.gdata.data.media.MediaEntry<ApplicationEntry>
                  extended by com.frevvo.forms.client.ApplicationEntry
All Implemented Interfaces:
Extension, IAtom, IEntry, Kind.Adaptable, Kind.Adaptor, IMediaEntry

public class ApplicationEntry
extends 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gdata.data.BaseEntry
BaseEntry.AtomHandler, BaseEntry.EntryState
 
Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
 
Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension
AbstractExtension.AttributesHandler
 
Field Summary
static String APP_ENTRY_URL_FORMAT
           
static String REL_FLOWS
           
static String REL_FORMS
           
static String REL_SCHEMAS
           
 
Fields inherited from class com.google.gdata.data.BaseEntry
state
 
Fields inherited from class com.google.gdata.data.ExtensionPoint
xmlBlob
 
Fields inherited from class com.google.gdata.data.AbstractExtension
localName, namespace
 
Constructor Summary
ApplicationEntry()
          Constructs a new Entry instance.
 
Method Summary
 void declareExtensions(ExtensionProfile extProfile)
          Initializes an ExtensionProfile based upon the extensions expected by an 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.
 Link getFlowTypeFeedLink()
          Get the FormTypeFeed link owned by this ApplicationEntry.
 FormTypeFeed getFormTypeFeed()
          Get the FormTypeFeed owned by this ApplicationEntry.
 Link getFormTypeFeedLink()
          Get the FormTypeFeed link owned by this ApplicationEntry.
 UserEntry getOnwerEntry()
          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.
 Link getSchemaFeedLink()
          Get the SchemaFeed link owned by this ApplicationEntry.
 ApplicationEntry update()
           
 ApplicationEntry updateMedia(boolean arg0)
           
 
Methods inherited from class com.google.gdata.data.media.MediaEntry
getContentHandlerInfo, getMediaEditLink, getMediaSource, setMediaSource, setService
 
Methods inherited from class com.google.gdata.data.BaseEntry
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, visitChildren
 
Methods inherited from class com.google.gdata.data.ExtensionPoint
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
 
Methods inherited from class com.google.gdata.data.AbstractExtension
consumeAttributes, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.gdata.data.IEntry
getCanEdit, getContent, getEdited, getEditLink, getPublished, getSummary, setCanEdit, setEdited, setPublished
 
Methods inherited from interface com.google.gdata.data.IAtom
addLink, getAuthors, getCategories, getEtag, getId, getKind, getLink, getLinks, getSelfLink, getTitle, getUpdated, getVersionId, removeLinks, removeLinks, setEtag, setId, setKind, setUpdated, setVersionId
 

Field Detail

REL_FORMS

public static final String REL_FORMS
See Also:
Constant Field Values

REL_FLOWS

public static final String REL_FLOWS
See Also:
Constant Field Values

REL_SCHEMAS

public static final String REL_SCHEMAS
See Also:
Constant Field Values

APP_ENTRY_URL_FORMAT

public static final String APP_ENTRY_URL_FORMAT
See Also:
Constant Field Values
Constructor Detail

ApplicationEntry

public ApplicationEntry()

Constructs a new Entry instance.

Method Detail

getEntryURL

public static URL getEntryURL(URL baseUrl,
                              String id)
                       throws MalformedURLException
Gets an URL for accessing an application entry

Parameters:
id - the application entry id
Returns:
The entry URL
Throws:
MalformedURLException

declareExtensions

public void declareExtensions(ExtensionProfile extProfile)
Initializes an ExtensionProfile based upon the extensions expected by an this entry.

Specified by:
declareExtensions in interface Kind.Adaptor
Overrides:
declareExtensions in class ExtensionPoint

getFormTypeFeedLink

public Link getFormTypeFeedLink()

Get the FormTypeFeed link owned by this ApplicationEntry.

Invoking this method will not hit the server.

Returns:
The FormTypeFeed link

getFlowTypeFeedLink

public Link getFlowTypeFeedLink()

Get the FormTypeFeed link owned by this ApplicationEntry. This link will only return flows.

Invoking this method will not hit the server.

Returns:

getFormTypeFeed

public FormTypeFeed getFormTypeFeed()
                             throws IOException,
                                    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.

Returns:
The FormTypeFeed
Throws:
IOException
ServiceException

getFlowTypeFeed

public FormTypeFeed getFlowTypeFeed()
                             throws IOException,
                                    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.

Returns:
Throws:
IOException
ServiceException

getSchemaFeedLink

public Link getSchemaFeedLink()

Get the SchemaFeed link owned by this ApplicationEntry.

Invoking this method will not hit the server.

Returns:
The FormTypeFeed link

getSchemaFeed

public SchemaFeed getSchemaFeed()
                         throws IOException,
                                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.

Returns:
The FormTypeFeed
Throws:
IOException
ServiceException

getOwnerId

public String getOwnerId()

Get the user id that owns this entry.

You can use the ownerId to get the UserEntry associated with this ApplicationEntry.

Returns:
The ownerId

getOnwerEntry

public UserEntry getOnwerEntry()
                        throws 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.

Returns:
The user entry
Throws:
ServiceException
IOException

update

public ApplicationEntry update()
                        throws IOException,
                               ServiceException
Overrides:
update in class BaseEntry<ApplicationEntry>
Throws:
IOException
ServiceException

updateMedia

public ApplicationEntry updateMedia(boolean arg0)
                             throws IOException,
                                    ServiceException
Overrides:
updateMedia in class MediaEntry<ApplicationEntry>
Throws:
IOException
ServiceException


Copyright © 2006-2011 frevvo Inc. All Rights Reserved.