public class CmsUrlNameMappingEntry extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CmsUrlNameMappingEntry.DateComparator
Class for comparing URL name mapping entries by date.
|
Modifier and Type | Field and 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 and Description |
---|
CmsUrlNameMappingEntry(java.lang.String name,
CmsUUID structureId,
int state,
long dateChanged,
java.lang.String locale)
Creates a new URL name mapping entry.
|
Modifier and Type | Method and 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() |
protected long m_dateChanged
protected java.lang.String m_locale
protected java.lang.String m_name
protected int m_state
protected CmsUUID m_structureId
public static final int MAPPING_STATUS_NEW
public static final int MAPPING_STATUS_PUBLISHED
public static final int MAPPING_STATUS_REPLACE_ON_PUBLISH
public static final int MAPPING_STATUS_REPLACE_ON_PUBLISH_PUBLISHED
public CmsUrlNameMappingEntry(java.lang.String name, CmsUUID structureId, int state, long dateChanged, java.lang.String locale)
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 mappingpublic long getDateChanged()
public java.lang.String getLocale()
public java.lang.String getName()
public int getState()
public CmsUUID getStructureId()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()