Package org.opencms.db.urlname
Class CmsUrlNameMappingEntry
java.lang.Object
org.opencms.db.urlname.CmsUrlNameMappingEntry
An URL name mapping entry.
- Since:
- 8.0.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Class for comparing URL name mapping entries by date. -
Field Summary
Modifier and TypeFieldDescriptionprotected long
The date on which the mapping entry was last changed.protected String
The locale of the mapping.protected String
The name to which the mapping entry belongs.protected int
The state of the mapping entry.protected CmsUUID
The structure id to which the name is mapped.static final int
The state for mapping entries which have not been published.static final int
The state for mapping entries which have been published.static final int
State which indicates that all previous mappings should be replace on publish.static final int
State which indicates that all previous mappings have been replaced on publish. -
Constructor Summary
ConstructorDescriptionCmsUrlNameMappingEntry
(String name, CmsUUID structureId, int state, long dateChanged, String locale) Creates a new URL name mapping entry. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the date at which the mapping was last changed as a long.Returns the locale of the mapping entry.getName()
Returns the name to which the mapping belongs.int
getState()
Returns the state of the mapping entry.Returns the structure id which is mapped to the name.toString()
-
Field Details
-
MAPPING_STATUS_NEW
The state for mapping entries which have not been published.- See Also:
-
MAPPING_STATUS_PUBLISHED
The state for mapping entries which have been published.- See Also:
-
MAPPING_STATUS_REPLACE_ON_PUBLISH
State which indicates that all previous mappings should be replace on publish.- See Also:
-
MAPPING_STATUS_REPLACE_ON_PUBLISH_PUBLISHED
State which indicates that all previous mappings have been replaced on publish.- See Also:
-
m_dateChanged
The date on which the mapping entry was last changed. -
m_locale
The locale of the mapping. -
m_name
The name to which the mapping entry belongs. -
m_state
The state of the mapping entry. -
m_structureId
The structure id to which the name is mapped.
-
-
Constructor Details
-
CmsUrlNameMappingEntry
public CmsUrlNameMappingEntry(String name, CmsUUID structureId, int state, long dateChanged, String locale) Creates a new URL name mapping entry.- Parameters:
name
- the URL namestructureId
- the id to which the name is mappedstate
- the state of the entrydateChanged
- the date of the entry's last changelocale
- the locale of the mapping
-
-
Method Details
-
getDateChanged
Returns the date at which the mapping was last changed as a long.- Returns:
- the date at which the mapping was last changed
-
getLocale
Returns the locale of the mapping entry.- Returns:
- the locale of the mapping entry
-
getName
Returns the name to which the mapping belongs.- Returns:
- the name to which the mapping belongs
-
getState
Returns the state of the mapping entry.- Returns:
- the state of the mapping entry
-
getStructureId
Returns the structure id which is mapped to the name.- Returns:
- the structure id which is mapped to the name
-
toString
-