public class CmsXmlUpdateLocalizationKeys extends A_CmsXmlWorkplace
| 构造器和说明 |
|---|
CmsXmlUpdateLocalizationKeys() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
java.util.List<java.lang.String> |
getNewKeys()
Returns the new Keys.
|
java.util.List<java.lang.String> |
getOldKeys()
Returns the old Keys.
|
protected java.util.List<java.lang.String> |
getXPathsToUpdate()
Returns a list of xpaths for the nodes to add/update.
|
protected org.dom4j.Document |
prepareDoc(org.dom4j.Document doc)
Prepares a new document.
|
protected void |
updateDoc(org.dom4j.Document document,
org.dom4j.Document newDoc,
java.lang.String xpath)
Updates the given doc inserting the given node corresponding to the given xpath.
|
createEtNewResource, createExplorerType, getXmlFilename, setAccessEntry, setMenuEntrycreateElementFromXml, execute, getCodeToChange, getXPathsToRemove, validatepublic java.lang.String getName()
I_CmsSetupXmlUpdateI_CmsSetupXmlUpdate.getName()public java.util.List<java.lang.String> getNewKeys()
public java.util.List<java.lang.String> getOldKeys()
protected 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_CmsSetupXmlUpdatedocument - 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_CmsSetupXmlUpdategetCommonPath 在类中 A_CmsSetupXmlUpdateA_CmsSetupXmlUpdate.getCommonPath()protected java.util.List<java.lang.String> getXPathsToUpdate()
A_CmsSetupXmlUpdategetXPathsToUpdate 在类中 A_CmsSetupXmlUpdateA_CmsSetupXmlUpdate.getXPathsToUpdate()protected org.dom4j.Document prepareDoc(org.dom4j.Document doc)
A_CmsSetupXmlUpdateprepareDoc 在类中 A_CmsSetupXmlUpdatedoc - the original documentA_CmsSetupXmlUpdate.prepareDoc(org.dom4j.Document)protected void updateDoc(org.dom4j.Document document,
org.dom4j.Document newDoc,
java.lang.String xpath)
A_CmsSetupXmlUpdateupdateDoc 在类中 A_CmsSetupXmlUpdatedocument - the original document to updatenewDoc - the document to updatexpath - the corresponding xpathA_CmsSetupXmlUpdate.updateDoc(org.dom4j.Document, org.dom4j.Document, java.lang.String)