public abstract class A_CmsXmlSearch extends A_CmsSetupXmlUpdate
构造器和说明 |
---|
A_CmsXmlSearch() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
createAnalyzer(org.dom4j.Document document,
java.lang.String xpath,
java.lang.Class<CmsGallerySearchAnalyzer> clazz,
java.lang.String locale)
Creates a new analyzer node.
|
protected void |
createDocType(org.dom4j.Document document,
java.lang.String xpath,
java.lang.String name,
java.lang.Class<?> clazz,
java.lang.String[] mimetypes,
java.lang.String[] restypes)
Creates a new document type node.
|
protected void |
createField(org.dom4j.Document document,
java.lang.String xpath,
CmsLuceneField field)
Creates a new field node.
|
void |
createFieldConfig(org.dom4j.Document document,
java.lang.String xpath,
CmsSearchFieldConfiguration fieldConf,
java.lang.Class<?> clazz)
Creates a new fieldconfiguration node.
|
protected void |
createFieldMapping(org.dom4j.Document document,
java.lang.String xpath,
CmsSearchFieldMapping mapping)
Creates a new mapping node.
|
protected void |
createIndex(org.dom4j.Document document,
java.lang.String xpath,
java.lang.Class<?> clazz,
java.lang.String name,
java.lang.String rebuild,
java.lang.String project,
java.lang.String locale,
java.lang.String configuration,
java.lang.String[] sources)
Creates a new index node.
|
protected void |
createIndexSource(org.dom4j.Document document,
java.lang.String xpath,
java.lang.String name,
java.lang.Class<CmsVfsIndexer> clazz,
java.lang.String[] resources,
java.lang.String[] doctypes)
Creates a new indexsource node.
|
java.lang.String |
getXmlFilename()
Returns the affected xml configuration file name.
|
createElementFromXml, execute, executeUpdate, getCodeToChange, getCommonPath, getXPathsToRemove, getXPathsToUpdate, prepareDoc, updateDoc, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public void createFieldConfig(org.dom4j.Document document, java.lang.String xpath, CmsSearchFieldConfiguration fieldConf, java.lang.Class<?> clazz)
document
- the document to modifyxpath
- the xpath to the fieldconfiguration, ie opencms/search/fieldconfigurations/fieldconfiguration[name='...']
fieldConf
- the field configurationclazz
- the optional class attribute valuepublic java.lang.String getXmlFilename()
I_CmsSetupXmlUpdate
I_CmsSetupXmlUpdate.getXmlFilename()
protected void createAnalyzer(org.dom4j.Document document, java.lang.String xpath, java.lang.Class<CmsGallerySearchAnalyzer> clazz, java.lang.String locale)
document
- the document to modifyxpath
- the xpath to the non-existing index (ie. /opencms/search/analyzers/analyzer[class='...']
)clazz
- the class attribute valuelocale
- the locale attribute valueprotected void createDocType(org.dom4j.Document document, java.lang.String xpath, java.lang.String name, java.lang.Class<?> clazz, java.lang.String[] mimetypes, java.lang.String[] restypes)
document
- the document to modifyxpath
- the xpath to the index source, ie /opencms/search/documenttypes/documenttype[name='...']
name
- the name attribute valueclazz
- the class attribute valuemimetypes
- the list of mimetypesrestypes
- the list of resource typesprotected void createField(org.dom4j.Document document, java.lang.String xpath, CmsLuceneField field)
document
- the document to modifyxpath
- the xpath to the field, ie opencms/search/fieldconfigurations/fieldconfiguration[name='...']/fields/field[@name="..."]
field
- the fieldprotected void createFieldMapping(org.dom4j.Document document, java.lang.String xpath, CmsSearchFieldMapping mapping)
document
- the document to modifyxpath
- the xpath to the field mapping, ie opencms/search/fieldconfigurations/fieldconfiguration[name='...']/fields/field[@name="..."]/mappings/mapping[@type='...']
mapping
- the field mappingprotected void createIndex(org.dom4j.Document document, java.lang.String xpath, java.lang.Class<?> clazz, java.lang.String name, java.lang.String rebuild, java.lang.String project, java.lang.String locale, java.lang.String configuration, java.lang.String[] sources)
document
- the document to modifyxpath
- the xpath to the non-existing index (ie. /opencms/search/indexes/index[name='...']
)clazz
- the optional class attributename
- the name attribute valuerebuild
- the rebuild attribute valueproject
- the project attribute valuelocale
- the locale attribute valueconfiguration
- the optional configuration attribute valuesources
- the list of referenced sourcesprotected void createIndexSource(org.dom4j.Document document, java.lang.String xpath, java.lang.String name, java.lang.Class<CmsVfsIndexer> clazz, java.lang.String[] resources, java.lang.String[] doctypes)
document
- the document to modifyxpath
- the xpath to the index source, ie /opencms/search/indexsources/indexsource[name='...']
name
- the name attribute valueclazz
- the class attribute valueresources
- the list of resourcesdoctypes
- the list of document types