FileDocCategorySizeDatePackage
NNTPRepository.javaAPI DocApache James 2.3.13228Fri Jan 12 12:56:24 GMT 2007org.apache.james.nntpserver.repository

NNTPRepository

public interface NNTPRepository
Abstraction of entire NNTP Repository.

Fields Summary
Constructors Summary
Methods Summary
public voidcreateArticle(java.io.InputStream in)
Creates an article in the repository from the data in the reader. TODO: Change this to be more OO and pass in a MimeMessage

param
in the InputStream that serves as a source for the message data.

public NNTPArticlegetArticleFromID(java.lang.String id)
Gets the article with the specified id from within the repository.

param
id the id of the article to retrieve
return
the article

public java.util.IteratorgetArticlesSince(java.util.Date dt)
Gets all articles posted since the specified date

param
dt the Date that serves as a lower bound
return
an iterator containing the articles retrieved

public NNTPGroupgetGroup(java.lang.String groupName)
Gets the group with the specified name from within the repository.

param
groupName the name of the group to retrieve
return
the group

public java.util.IteratorgetGroupsSince(java.util.Date dt)
Gets all groups added since the specified date

param
dt the Date that serves as a lower bound
return
an iterator containing the groups retrieved

public java.util.IteratorgetMatchedGroups(java.lang.String wildmat)
Gets all groups that match the wildmat string

param
wildmat the wildmat parameter
return
an iterator containing the groups retrieved

public java.lang.String[]getOverviewFormat()
Returns the ordered array of header names (including the trailing colon on each) returned in overview format for articles stored in this repository.

public booleanisReadOnly()
Returns whether this repository is read only.

return
whether this repository is read only