|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.util.entity.AbstractNamedEntity
org.torweg.pulse.util.entity.AbstractNamableEntity
org.torweg.pulse.site.content.filter.Filter
@Entity public class Filter
allows the filtering of ContentLocalizationMaps.
A Filter contains a set of FilterRules which describe
characteristics of the filtered ContentLocalizationMap s. Each
FilterRule has a set of FilterRuleProperty which describe the
pecularity of the characteristic.
For each ContentLocalizationMap a FilterMatches is added to
the Filter which maps the ContentLocalizationMap to its
matching FilterRuleProperty objects.
| Constructor Summary | |
|---|---|
protected |
Filter()
Deprecated. |
|
Filter(java.lang.String n)
creates a new ContentFilter with the given name. |
| Method Summary | |
|---|---|
boolean |
addMatches(FilterMatches m)
adds a FilterMatches to the Filter. |
void |
addMatches(int index, FilterMatches element)
adds a new FilterMatches at the given index. |
boolean |
addRule(FilterRule r)
adds a FilterRule to the Filter. |
void |
addRule(int index, FilterRule element)
adds a new FilterRule at the given index. |
void |
clearMatches()
removes all FilterMatches from the Filter. |
void |
clearRules()
removes all FilterRules from the Filter. |
boolean |
containsMatches(FilterMatches m)
checks, whether the Filter contains the given FilterMatches. |
boolean |
containsRule(FilterRule r)
checks, whether the Filter contains the given FilterRule. |
org.jdom.Element |
deserializeToJDOM()
returns a JDOM representation of the Filter. |
java.util.List<FilterMatches> |
getMatches()
returns the FilterMatchess of the Filter. |
java.util.List<FilterRule> |
getRules()
returns the FilterRules of the Filter. |
boolean |
isMatchesEmpty()
returns whether the Filter contains FilterMatchess. |
boolean |
isReferenceDurationFilter()
Returns the referenceDurationFilter of the Filter which
indicates whether content filtering is enabled for reference dates as
well. |
boolean |
isRequireSitemapNode()
returns whether a visible SitemapNode is required for a match to
be displayed. |
boolean |
isRulesEmpty()
returns whether the Filter contains FilterRule s. |
int |
matchesSize()
returns the number of FilterMatchess in the Filter. |
boolean |
removeMatches(FilterMatches m)
removes the given FilterMatches from the Filter . |
FilterMatches |
removeMatches(int index)
removes the FilterMatches at the given index. |
boolean |
removeRule(FilterRule r)
removes the given FilterRule from the Filter. |
FilterRule |
removeRule(int index)
removes the FilterRule at the given index. |
int |
rulesSize()
returns the number of FilterRules in the Filter . |
FilterMatches |
setMatches(int index, FilterMatches element)
sets the given FilterMatches at the given index. |
void |
setReferenceDurationFilter(boolean isReferenceDurationFilter)
Sets the referenceDurationFilter for the Filter. |
void |
setRequireSitemapNode(boolean rsm)
sets whether a visible SitemapNode is required for a match to be
displayed. |
FilterRule |
setRule(int index, FilterRule element)
sets the given FilterRule at the given index. |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractNamableEntity |
|---|
setName |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractNamedEntity |
|---|
getName |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity |
|---|
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.torweg.pulse.util.INameable |
|---|
setName |
| Methods inherited from interface org.torweg.pulse.util.INamed |
|---|
getName |
| Constructor Detail |
|---|
@Deprecated protected Filter()
public Filter(java.lang.String n)
ContentFilter with the given name.
n - the name| Method Detail |
|---|
public final void setRequireSitemapNode(boolean rsm)
SitemapNode is required for a match to be
displayed.
rsm - true, if a visible sitemap node is requiredpublic final boolean isRequireSitemapNode()
SitemapNode is required for a match to
be displayed.
true, if and only if a visible sitemap node is required.
Otherwise false.public final java.util.List<FilterMatches> getMatches()
FilterMatchess of the Filter.
public final boolean addMatches(FilterMatches m)
FilterMatches to the Filter.
m - the matches to add
true, if the matches has been addedSet.add(java.lang.Object)public final void addMatches(int index, FilterMatches element)
FilterMatches at the given index.
index - the indexelement - the matches to addList.add(int, java.lang.Object)public final FilterMatches setMatches(int index, FilterMatches element)
FilterMatches at the given index.
index - the indexelement - the matches to be set
List.set(int, java.lang.Object)public final void clearMatches()
FilterMatches from the Filter.
Set.clear()public final boolean containsMatches(FilterMatches m)
Filter contains the given FilterMatches.
m - the matches to look for
true, if the Filter contains the given FilterMatchesSet.contains(java.lang.Object)public final boolean isMatchesEmpty()
Filter contains FilterMatchess.
true, if the Filter does not contain any FilterMatchessSet.isEmpty()public final boolean removeMatches(FilterMatches m)
FilterMatches from the Filter .
m - the matches to remove
true, if the FilterMatches has been removedSet.remove(java.lang.Object)public final FilterMatches removeMatches(int index)
FilterMatches at the given index.
index - the index
List.remove(int)public final int matchesSize()
FilterMatchess in the Filter.
FilterMatchess in the FilterSet.size()public final java.util.List<FilterRule> getRules()
FilterRules of the Filter.
public final boolean addRule(FilterRule r)
FilterRule to the Filter.
r - the rule to add
true, if the rule has been addedSet.add(java.lang.Object)public final void addRule(int index, FilterRule element)
FilterRule at the given index.
index - the indexelement - the rule to addList.add(int, java.lang.Object)public final FilterRule setRule(int index, FilterRule element)
FilterRule at the given index.
index - the indexelement - the rule to be set
List.set(int, java.lang.Object)public final void clearRules()
FilterRules from the Filter.
Set.clear()public final boolean containsRule(FilterRule r)
Filter contains the given FilterRule.
r - the rule to look for
true, if the Filter contains the given FilterRuleSet.contains(java.lang.Object)public final boolean isRulesEmpty()
Filter contains FilterRule s.
true, if the Filter does not contain any FilterRulesSet.isEmpty()public final boolean removeRule(FilterRule r)
FilterRule from the Filter.
r - the rule to remove
true, if the FilterRule has been removedSet.remove(java.lang.Object)public final FilterRule removeRule(int index)
FilterRule at the given index.
index - the index
List.remove(int)public final int rulesSize()
FilterRules in the Filter .
FilterRules in the FilterSet.size()public final boolean isReferenceDurationFilter()
Filter which
indicates whether content filtering is enabled for reference dates as
well.
public final void setReferenceDurationFilter(boolean isReferenceDurationFilter)
Filter.
isReferenceDurationFilter - the referenceDurationFilter to setpublic org.jdom.Element deserializeToJDOM()
Filter.
deserializeToJDOM in interface JDOMableFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||