|
||||||||||
| 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 |
BaseEntry |
createEntry(GDataRequest request,
GDataResponse response)
Service method to create an entry in an already created and existing feed. |
BaseEntry |
deleteEntry(GDataRequest request,
GDataResponse response)
Service Method to delete an entry specified in the given FeedRequest. |
protected void |
dynamicElementFeedStragey(BaseFeed feed,
GDataRequest request)
|
protected DateTime |
getCurrentDateTime()
|
Date |
getEntryLastModified(String entryId,
String feedId)
Retruns the date of the last modification for the given entry id |
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 |
BaseEntry |
getSingleEntry(GDataRequest request,
GDataResponse response)
Service method to retrieve a requested entry. |
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 BaseEntry createEntry(GDataRequest request,
GDataResponse response)
throws ServiceException
ServiceFeedResponse.
createEntry in interface Servicerequest - -
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 BaseEntry deleteEntry(GDataRequest request,
GDataResponse response)
throws ServiceException
ServiceFeedResponse.
deleteEntry in interface Servicerequest - -
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 BaseEntry updateEntry(GDataRequest request,
GDataResponse response)
throws ServiceException
ServiceServiceException
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 Servicerequest - -
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 BaseFeed getFeed(GDataRequest request,
GDataResponse response)
throws ServiceException
ServiceFeedResponse instance and can also be accessed
via the FeedResponse object.
getFeed in interface Servicerequest - -
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 BaseEntry getSingleEntry(GDataRequest request,
GDataResponse response)
throws ServiceException
ServiceFeedResponse instance and can also be accessed
via the FeedResponse object.
getSingleEntry in interface Servicerequest - -
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(BaseFeed feed,
GDataRequest request)
public void close()
Service
close in interface ServiceService.close()
public Date getFeedLastModified(String feedId)
throws ServiceException
Service
getFeedLastModified in interface ServicefeedId - - 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 ServiceentryId - - 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 DateTime getCurrentDateTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||