public class LuceneConfiguration
extends java.lang.Object
Constructor and Description |
---|
LuceneConfiguration()
Creates an empty not enabled lucene configuration
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List |
getFileRules()
Returns the file rules of this configuration as list of
LuceneIndexFileRule objects |
java.util.List |
getItemRules()
Returns the item rules of this configuration as list of
LuceneIndexItemRule objects |
LuceneIndexFileRule |
getMatchingFileRule(java.lang.String fileName)
Returns the matching file rule for a given file name.
|
LuceneIndexItemRule |
getMatchingItemRule(java.lang.String itemName)
Returns the matching item rule for a given item name.
|
boolean |
isEnabled()
Returns if the lucene index is enabled for this database
|
void |
setEnabled(boolean enabled)
Sets if the lucene index is enabled for this database
|
void |
setFileRules(java.util.List fileRules)
Sets the file rules of this configuration.
|
void |
setItemRules(java.util.List rules)
Sets the item rules of this configuration.
|
public LuceneConfiguration()
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- public java.util.List getItemRules()
LuceneIndexItemRule
objectspublic void setItemRules(java.util.List rules)
rules
- A list of LuceneIndexItemRule
objectspublic java.util.List getFileRules()
LuceneIndexFileRule
objectspublic void setFileRules(java.util.List fileRules)
fileRules
- A list of LuceneIndexFileRule
objectspublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public LuceneIndexItemRule getMatchingItemRule(java.lang.String itemName)
itemName
- The item namepublic LuceneIndexFileRule getMatchingFileRule(java.lang.String fileName)
fileName
- The file name