org.brains2b.coffee.plugin.search
Class FilterInNewsGroup
java.lang.Object
org.brains2b.coffee.plugin.search.FilterInNewsGroup
- All Implemented Interfaces:
- NewsGroup, NNTPMessage
public class FilterInNewsGroup
- extends java.lang.Object
- implements NewsGroup
Implementation of NewsGroup to add articles only when they
match the values in the filters
- Version:
- 0.90 [25-02-2008]
- Author:
- dennis@brains2b.nl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilterInNewsGroup
public FilterInNewsGroup(NewsGroup group,
java.util.List filters)
- Constructor
- Parameters:
group
- NewsGroup
the group to search infilters
- List, list of MessageFilter
addArticle
public void addArticle(Article a)
- Specified by:
addArticle
in interface NewsGroup
addHeader
public void addHeader(int id,
java.lang.String s)
- Specified by:
addHeader
in interface NNTPMessage
addLine
public void addLine(java.lang.String s)
- Specified by:
addLine
in interface NNTPMessage
endMessage
public void endMessage()
- Specified by:
endMessage
in interface NNTPMessage
getArticleList
public java.util.List getArticleList()
- Specified by:
getArticleList
in interface NewsGroup
getEstimate
public int getEstimate()
- Specified by:
getEstimate
in interface NewsGroup
getFirst
public int getFirst()
- Specified by:
getFirst
in interface NewsGroup
getId
public java.lang.String getId()
- Specified by:
getId
in interface NNTPMessage
getLast
public int getLast()
- Specified by:
getLast
in interface NewsGroup
getLastUpdated
public java.util.Date getLastUpdated()
- Specified by:
getLastUpdated
in interface NewsGroup
getName
public java.lang.String getName()
- Specified by:
getName
in interface NewsGroup
getSize
public int getSize()
- Specified by:
getSize
in interface NNTPMessage
getType
public int getType()
- Specified by:
getType
in interface NNTPMessage
hasContent
public boolean hasContent()
- Specified by:
hasContent
in interface NNTPMessage
isAllowPost
public boolean isAllowPost()
- Specified by:
isAllowPost
in interface NewsGroup
isHeaderSet
public boolean isHeaderSet()
- Specified by:
isHeaderSet
in interface NNTPMessage
removeArticle
public void removeArticle(Article a)
- Specified by:
removeArticle
in interface NewsGroup
setAllowPost
public void setAllowPost(boolean allowPost)
- Specified by:
setAllowPost
in interface NewsGroup
setArticleList
public void setArticleList(java.util.List articleList)
- Specified by:
setArticleList
in interface NewsGroup
setEstimate
public void setEstimate(int estimate)
- Specified by:
setEstimate
in interface NewsGroup
setFirst
public void setFirst(int first)
- Specified by:
setFirst
in interface NewsGroup
setLast
public void setLast(int last)
- Specified by:
setLast
in interface NewsGroup
setLastUpdated
public void setLastUpdated(java.util.Date lastUpdated)
- Specified by:
setLastUpdated
in interface NewsGroup
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interface NewsGroup
writeMessage
public void writeMessage(org.brains2b.saxo.SAXWriter sw)
throws org.xml.sax.SAXException
- Specified by:
writeMessage
in interface NNTPMessage
- Throws:
org.xml.sax.SAXException
writeList
public void writeList(org.brains2b.saxo.SAXWriter sw)
throws org.xml.sax.SAXException
- Specified by:
writeList
in interface NewsGroup
- Throws:
org.xml.sax.SAXException
getFilters
public java.util.List getFilters()