public class CmsXmlAddADESearch extends A_CmsXmlSearch
限定符和类型 | 类和说明 |
---|---|
static class |
CmsXmlAddADESearch.CmsAddGalleryModuleIndexSourceAction
Action to add the gallery modules index source.
|
static class |
CmsXmlAddADESearch.CmsAddIndexSourceResourceAction
An XML update action which adds the /system/galleries folder to the gallery index source.
|
static class |
CmsXmlAddADESearch.CmsIndexSourceTypeUpdateAction
Action for updating the office document types in the index sources.
|
构造器和说明 |
---|
CmsXmlAddADESearch() |
限定符和类型 | 方法和说明 |
---|---|
protected java.lang.String |
buildXpathForIndexSource(java.lang.String name)
Creates an xpath for an index source.
|
static org.dom4j.Element |
createElementFromXml(java.lang.String xml)
Creates a dom4j element from an XML string.
|
protected boolean |
executeUpdate(org.dom4j.Document document,
java.lang.String xpath,
boolean forReal)
Executes the adding/updating changes on the given document.
|
protected java.lang.String |
getCommonPath()
Returns a parent path that is common for all nodes to modify.
|
java.lang.String |
getName()
Returns the nice name for the change.
|
protected java.util.List<java.lang.String> |
getXPathsToUpdate()
Returns a list of xpaths for the nodes to add/update.
|
createAnalyzer, createDocType, createField, createFieldConfig, createFieldMapping, createIndex, createIndexSource, getXmlFilename
execute, getCodeToChange, getXPathsToRemove, prepareDoc, updateDoc, validate
public static org.dom4j.Element createElementFromXml(java.lang.String xml) throws org.dom4j.DocumentException
xml
- the xml stringorg.dom4j.DocumentException
- if the XML parsing failspublic java.lang.String getName()
I_CmsSetupXmlUpdate
I_CmsSetupXmlUpdate.getName()
protected java.lang.String buildXpathForIndexSource(java.lang.String name)
name
- the name of the index sourceprotected boolean executeUpdate(org.dom4j.Document document, java.lang.String xpath, boolean forReal)
A_CmsSetupXmlUpdate
Only needs to be overriden if A_CmsSetupXmlUpdate.getXPathsToUpdate()
is not empty.
executeUpdate
在类中 A_CmsSetupXmlUpdate
document
- the document to apply the changes toxpath
- the xpath to execute the changes forforReal
- is false
, it is only on a empty doc to display the changes to the userA_CmsSetupXmlUpdate.executeUpdate(org.dom4j.Document, java.lang.String, boolean)
protected java.lang.String getCommonPath()
A_CmsSetupXmlUpdate
getCommonPath
在类中 A_CmsSetupXmlUpdate
A_CmsSetupXmlUpdate.getCommonPath()
protected java.util.List<java.lang.String> getXPathsToUpdate()
A_CmsSetupXmlUpdate
getXPathsToUpdate
在类中 A_CmsSetupXmlUpdate
A_CmsSetupXmlUpdate.getXPathsToUpdate()