|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdminService
The AdminService interface extends the Service interface to serve common
administrator requests. Common users can not create feed or user instances.
This interface provides all actions for create, delete or update Users and
Feeds. Each Feed has an associated Feed - Name which acts as an ID. Feed will
be identified by the feed name e.g. Source.getId()
User accounts are supposed to have a unique username attribute as the username acts as a primary key for the storage
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 account)
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 interface org.apache.lucene.gdata.server.Service |
---|
close, createEntry, deleteEntry, getEntryLastModified, getFeed, getFeedLastModified, getSingleEntry, updateEntry |
Method Detail |
---|
void createFeed(ServerBaseFeed feed, GDataAccount account) throws ServiceException
feed
- -
the feed to createaccount
- - the account who own this feed
ServiceException
- -
if the feed can not be createdvoid updateFeed(ServerBaseFeed feed, GDataAccount account) throws ServiceException
feed
- -
the feed to updateaccount
- - the account who own this feed
ServiceException
- -
if the feed can not be updated or does not exist.void deleteFeed(ServerBaseFeed feed) throws ServiceException
feed
- -
the feed to deltete
ServiceException
- -
if the feed can not be deleted or does not existvoid createAccount(GDataAccount account) throws ServiceException
account
- -
the account to create
ServiceException
- -
if the account can not be created or the account does already
exist.void deleteAccount(GDataAccount account) throws ServiceException
account
- the account to delete
ServiceException
- -
if the account does not exist or the account can not be deletedvoid updateAccount(GDataAccount account) throws ServiceException
account
- - the account to update
ServiceException
- - if the account can not be updated or the account does not existGDataAccount getAccount(String account) throws ServiceException
null
if the account does not exist
account
- - account name
null
if the account does not exist
ServiceException
- - if the account can not be accessedGDataAccount getFeedOwningAccount(String feedId) throws ServiceException
feedId
- - the feed id
null
if there is no feed for the given feed Id
ServiceException
- - if the storage can not be accessed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |