public abstract class A_CmsXmlWorkplace extends A_CmsSetupXmlUpdate
构造器和说明 |
---|
A_CmsXmlWorkplace() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
createEtNewResource(org.dom4j.Document document,
java.lang.String xpath,
java.lang.String uri,
int order,
boolean autoSetNav,
boolean autoSetTitle,
java.lang.String info,
java.lang.String page)
Creates a new 'explorertype/newresource' node.
|
protected void |
createExplorerType(org.dom4j.Document document,
java.lang.String xpath,
java.lang.String name,
java.lang.String key,
java.lang.String icon,
java.lang.String reference)
Creates a new 'explorertype' node.
|
java.lang.String |
getXmlFilename()
Returns the affected xml configuration file name.
|
protected boolean |
setAccessEntry(org.dom4j.Document document,
java.lang.String xpath,
java.lang.String principal,
java.lang.String permissions)
Creates a new access control entry node.
|
protected void |
setMenuEntry(org.dom4j.Document document,
java.lang.String xpath,
java.lang.String key,
java.lang.String uri,
java.lang.String rules,
java.lang.String order)
Creates a new context menu entry node.
|
createElementFromXml, execute, executeUpdate, getCodeToChange, getCommonPath, getXPathsToRemove, getXPathsToUpdate, prepareDoc, updateDoc, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public java.lang.String getXmlFilename()
I_CmsSetupXmlUpdate
I_CmsSetupXmlUpdate.getXmlFilename()
protected void createEtNewResource(org.dom4j.Document document, java.lang.String xpath, java.lang.String uri, int order, boolean autoSetNav, boolean autoSetTitle, java.lang.String info, java.lang.String page)
document
- the xml document to modifyxpath
- the xpath to the existing explorer type (ie /opencms/workplace/explorertypes/explorertype[@name='${etype}']
)uri
- the uri attribute valueorder
- the order attribute valueautoSetNav
- the autosetnavigation attribute valueautoSetTitle
- the autosettitle attribute valueinfo
- the info attribute valuepage
- the optional page attribute valueprotected void createExplorerType(org.dom4j.Document document, java.lang.String xpath, java.lang.String name, java.lang.String key, java.lang.String icon, java.lang.String reference)
document
- the xml documento to modifyxpath
- the xpath to the non-existing explorer type (ie /opencms/workplace/explorertypes/explorertype[@name='${etype}']
)name
- the name attribute valuekey
- the key attribute valueicon
- the icon attribute valuereference
- the reference attribute valueprotected boolean setAccessEntry(org.dom4j.Document document, java.lang.String xpath, java.lang.String principal, java.lang.String permissions)
document
- the xml document to changexpath
- the base xpath (ie /opencms/workplace/explorertypes/explorertype[@name='${etype}']/accesscontrol
)principal
- the principalpermissions
- the permissions stringprotected void setMenuEntry(org.dom4j.Document document, java.lang.String xpath, java.lang.String key, java.lang.String uri, java.lang.String rules, java.lang.String order)
document
- the xml document to changexpath
- the base xpathkey
- the localization key nameuri
- the entry urirules
- the permissions rulesorder
- the relative order