Package org.ametys.plugins.forms
Class FormXpathUtils
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.forms.FormXpathUtils
- All Implemented Interfaces:
LogEnabled
,Component
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getXPathForFormDirectories
(FormDirectory formDirectory) Creates the XPath query to get all form directoriesstatic String
getXPathForFormPages
(Form form, boolean onlyDirectChildren) Creates the XPath query to get all form pagesstatic String
getXPathForForms
(FormDirectory formdirectory, boolean onlyDirectChildren) Creates the XPath query to get all formsMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
FormXpathUtils
public FormXpathUtils()
-
-
Method Details
-
getXPathForFormDirectories
Creates the XPath query to get all form directories- Parameters:
formDirectory
- TheFormDirectory
, defining the context from which getting children- Returns:
- The XPath query
-
getXPathForFormPages
Creates the XPath query to get all form pages- Parameters:
form
- TheFormDirectory
, defining the context from which getting childrenonlyDirectChildren
-true
in order to have only direct child forms from parent path,false
otherwise to have all forms at any level underneath the parent path- Returns:
- The XPath query
-
getXPathForForms
Creates the XPath query to get all forms- Parameters:
formdirectory
- TheForm
, defining the context from which getting childrenonlyDirectChildren
-true
in order to have only direct child forms from parent path,false
otherwise to have all forms at any level underneath the parent path- Returns:
- The XPath query
-