|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DiscussionService
Defines the discussion service.
| Field Summary |
|---|
| Fields inherited from interface net.coalevo.foundation.model.Maintainable |
|---|
DO_MAINTENANCE |
| Method Summary | |
|---|---|
void |
assignForumModerator(Agent caller,
ForumIdentifier fid,
AgentIdentifier aid)
Assigns the forum moderator of a given forum. |
EditableEntry |
beginAnonymousEntryCreate(Agent caller,
ForumIdentifier fid)
Begin to create a new anonymous entry. |
EditableEntry |
beginEntryCreate(Agent caller,
ForumIdentifier fid)
Begin to create a new entry. |
EditableForumDescriptor |
beginForumCreate(Agent caller)
Returns an editable forum descriptor for creation. |
EditableLink |
beginLinkCreate(Agent caller,
ForumIdentifier fid)
Begin to create a new Link. |
EditableEntry |
beginOfficialEntryCreate(Agent caller,
ForumIdentifier fid)
Begin to create a new official entry. |
Subscription |
beginSubscriptionCreate(Agent caller,
ForumIdentifier fid,
AgentIdentifier aid)
Returns a Subscription for subscription. |
void |
cancelEntryCreate(Agent caller,
EditableEntry ee)
Cancel the creation of a new entry. |
void |
cancelForumCreate(Agent caller,
EditableForumDescriptor efd)
Cancels a forum creation. |
void |
cancelLinkCreate(Agent caller,
EditableLink el)
Cancel the creation of a new Link. |
void |
cancelSubscription(Agent caller,
ForumIdentifier fid,
AgentIdentifier aid)
Cancels the subscription of an agent. |
void |
commitEntry(Agent caller,
EditableEntry entry)
Commits a new entry. |
void |
commitForum(Agent caller,
EditableForumDescriptor efd)
Commits a forum creation. |
void |
commitLink(Agent caller,
EditableLink link)
Commits a new Link. |
void |
commitSubscription(Agent caller,
Subscription s)
Commits a Subscription. |
void |
destroyForum(Agent caller,
ForumIdentifier fid)
Destroys a forum and all its related information. |
Content |
getEntryContent(Agent caller,
ForumIdentifier fid,
java.lang.String id)
Returns the actual Content of a given entry or comment. |
int |
getEntryCount(Agent caller,
ForumIdentifier fid)
Returns the number of active entries in the given forum. |
EntryDescriptor |
getEntryDescriptor(Agent caller,
ForumIdentifier fid,
java.lang.String id)
Returns the EntryDescriptor of a given entry. |
ForumDescriptor |
getForumDescriptor(Agent caller,
ForumIdentifier fid)
Returns a forum descriptor by its identifier. |
ForumDescriptor |
getForumDescriptorByMnemonic(Agent caller,
java.lang.String mnemonic)
Returns a forum descriptor by mnemonic. |
ForumDescriptor |
getForumDescriptorByName(Agent caller,
java.lang.String name)
Returns a forum descriptor by name. |
ForumDescriptor |
getForumDescriptorBySequenceNumber(Agent caller,
int seqnum)
Returns a ForumDescriptor by sequence number. |
Content |
getForumInfo(Agent caller,
ForumIdentifier fid)
Returns the forum info of a given forum. |
Link |
getLink(Agent caller,
ForumIdentifier fid,
java.lang.String id)
Returns a Link for the given identifier. |
int |
getLinkCount(Agent caller,
ForumIdentifier fid)
Returns the number of links in a given forum. |
int |
getNewEntryCount(Agent caller,
ForumIdentifier fid,
long timestamp)
Returns the number of new entries in a specific forum. |
Subscription |
getSubscription(Agent caller,
ForumIdentifier fid,
AgentIdentifier aid)
|
boolean |
hasNewEntries(Agent caller,
ForumIdentifier fid,
long timestamp)
Checks if the discussion service has a new entry. |
boolean |
isBanned(Agent caller,
ForumIdentifier fid,
AgentIdentifier aid)
Tests if a given agent is banned. |
boolean |
isInviteOnly(Agent caller,
ForumIdentifier fid)
Tests if a given forum is invite only. |
boolean |
isSubscribed(Agent caller,
ForumIdentifier fid,
AgentIdentifier aid)
Tests if a given agent is subscribed. |
java.util.List<java.lang.String> |
listEntries(Agent caller,
ForumIdentifier fid)
Lists the entries in a given forum. |
java.util.List<java.lang.String> |
listEntries(Agent caller,
ForumIdentifier fid,
int numentries)
Lists a given number of entries in a given forum. |
java.util.List<java.lang.String> |
listEntriesFrom(Agent caller,
ForumIdentifier fid,
long timestamp)
Lists the entries in a given forum from the given timestamp. |
java.util.List<ForumDescriptor> |
listFora(Agent caller)
Lists the existing foras. |
java.util.List<java.lang.String> |
listForaMnemonics(Agent caller)
Lists all forum mnemonics. |
java.util.List<java.lang.String> |
listForaNames(Agent caller)
Lists all forum names. |
java.util.List<ForumIdentifier> |
listForaWithNewEntries(Agent caller,
long timestamp)
Lists all fora with new entries from a given timestamp. |
java.util.List<java.lang.String> |
listLinks(Agent caller,
ForumIdentifier fid)
Returns the links by identifier in a given forum. |
java.util.List<ForumDescriptor> |
listPublicFora(Agent caller)
Lists existing public foras. |
java.util.List<AgentIdentifier> |
listSubscribers(Agent caller,
ForumIdentifier fid)
Lists all the subscribers of a given forum. |
java.util.List<ForumIdentifier> |
listSubscriptions(Agent caller,
AgentIdentifier aid)
|
void |
rebuildEntryIndex(Agent caller)
Rebuilds the entry index. |
void |
removeEntry(Agent caller,
ForumIdentifier fid,
java.lang.String id)
Removes an entry. |
void |
removeLink(Agent caller,
ForumIdentifier fid,
java.lang.String id)
Removes a Link from a given forum. |
java.util.List<java.lang.String> |
resolveIdentifiers(Agent caller,
java.util.List<ForumIdentifier> list,
boolean names)
|
java.util.List<EntryHit> |
searchEntries(Agent caller,
java.lang.String query,
int numhits)
Searches for Entries with a given lucene query. |
void |
updateEntryIndex(Agent caller)
Updates the entry index with entries added after the last index modification. |
void |
updateSubscription(Agent caller,
Subscription s)
Tracks a subscription update and ensures that notification is updated. |
| Methods inherited from interface net.coalevo.foundation.model.Service |
|---|
activate, deactivate, getActions |
| Methods inherited from interface net.coalevo.foundation.model.Identifiable |
|---|
getIdentifier |
| Methods inherited from interface net.coalevo.foundation.model.Maintainable |
|---|
doMaintenance |
| Method Detail |
|---|
EditableForumDescriptor beginForumCreate(Agent caller)
throws java.lang.SecurityException
commitForum(Agent,EditableForumDescriptor)
to commit the update (transaction style).
caller - the requesting Agent.
EditableForumDescriptor
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.commitForum(Agent,EditableForumDescriptor)
void cancelForumCreate(Agent caller,
EditableForumDescriptor efd)
throws java.lang.SecurityException,
java.lang.IllegalStateException
beginForumCreate(Agent)
to begin a create (transaction style).
caller - the requesting Agent.efd - an EditableForumDescriptor.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
java.lang.IllegalStateException - if the transaction was not started
by beginForumCreate(Agent).beginForumCreate(Agent)
void commitForum(Agent caller,
EditableForumDescriptor efd)
throws java.lang.SecurityException,
java.lang.IllegalStateException,
DiscussionServiceException
beginForumCreate(Agent)
to begin a create (transaction style).
caller - the requesting Agent.efd - an EditableForumDescriptor.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
java.lang.IllegalStateException - if the transaction was not started
by beginForumCreate(Agent).
DiscussionServiceException - if an error occurs while executing this action.beginForumCreate(Agent)
ForumDescriptor getForumDescriptor(Agent caller,
ForumIdentifier fid)
throws java.lang.SecurityException,
NoSuchForumException
caller - the requesting Agent.fid - a ForumIdentifier.
ForumDescriptor.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
NoSuchForumException - if a forum with the given name does not exist.
ForumDescriptor getForumDescriptorBySequenceNumber(Agent caller,
int seqnum)
throws java.lang.SecurityException,
NoSuchForumException
ForumDescriptor by sequence number.
caller - the requesting Agent.seqnum - a forum sequence number.
ForumDescriptor.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
NoSuchForumException - if a forum with the given name does not exist.
ForumDescriptor getForumDescriptorByName(Agent caller,
java.lang.String name)
throws java.lang.SecurityException,
NoSuchForumException
caller - the requesting Agent.name - a forum name.
ForumDescriptor.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
NoSuchForumException - if a forum with the given name does not exist.
ForumDescriptor getForumDescriptorByMnemonic(Agent caller,
java.lang.String mnemonic)
throws java.lang.SecurityException,
NoSuchForumException
caller - the requesting Agent.mnemonic - a forum mnemonic.
ForumDescriptor.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
NoSuchForumException - if a forum with the given name does not exist.
java.util.List<java.lang.String> resolveIdentifiers(Agent caller,
java.util.List<ForumIdentifier> list,
boolean names)
caller - the requesting Agent.list - a List of ForumIdentifier instances.names - true if resolve to names, false if to mnemonics.
java.util.List<ForumDescriptor> listFora(Agent caller)
throws java.lang.SecurityException
caller - the requesting Agent.
ForumDescriptor instances.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
java.util.List<ForumDescriptor> listPublicFora(Agent caller)
throws java.lang.SecurityException
caller - the requesting Agent.
ForumDescriptor instances.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.java.util.List<java.lang.String> listForaNames(Agent caller)
caller - the requesting Agent.
java.util.List<java.lang.String> listForaMnemonics(Agent caller)
caller - the requesting Agent.
java.util.List<ForumIdentifier> listForaWithNewEntries(Agent caller,
long timestamp)
throws java.lang.SecurityException,
DiscussionServiceException
caller - the requesting Agent.timestamp - the timestamp as long millis from UTC.
ForumIdentifier instances.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
void destroyForum(Agent caller,
ForumIdentifier fid)
throws java.lang.SecurityException,
DiscussionServiceException
caller - the requesting Agent.fid - a ForumIdentifier.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
void assignForumModerator(Agent caller,
ForumIdentifier fid,
AgentIdentifier aid)
throws java.lang.SecurityException,
DiscussionServiceException,
NoSuchForumException
caller - the requesting Agent.fid - a ForumIdentifier.aid - the AgentIdentifier of the moderator.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
NoSuchForumException - if a forum with the given name does not exist.
Content getForumInfo(Agent caller,
ForumIdentifier fid)
throws java.lang.SecurityException
caller - the requesting Agent.fid - a ForumIdentifier.
Content.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
java.util.List<AgentIdentifier> listSubscribers(Agent caller,
ForumIdentifier fid)
throws java.lang.SecurityException
caller - the requesting Agent.fid - a ForumIdentifier.
AgentIdentifier instances.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
java.util.List<ForumIdentifier> listSubscriptions(Agent caller,
AgentIdentifier aid)
throws java.lang.SecurityException,
DiscussionServiceException
caller - the requesting Agent.aid - an AgentIdentifier.
ForumIdentifier instances.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
Subscription beginSubscriptionCreate(Agent caller,
ForumIdentifier fid,
AgentIdentifier aid)
throws java.lang.SecurityException,
BannedException
Subscription for subscription.
This method should be followed by commitSubscription(Agent,Subscription)
to commit the update (transaction style).
caller - the requesting Agent.fid - a ForumIdentifier.aid - the banned Agent.
Subscription instance.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
BannedException - if the specified agent is banned.commitSubscription(Agent,Subscription)
void commitSubscription(Agent caller,
Subscription s)
throws java.lang.SecurityException,
java.lang.IllegalStateException,
DiscussionServiceException
Subscription.
This method should be preceded by beginSubscriptionCreate(Agent,ForumIdentifier,AgentIdentifier)
to begin acreate (transaction style).
caller - the requesting Agent.s - a Subscription.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
java.lang.IllegalStateException - if the transaction was not started by
beginSubscriptionCreate(Agent,ForumIdentifier,AgentIdentifier).
DiscussionServiceException - if an error occurs while executing this action.beginSubscriptionCreate(Agent,ForumIdentifier,AgentIdentifier)
Subscription getSubscription(Agent caller,
ForumIdentifier fid,
AgentIdentifier aid)
throws java.lang.SecurityException,
DiscussionServiceException,
NoSuchSubscriptionException
caller - the requesting Agent.fid - a ForumIdentifier.aid - the banned Agent.
Subscription instance.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
NoSuchSubscriptionException - if such a subscription does not exist.
void updateSubscription(Agent caller,
Subscription s)
throws java.lang.SecurityException
caller - the requesting Agent.s - a Subscription.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
boolean isSubscribed(Agent caller,
ForumIdentifier fid,
AgentIdentifier aid)
throws java.lang.SecurityException
caller - the requesting Agent.fid - a ForumIdentifier.aid - the identifier of an Agent.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
void cancelSubscription(Agent caller,
ForumIdentifier fid,
AgentIdentifier aid)
throws java.lang.SecurityException,
DiscussionServiceException
caller - the requesting Agent.fid - a ForumIdentifier.aid - the identifier of an Agent.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
boolean isInviteOnly(Agent caller,
ForumIdentifier fid)
throws NoSuchForumException
caller - the requesting Agent.fid - a ForumIdentifier.
NoSuchForumException - if such a forum does not exist.
boolean isBanned(Agent caller,
ForumIdentifier fid,
AgentIdentifier aid)
throws java.lang.SecurityException
caller - the requesting Agent.fid - a ForumIdentifier.aid - the banned Agent.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
EditableLink beginLinkCreate(Agent caller,
ForumIdentifier fid)
throws java.lang.SecurityException,
BannedException,
NotSubscribedException
Link.
This method should be followed by commitLink(Agent,EditableLink)
to commit the update (transaction style).
caller - the requesting Agent.fid - a ForumIdentifier.
EditableLink instance.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
BannedException - if the caller is banned.
NotSubscribedException - if the caller is not subscribed.commitLink(Agent,EditableLink)
void cancelLinkCreate(Agent caller,
EditableLink el)
throws java.lang.SecurityException
Link.
This method should be preceded by beginLinkCreate(Agent,ForumIdentifier)
to begin the create (transaction style).
caller - the requesting Agent.el - an EditableLink instance.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.beginLinkCreate(Agent,ForumIdentifier)
void commitLink(Agent caller,
EditableLink link)
throws java.lang.SecurityException,
java.lang.IllegalStateException,
DiscussionServiceException
Link.
This method should be preceded by beginLinkCreate(Agent,ForumIdentifier)
to begin an update (transaction style).
caller - the requesting Agent.link - an EditableLink instance.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
java.lang.IllegalStateException - if the transaction was not started by
beginLinkCreate(Agent,ForumIdentifier).
DiscussionServiceException - if an error occurs while executing this action.beginLinkCreate(Agent,ForumIdentifier)
Link getLink(Agent caller,
ForumIdentifier fid,
java.lang.String id)
throws java.lang.SecurityException,
DiscussionServiceException
Link for the given identifier.
caller - the requesting Agent.fid - a ForumIdentifier.id - the identifier of the link.
Link instance.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
void removeLink(Agent caller,
ForumIdentifier fid,
java.lang.String id)
throws java.lang.SecurityException,
DiscussionServiceException
Link from a given forum.
This method is supposed to be used by the author of a Link to remove
it him/herself.
caller - the requesting Agent.id - the identifier of the entry.fid - a ForumIdentifier.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
java.util.List<java.lang.String> listLinks(Agent caller,
ForumIdentifier fid)
throws java.lang.SecurityException,
DiscussionServiceException
caller - the requesting Agent.fid - a ForumIdentifier.
Link instances.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
int getLinkCount(Agent caller,
ForumIdentifier fid)
throws java.lang.SecurityException,
DiscussionServiceException
caller - the requesting Agent.fid - a ForumIdentifier.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
EditableEntry beginEntryCreate(Agent caller,
ForumIdentifier fid)
throws java.lang.SecurityException,
BannedException,
NotSubscribedException
commitEntry(Agent,EditableEntry)
to commit the create (transaction style).
caller - the requesting Agent.fid - a ForumIdentifier.
EditableEntry instance.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
BannedException - if the caller is banned.
NotSubscribedException - if the caller is not subscribed.commitEntry(Agent,EditableEntry)
EditableEntry beginOfficialEntryCreate(Agent caller,
ForumIdentifier fid)
throws java.lang.SecurityException
commitEntry(Agent,EditableEntry)
to commit the create (transaction style).
caller - the requesting Agent.fid - a ForumIdentifier.
EditableEntry instance.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.commitEntry(Agent,EditableEntry)
EditableEntry beginAnonymousEntryCreate(Agent caller,
ForumIdentifier fid)
throws java.lang.SecurityException,
AnonymousNotAllowedException
commitEntry(Agent,EditableEntry)
to commit the create (transaction style).
caller - the requesting Agent.fid - a ForumIdentifier.
EditableEntry instance.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
AnonymousNotAllowedException - if anonymous entries are not allowed in the
specified forum.commitEntry(Agent,EditableEntry)
void commitEntry(Agent caller,
EditableEntry entry)
throws java.lang.SecurityException,
java.lang.IllegalStateException,
DiscussionServiceException
beginEntryCreate(Agent,ForumIdentifier)
to begin an update or beginOfficialEntryCreate(Agent,ForumIdentifier) to begin
a create (transaction style).
caller - the requesting Agent.entry - an EditableEntry.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
java.lang.IllegalStateException - if the transaction was not started either by
beginEntryCreate(Agent,ForumIdentifier) or by
beginOfficialEntryCreate(Agent,ForumIdentifier).
DiscussionServiceException - if an error occurs while executing this action.beginEntryCreate(Agent,ForumIdentifier),
beginOfficialEntryCreate(Agent,ForumIdentifier)
void cancelEntryCreate(Agent caller,
EditableEntry ee)
throws java.lang.SecurityException
beginEntryCreate(Agent,ForumIdentifier)
to begin the create (transaction style).
caller - the requesting Agent.ee - an EditableEntry instance.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.beginEntryCreate(Agent,ForumIdentifier)
void removeEntry(Agent caller,
ForumIdentifier fid,
java.lang.String id)
throws java.lang.SecurityException,
DiscussionServiceException
caller - the requesting Agent.fid - a ForumIdentifier.id - the identifier of the entry.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
java.util.List<java.lang.String> listEntries(Agent caller,
ForumIdentifier fid)
throws java.lang.SecurityException,
DiscussionServiceException
caller - the requesting Agent.fid - a ForumIdentifier.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
java.util.List<java.lang.String> listEntriesFrom(Agent caller,
ForumIdentifier fid,
long timestamp)
throws java.lang.SecurityException,
DiscussionServiceException
caller - the requesting Agent.fid - a ForumIdentifier.timestamp - the timestamp of the last read message.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
java.util.List<java.lang.String> listEntries(Agent caller,
ForumIdentifier fid,
int numentries)
throws java.lang.SecurityException,
DiscussionServiceException
Note that the entries are ordered most recent first, and the number of entries returned is from the most recent backwards in approval time.
caller - the requesting Agent.fid - a ForumIdentifier.numentries - the number of messages.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
java.util.List<EntryHit> searchEntries(Agent caller,
java.lang.String query,
int numhits)
throws java.lang.SecurityException,
DiscussionServiceException
Note that the search will always be restricted to the actually subscribed fora. Also the number of hits should be ranged to make sure you don't get too much hits. You may restrict the forum yourself to a single, as long as it is subscribed.
caller - the requesting Agent.query - the query.numhits - the number of max hits to be returned.
EntryHit instances identifying the hit.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
void rebuildEntryIndex(Agent caller)
throws java.lang.SecurityException,
DiscussionServiceException
caller - the requesting Agent.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
void updateEntryIndex(Agent caller)
throws java.lang.SecurityException,
DiscussionServiceException
caller - the requesting Agent.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
int getEntryCount(Agent caller,
ForumIdentifier fid)
throws java.lang.SecurityException,
DiscussionServiceException
caller - the requesting Agent.fid - a ForumIdentifier.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
boolean hasNewEntries(Agent caller,
ForumIdentifier fid,
long timestamp)
throws java.lang.SecurityException,
DiscussionServiceException
caller - the requesting Agent.timestamp - long in millis UTC.fid - a ForumIdentifier.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
int getNewEntryCount(Agent caller,
ForumIdentifier fid,
long timestamp)
throws java.lang.SecurityException,
DiscussionServiceException
Note that this is a high cost operation compared
to hasNewEntries(Agent,ForumIdentifier,long).
caller - the requesting Agent.timestamp - long in millis UTC.fid - a ForumIdentifier.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
EntryDescriptor getEntryDescriptor(Agent caller,
ForumIdentifier fid,
java.lang.String id)
throws java.lang.SecurityException,
DiscussionServiceException
EntryDescriptor of a given entry.
caller - the requesting Agent.fid - a ForumIdentifier.id - the identifier of the entry.
EntryDescriptor instance.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
not authorized.
Content getEntryContent(Agent caller,
ForumIdentifier fid,
java.lang.String id)
throws java.lang.SecurityException,
DiscussionServiceException
Content of a given entry or comment.
caller - the requesting Agent.fid - a ForumIdentifier.id - the identifier of the entry.
Content instance to access the content.
java.lang.SecurityException - if the calling Agent is not authentic or
not authorized.
DiscussionServiceException - if an error occurs while executing this action.
not authorized.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||