Package org.opencms.db
Class CmsAlias
java.lang.Object
org.opencms.db.CmsAlias
This class represents an alias from a virtual path to a resource in the VFS.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Pattern
The regular expression which describes valid alias paths: one or more segments, each consisting of a slash at the front followed by one or more 'unreserved characters' for URIs (see RFC 2396).protected String
The alias path.protected CmsAliasMode
The alias mode.protected String
The site root for the alias.protected CmsUUID
The structure id of the aliased page. -
Constructor Summary
ConstructorDescriptionCmsAlias
(CmsUUID structureId, String siteRoot, String aliasPath, CmsAliasMode mode) Creates a new alias. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the alias path.getMode()
Gets the alias mode.Gets the alias site root.Gets the structure id of the aliased resource.int
hashCode()
boolean
Checks whether the mode of the alias is 'permanent redirect'.boolean
Checks whether the mode of the alias is a redirect type (permanent or temporary).
-
Field Details
-
ALIAS_PATTERN
The regular expression which describes valid alias paths: one or more segments, each consisting of a slash at the front followed by one or more 'unreserved characters' for URIs (see RFC 2396). -
m_aliasPath
The alias path. -
m_mode
The alias mode. -
m_siteRoot
The site root for the alias. -
m_structureId
The structure id of the aliased page.
-
-
Constructor Details
-
Method Details
-
equals
-
getAliasPath
Gets the alias path.- Returns:
- the alias path
-
getMode
Gets the alias mode.- Returns:
- the alias mode
-
getSiteRoot
Gets the alias site root.- Returns:
- the alias site root
-
getStructureId
Gets the structure id of the aliased resource.- Returns:
- the structure id of the aliased resource
-
hashCode
-
isPermanentRedirect
Checks whether the mode of the alias is 'permanent redirect'.- Returns:
- true if the mode of the alias is 'permanent redirect'
-
isRedirect
Checks whether the mode of the alias is a redirect type (permanent or temporary).- Returns:
- true if the mode of the alias is a redirect type
-