org.opencms.db.urlname
Class CmsUrlNameMappingEntry

java.lang.Object
  extended by org.opencms.db.urlname.CmsUrlNameMappingEntry

public class CmsUrlNameMappingEntry
extends java.lang.Object

An URL name mapping entry.

Since:
8.0.0

Nested Class Summary
static class CmsUrlNameMappingEntry.DateComparator
          Class for comparing URL name mapping entries by date.
 
Field Summary
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.
 
Constructor Summary
CmsUrlNameMappingEntry(java.lang.String name, CmsUUID structureId, int state, long dateChanged, java.lang.String locale)
          Creates a new URL name mapping entry.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

m_dateChanged

protected long m_dateChanged
The date on which the mapping entry was last changed.


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.


m_locale

protected java.lang.String m_locale
The locale of the mapping.

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 name
structureId - the id to which the name is mapped
state - the state of the entry
dateChanged - the date of the entry's last change
locale - 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 class java.lang.Object
See Also:
Object.toString()