public class CmsXmlAddContextMenuItems extends A_CmsXmlWorkplace
构造器和说明 |
---|
CmsXmlAddContextMenuItems() |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
checkExplorerType(org.dom4j.Document doc,
java.lang.String xpath)
Checks whether the explorer type referenced by an xpath exists in the document.
|
boolean |
executeUpdate(org.dom4j.Document document,
java.lang.String xpath,
boolean forReal)
Executes the adding/updating changes on the given document.
|
protected boolean |
existsExplorerType(org.dom4j.Document doc,
java.lang.String explorertype)
Checks whether a given explorertype exists in the 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> |
getXPathsToUpdate()
Returns a list of xpaths for the nodes to add/update.
|
createEtNewResource, createExplorerType, getXmlFilename, setAccessEntry, setMenuEntry
createElementFromXml, execute, getCodeToChange, getXPathsToRemove, prepareDoc, updateDoc, validate
public 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)
public java.lang.String getName()
I_CmsSetupXmlUpdate
I_CmsSetupXmlUpdate.getName()
public java.util.List<java.lang.String> getXPathsToUpdate()
A_CmsSetupXmlUpdate
getXPathsToUpdate
在类中 A_CmsSetupXmlUpdate
A_CmsSetupXmlUpdate.getXPathsToUpdate()
protected boolean checkExplorerType(org.dom4j.Document doc, java.lang.String xpath)
doc
- the documentxpath
- the xpath, potentially referencing an explorertypeprotected boolean existsExplorerType(org.dom4j.Document doc, java.lang.String explorertype)
doc
- the XML documentexplorertype
- the explorertype to checkprotected java.lang.String getCommonPath()
A_CmsSetupXmlUpdate
getCommonPath
在类中 A_CmsSetupXmlUpdate
A_CmsSetupXmlUpdate.getCommonPath()