|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLogEnabled | +--org.apache.james.nntpserver.repository.NNTPRepositoryImpl
NNTP Repository implementation.
Constructor Summary | |
NNTPRepositoryImpl()
|
Method Summary | |
void |
configure(Configuration aConfiguration)
|
void |
contextualize(Context context)
|
void |
createArticle(NNTPLineReader reader)
Creates an article in the repository from the data in the reader. |
NNTPArticle |
getArticleFromID(String id)
Gets the article with the specified id from within the repository. |
Iterator |
getArticlesSince(Date dt)
Gets all articles posted since the specified date |
NNTPGroup |
getGroup(String groupName)
Gets the group with the specified name from within the repository. |
Iterator |
getGroupsSince(Date dt)
Gets all groups added since the specified date |
Iterator |
getMatchedGroups(String wildmat)
Gets all groups that match the wildmat string |
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. |
void |
initialize()
|
boolean |
isReadOnly()
Returns whether this repository is read only. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NNTPRepositoryImpl()
Method Detail |
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
Contextualizable.contextualize(Context)
public void configure(Configuration aConfiguration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
Configurable.configure(Configuration)
public void initialize() throws Exception
initialize
in interface Initializable
Exception
Initializable.initialize()
public boolean isReadOnly()
NNTPRepository
isReadOnly
in interface NNTPRepository
NNTPRepository.isReadOnly()
public NNTPGroup getGroup(String groupName)
NNTPRepository
getGroup
in interface NNTPRepository
groupName
- the name of the group to retrieve
NNTPRepository.getGroup(String)
public NNTPArticle getArticleFromID(String id)
NNTPRepository
getArticleFromID
in interface NNTPRepository
id
- the id of the article to retrieve
NNTPRepository.getArticleFromID(String)
public void createArticle(NNTPLineReader reader)
NNTPRepository
createArticle
in interface NNTPRepository
reader
- the reader that serves as a source for the article dataNNTPRepository.createArticle(NNTPLineReader)
public Iterator getMatchedGroups(String wildmat)
NNTPRepository
getMatchedGroups
in interface NNTPRepository
wildmat
- the wildmat parameter
NNTPRepository.getMatchedGroups(String)
public Iterator getGroupsSince(Date dt)
NNTPRepository
getGroupsSince
in interface NNTPRepository
dt
- the Date that serves as a lower bound
NNTPRepository.getGroupsSince(Date)
public Iterator getArticlesSince(Date dt)
NNTPRepository
getArticlesSince
in interface NNTPRepository
dt
- the Date that serves as a lower bound
NNTPRepository.getArticlesSince(Date)
public String[] getOverviewFormat()
NNTPRepository
getOverviewFormat
in interface NNTPRepository
NNTPRepository.getOverviewFormat()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |