|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.gdata.server.GDataService
public class GDataService
default implementation of the Service
interface.
Field Summary | |
---|---|
protected EntryEventMediator |
entryEventMediator
|
protected GDataServerRegistry |
registry
|
protected Storage |
storage
|
Constructor Summary | |
---|---|
protected |
GDataService()
|
Method Summary | |
---|---|
void |
close()
will close the Service - service should not be used after this method has been called |
com.google.gdata.data.BaseEntry |
createEntry(GDataRequest request,
GDataResponse response)
Service method to create an entry in an already created and existing feed. |
com.google.gdata.data.BaseEntry |
deleteEntry(GDataRequest request,
GDataResponse response)
Service Method to delete an entry specified in the given FeedRequest. |
protected void |
dynamicElementFeedStragey(com.google.gdata.data.BaseFeed feed,
GDataRequest request)
|
protected com.google.gdata.data.DateTime |
getCurrentDateTime()
|
Date |
getEntryLastModified(String entryId,
String feedId)
Retruns the date of the last modification for the given entry id |
com.google.gdata.data.BaseFeed |
getFeed(GDataRequest request,
GDataResponse response)
Service method to retrieve a requested Feed. |
Date |
getFeedLastModified(String feedId)
Retruns the date of the last modification for the given feed id |
com.google.gdata.data.BaseEntry |
getSingleEntry(GDataRequest request,
GDataResponse response)
Service method to retrieve a requested entry. |
com.google.gdata.data.BaseEntry |
updateEntry(GDataRequest request,
GDataResponse response)
Service method to update an existing entry in a existing feed context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Storage storage
protected GDataServerRegistry registry
protected final EntryEventMediator entryEventMediator
Constructor Detail |
---|
protected GDataService() throws ServiceException
ServiceException
Method Detail |
---|
public com.google.gdata.data.BaseEntry createEntry(GDataRequest request, GDataResponse response) throws ServiceException
Service
FeedResponse
.
createEntry
in interface Service
request
- -
the current FeedRequestresponse
- -
the current FeedResponse
ServiceException
- -
if the corresponding feed does not exist or the storage can
not be accessedService.createEntry(org.apache.lucene.gdata.server.GDataRequest,
org.apache.lucene.gdata.server.GDataResponse)
public com.google.gdata.data.BaseEntry deleteEntry(GDataRequest request, GDataResponse response) throws ServiceException
Service
FeedResponse
.
deleteEntry
in interface Service
request
- -
the current FeedRequestresponse
- -
the current FeedResponse
ServiceException
- -
if the entry does not exist or the storage can not be
accessedService.deleteEntry(org.apache.lucene.gdata.server.GDataRequest,
org.apache.lucene.gdata.server.GDataResponse)
public com.google.gdata.data.BaseEntry updateEntry(GDataRequest request, GDataResponse response) throws ServiceException
Service
ServiceException
will be thrown if the version to update is outdated. The new entry will
be passed to the indexing component to make the version accessable via
get-queries.
updateEntry
in interface Service
request
- -
the current FeedRequestresponse
- -
the current FeedResponse
ServiceException
- -
if the corresponding feed does not exist, the storage can not
be accessed or the version to update is out of date.Service.updateEntry(org.apache.lucene.gdata.server.GDataRequest,
org.apache.lucene.gdata.server.GDataResponse)
public com.google.gdata.data.BaseFeed getFeed(GDataRequest request, GDataResponse response) throws ServiceException
Service
FeedResponse
instance and can also be accessed
via the FeedResponse
object.
getFeed
in interface Service
request
- -
the current FeedRequestresponse
- -
the current FeedResponse
ServiceException
- -
If the storage can not be accessed or the requested feed does
not exist.Service.getFeed(org.apache.lucene.gdata.server.GDataRequest,
org.apache.lucene.gdata.server.GDataResponse)
public com.google.gdata.data.BaseEntry getSingleEntry(GDataRequest request, GDataResponse response) throws ServiceException
Service
FeedResponse
instance and can also be accessed
via the FeedResponse
object.
getSingleEntry
in interface Service
request
- -
the current FeedRequestresponse
- -
the current FeedResponse
ServiceException
- -
If the storage can not be accessed or the requested entry does
not exist.Service.getSingleEntry(org.apache.lucene.gdata.server.GDataRequest,
org.apache.lucene.gdata.server.GDataResponse)
protected void dynamicElementFeedStragey(com.google.gdata.data.BaseFeed feed, GDataRequest request)
public void close()
Service
close
in interface Service
Service.close()
public Date getFeedLastModified(String feedId) throws ServiceException
Service
getFeedLastModified
in interface Service
feedId
- - the id of the feed
ServiceException
- - if the storage can not be accessedService.getFeedLastModified(java.lang.String)
public Date getEntryLastModified(String entryId, String feedId) throws ServiceException
Service
getEntryLastModified
in interface Service
entryId
- - the id of the entryfeedId
- - the feed id this entry belongs to
ServiceException
- - if the storage can not be accessedService.getEntryLastModified(java.lang.String, java.lang.String)
protected com.google.gdata.data.DateTime getCurrentDateTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |