public final class AliasHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ALIAS_NAME
The alias default name
|
Modifier | Constructor and Description |
---|---|
private |
AliasHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
getAliasNextUniqueName(TraversableAmetysObject rootNode)
Get the next unique name for alias
|
static ModifiableTraversableAmetysObject |
getRootNode(Site site)
Get the alias root node for the given site
|
static String |
getXPath(String siteName,
Date date)
Creates the XPath query
|
static String |
getXPath(String siteName,
String url)
Creates the XPath query corresponding to specified alias url
|
public static final String DEFAULT_ALIAS_NAME
private AliasHelper()
public static String getAliasNextUniqueName(TraversableAmetysObject rootNode)
rootNode
- The alias root nodepublic static ModifiableTraversableAmetysObject getRootNode(Site site) throws AmetysRepositoryException
site
- The siteAmetysRepositoryException
- If an error occurs.public static String getXPath(String siteName, Date date)
siteName
- The site namedate
- The expiration date