Package org.ametys.web.alias
Class AliasHelper
java.lang.Object
org.ametys.web.alias.AliasHelper
Helper for alias
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Get the next unique name for aliasgetRootNode
(Site site) Get the alias root node for the given sitestatic String
Creates the XPath query corresponding to specified alias urlstatic String
Creates the XPath query
-
Field Details
-
DEFAULT_ALIAS_NAME
The alias default name- See Also:
-
-
Method Details
-
getAliasNextUniqueName
Get the next unique name for alias- Parameters:
rootNode
- The alias root node- Returns:
- the next unique name
-
getRootNode
public static ModifiableTraversableAmetysObject getRootNode(Site site) throws AmetysRepositoryException Get the alias root node for the given site- Parameters:
site
- The site- Returns:
- The alias root node
- Throws:
AmetysRepositoryException
- If an error occurs.
-
getXPath
Creates the XPath query- Parameters:
siteName
- The site namedate
- The expiration date- Returns:
- the XPath query
-
getXPath
Creates the XPath query corresponding to specified alias url- Parameters:
siteName
- The site nameurl
- The url- Returns:
- the XPath query
-