Package org.opencms.db.urlname
Class CmsUrlNameMappingEntry
- java.lang.Object
-
- org.opencms.db.urlname.CmsUrlNameMappingEntry
-
public class CmsUrlNameMappingEntry extends java.lang.Object
An URL name mapping entry.- Since:
- 8.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CmsUrlNameMappingEntry.DateComparator
Class for comparing URL name mapping entries by date.
-
Field Summary
Fields Modifier and Type Field Description protected long
m_dateChanged
The date on which the mapping entry was last changed.protected java.lang.String
m_locale
The locale of the mapping.protected java.lang.String
m_name
The name to which the mapping entry belongs.protected int
m_state
The state of the mapping entry.protected CmsUUID
m_structureId
The structure id to which the name is mapped.static int
MAPPING_STATUS_NEW
The state for mapping entries which have not been published.static int
MAPPING_STATUS_PUBLISHED
The state for mapping entries which have been published.static int
MAPPING_STATUS_REPLACE_ON_PUBLISH
State which indicates that all previous mappings should be replace on publish.static int
MAPPING_STATUS_REPLACE_ON_PUBLISH_PUBLISHED
State which indicates that all previous mappings have been replaced on publish.
-
Constructor Summary
Constructors Constructor Description CmsUrlNameMappingEntry(java.lang.String name, CmsUUID structureId, int state, long dateChanged, java.lang.String locale)
Creates a new URL name mapping entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getDateChanged()
Returns the date at which the mapping was last changed as a long.java.lang.String
getLocale()
Returns the locale of the mapping entry.java.lang.String
getName()
Returns the name to which the mapping belongs.int
getState()
Returns the state of the mapping entry.CmsUUID
getStructureId()
Returns the structure id which is mapped to the name.java.lang.String
toString()
-
-
-
Field Detail
-
MAPPING_STATUS_NEW
public static final int MAPPING_STATUS_NEW
The state for mapping entries which have not been published.- See Also:
- Constant Field Values
-
MAPPING_STATUS_PUBLISHED
public static final int MAPPING_STATUS_PUBLISHED
The state for mapping entries which have been published.- See Also:
- Constant Field Values
-
MAPPING_STATUS_REPLACE_ON_PUBLISH
public static final int MAPPING_STATUS_REPLACE_ON_PUBLISH
State which indicates that all previous mappings should be replace on publish.- See Also:
- Constant Field Values
-
MAPPING_STATUS_REPLACE_ON_PUBLISH_PUBLISHED
public static final int MAPPING_STATUS_REPLACE_ON_PUBLISH_PUBLISHED
State which indicates that all previous mappings have been replaced on publish.- See Also:
- Constant Field Values
-
m_dateChanged
protected long m_dateChanged
The date on which the mapping entry was last changed.
-
m_locale
protected java.lang.String m_locale
The locale of the mapping.
-
m_name
protected java.lang.String m_name
The name to which the mapping entry belongs.
-
m_state
protected int m_state
The state of the mapping entry.
-
m_structureId
protected CmsUUID m_structureId
The structure id to which the name is mapped.
-
-
Constructor Detail
-
CmsUrlNameMappingEntry
public CmsUrlNameMappingEntry(java.lang.String name, CmsUUID structureId, int state, long dateChanged, java.lang.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 Detail
-
getDateChanged
public long 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
public java.lang.String getLocale()
Returns the locale of the mapping entry.- Returns:
- the locale of the mapping entry
-
getName
public java.lang.String getName()
Returns the name to which the mapping belongs.- Returns:
- the name to which the mapping belongs
-
getState
public int getState()
Returns the state of the mapping entry.- Returns:
- the state of the mapping entry
-
getStructureId
public CmsUUID getStructureId()
Returns the structure id which is mapped to the name.- Returns:
- the structure id which is mapped to the name
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-