|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.gdata.server.GDataService
org.apache.lucene.gdata.server.administration.GDataAdminService
public class GDataAdminService
default implementation of the
AdminService
interface.
Field Summary |
---|
Fields inherited from class org.apache.lucene.gdata.server.GDataService |
---|
entryEventMediator, registry, storage |
Constructor Summary | |
---|---|
GDataAdminService()
|
Method Summary | |
---|---|
void |
createAccount(GDataAccount account)
Creates a new account accout. |
void |
createFeed(ServerBaseFeed feed,
GDataAccount account)
Creates a new feed instance. |
void |
deleteAccount(GDataAccount account)
Deletes the given account from the storage. |
void |
deleteFeed(ServerBaseFeed feed)
Deletes the given feed and all containing entries from the storage. |
GDataAccount |
getAccount(String accountName)
Returns the account for the given account name or null if the account does not exist |
GDataAccount |
getFeedOwningAccount(String feedId)
Returns the account associated with the feed for the given feed id |
void |
updateAccount(GDataAccount account)
Updates the given account if the account already exists. |
void |
updateFeed(ServerBaseFeed feed,
GDataAccount account)
Updates the given feed |
Methods inherited from class org.apache.lucene.gdata.server.GDataService |
---|
close, createEntry, deleteEntry, dynamicElementFeedStragey, getCurrentDateTime, getEntryLastModified, getFeed, getFeedLastModified, getSingleEntry, updateEntry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.lucene.gdata.server.Service |
---|
close, createEntry, deleteEntry, getEntryLastModified, getFeed, getFeedLastModified, getSingleEntry, updateEntry |
Constructor Detail |
---|
public GDataAdminService() throws ServiceException
ServiceException
Method Detail |
---|
public void createFeed(ServerBaseFeed feed, GDataAccount account) throws ServiceException
AdminService
createFeed
in interface AdminService
feed
- -
the feed to createaccount
- - the account who own this feed
ServiceException
- -
if the feed can not be createdAdminService.createFeed(org.apache.lucene.gdata.data.ServerBaseFeed,
org.apache.lucene.gdata.data.GDataAccount)
public void updateFeed(ServerBaseFeed feed, GDataAccount account) throws ServiceException
AdminService
updateFeed
in interface AdminService
feed
- -
the feed to updateaccount
- - the account who own this feed
ServiceException
- -
if the feed can not be updated or does not exist.AdminService.updateFeed(org.apache.lucene.gdata.data.ServerBaseFeed,
org.apache.lucene.gdata.data.GDataAccount)
public void deleteFeed(ServerBaseFeed feed) throws ServiceException
AdminService
deleteFeed
in interface AdminService
feed
- -
the feed to deltete
ServiceException
- -
if the feed can not be deleted or does not existAdminService.deleteFeed(org.apache.lucene.gdata.data.ServerBaseFeed)
public void createAccount(GDataAccount account) throws ServiceException
AdminService
createAccount
in interface AdminService
account
- -
the account to create
ServiceException
- -
if the account can not be created or the account does already
exist.AdminService.createAccount(org.apache.lucene.gdata.data.GDataAccount)
public void deleteAccount(GDataAccount account) throws ServiceException
AdminService
deleteAccount
in interface AdminService
account
- the account to delete
ServiceException
- -
if the account does not exist or the account can not be deletedAdminService.deleteAccount(org.apache.lucene.gdata.data.GDataAccount)
public void updateAccount(GDataAccount account) throws ServiceException
AdminService
updateAccount
in interface AdminService
account
- - the account to update
ServiceException
- - if the account can not be updated or the account does not existAdminService.updateAccount(org.apache.lucene.gdata.data.GDataAccount)
public GDataAccount getAccount(String accountName) throws ServiceException
AdminService
null
if the account does not exist
getAccount
in interface AdminService
accountName
- - account name
null
if the account does not exist
ServiceException
- - if the account can not be accessedAdminService.getAccount(java.lang.String)
public GDataAccount getFeedOwningAccount(String feedId) throws ServiceException
AdminService
getFeedOwningAccount
in interface AdminService
feedId
- - the feed id
null
if there is no feed for the given feed Id
ServiceException
- - if the storage can not be accessedAdminService.getFeedOwningAccount(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |