public class CmsRepositoryFilter extends java.lang.Object
It filters path names, depending on the configuration made.
Constructor and Description |
---|
CmsRepositoryFilter()
Default constructor initializing member variables.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilterRule(java.lang.String rule)
Adds a new filter rule (regex) to the filter.
|
java.util.List<java.util.regex.Pattern> |
getFilterRules()
Returns the filterRules.
|
java.lang.String |
getType()
Returns the type.
|
void |
initConfiguration()
Initializes a configuration after all parameters have been added.
|
boolean |
isFiltered(java.lang.String path)
Checks if a path is filtered out of the filter or not.
|
void |
setFilterRules(java.util.List<java.util.regex.Pattern> filterRules)
Sets the filterRules.
|
void |
setType(java.lang.String type)
Sets the type.
|
public CmsRepositoryFilter()
public void addFilterRule(java.lang.String rule)
rule
- the rule (regex) to addpublic java.util.List<java.util.regex.Pattern> getFilterRules()
public java.lang.String getType()
public void initConfiguration() throws CmsConfigurationException
CmsConfigurationException
- if something goes wrongpublic boolean isFiltered(java.lang.String path)
path
- the path of a resource to checkpublic void setFilterRules(java.util.List<java.util.regex.Pattern> filterRules)
filterRules
- the filterRules to setpublic void setType(java.lang.String type)
type
- the type to set