public class VanityUrl extends Object implements Serializable
| Constructor and Description |
|---|
VanityUrl() |
VanityUrl(String url,
String site,
String language)
Initializes an instance of this class.
|
VanityUrl(String url,
String site,
String language,
boolean defaultMapping,
boolean active)
Initializes an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getIdentifier()
Gets the UUID of the mapping node in the JCR repository or null if URL is
not saved yet
|
String |
getLanguage()
Returns the language of the content object to which the vanity URL maps to
|
String |
getPath()
Gets the path of the node in the JCR repository or null if not yet set
|
String |
getSite()
Gets the virtual site of the mapped content object
|
String |
getUrl()
Returns the vanity URL
|
int |
hashCode() |
boolean |
isActive()
Returns true if the URL mapping is activated or false if it is not activated.
|
boolean |
isDefaultMapping()
Returns true whether this URL mapping is the default one for the language
|
boolean |
isFile()
Is the vanity url for file access
|
void |
setActive(boolean active)
Sets the activation flag for the URL mapping - true if mapping is active,
or false if is not active (will not be assigned and resource can no longer be found via the mapping)
|
void |
setDefaultMapping(boolean defaultMapping)
Sets the default flag for the URL mapping - true if mapping should be the
default for the language, otherwise false
|
void |
setFile(boolean file)
Set if the vanity url is for file access
|
void |
setIdentifier(String identifier)
Set the unique identifier of the node in the JCR repository
|
void |
setLanguage(String language)
Sets the language of the content object to which the vanity URL maps to
|
void |
setPath(String path)
Set the path of the node in the JCR repository
|
void |
setSite(String site)
Sets the virtual site of the mapped content object
|
void |
setUrl(String url)
Set the vanity URL
|
String |
toString() |
public VanityUrl()
public VanityUrl(String url, String site, String language)
url - mapping URLsite - virtual site of the mapped content objectlanguage - the mapping languagepublic VanityUrl(String url, String site, String language, boolean defaultMapping, boolean active)
url - mapping URLsite - virtual site of the mapped content objectlanguage - the mapping languagedefaultMapping - is it the default mapping for the node?active - whether the mapping is activepublic String getUrl()
public void setUrl(String url)
url - the vanity URLpublic String getLanguage()
public void setLanguage(String language)
language - the mapping languagepublic boolean isDefaultMapping()
public void setDefaultMapping(boolean defaultMapping)
defaultMapping - true if mapping should be the default for the language, otherwise falsepublic boolean isActive()
public void setActive(boolean active)
active - true if mapping should be active, otherwise falsepublic String getIdentifier()
public void setIdentifier(String identifier)
identifier - the unique identifier (JCR repository node UUID)public String getPath()
public void setPath(String path)
path - the path of the node in the JCR repositorypublic String getSite()
public void setSite(String site)
site - virtual site of the mapped content objectpublic boolean isFile()
public void setFile(boolean file)
file - true if file, false if renderCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.