org.opencms.gwt.shared.alias
Class CmsAliasTableRow

java.lang.Object
  extended by org.opencms.gwt.shared.alias.CmsAliasTableRow
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class CmsAliasTableRow
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable

A bean representing a row of the alias table.


Constructor Summary
CmsAliasTableRow()
          Default constructor.
 
Method Summary
 void clearErrors()
          Clears validation errors.
 CmsAliasTableRow copy()
          Copies this object.
 void editAliasPath(java.lang.String newPath)
          Changes the alias path.
 void editResourcePath(java.lang.String newPath)
          Changes the resource path.
 boolean equals(java.lang.Object other)
           
 java.lang.String getAliasError()
          Gets the alias path error message.
 java.lang.String getAliasPath()
          Gets the resource path error message.
 java.lang.String getKey()
          Gets the internal key for the row.
 CmsAliasMode getMode()
          Gets the alias mode.
 CmsUUID getOriginalStructureId()
          Gets the original structure id.
 java.lang.String getPathError()
          Gets the resource path error message.
 java.lang.String getResourcePath()
          Gets the resource path.
 CmsUUID getStructureId()
          Gets the structure id.
 boolean hasErrors()
          Checks whether any validation errors have been set.
 int hashCode()
           
 boolean isChanged()
          Checks whether this row is changed.
 boolean isEdited()
          Checks whether this row is edited.
 void setAliasError(java.lang.String aliasError)
          Sets the alias error message.
 void setAliasPath(java.lang.String aliasPath)
          Sets the alias path.
 void setChanged(boolean isChanged)
          Sets the 'changed' flag.
 void setEdited(boolean isEdited)
          Sets the 'edited' flag.
 void setKey(java.lang.String key)
          Sets the internal key.
 void setMode(CmsAliasMode mode)
          Sets the alias mode.
 void setOriginalStructureId(CmsUUID originalStructureId)
          Sets the original structure id.
 void setPathError(java.lang.String pathError)
          Sets the resource path error message.
 void setResourcePath(java.lang.String resourcePath)
          Sets the resource path.
 void setStructureId(CmsUUID structureId)
          Sets the structure id.
 void update(CmsAliasTableRow updateRow)
          Updates this bean with data from another instance.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsAliasTableRow

public CmsAliasTableRow()
Default constructor.

Method Detail

clearErrors

public void clearErrors()
Clears validation errors.


copy

public CmsAliasTableRow copy()
Copies this object.

Returns:
a copy of the alias row

editAliasPath

public void editAliasPath(java.lang.String newPath)
Changes the alias path.

Parameters:
newPath - the new alias path

editResourcePath

public void editResourcePath(java.lang.String newPath)
Changes the resource path.

Parameters:
newPath - the new resource path

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

getAliasError

public java.lang.String getAliasError()
Gets the alias path error message.

Returns:
the alias path error message

getAliasPath

public java.lang.String getAliasPath()
Gets the resource path error message.

Returns:
the resource path error message

getKey

public java.lang.String getKey()
Gets the internal key for the row.

This key is artificially generated, it has no significance for the alias itself but is only used during editing to keep track of rows.

Returns:
the internal key

getMode

public CmsAliasMode getMode()
Gets the alias mode.

Returns:
the alias mode

getOriginalStructureId

public CmsUUID getOriginalStructureId()
Gets the original structure id.

Returns:
the original structure id

getPathError

public java.lang.String getPathError()
Gets the resource path error message.

Returns:
the resource path error message

getResourcePath

public java.lang.String getResourcePath()
Gets the resource path.

Returns:
the resource path

getStructureId

public CmsUUID getStructureId()
Gets the structure id.

Returns:
the structure id

hasErrors

public boolean hasErrors()
Checks whether any validation errors have been set.

Returns:
true if any validation errors have been set

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

isChanged

public boolean isChanged()
Checks whether this row is changed.

Returns:
true if this row is changed

isEdited

public boolean isEdited()
Checks whether this row is edited.

Returns:
true if this row is edited

setAliasError

public void setAliasError(java.lang.String aliasError)
Sets the alias error message.

Parameters:
aliasError - the alias error message

setAliasPath

public void setAliasPath(java.lang.String aliasPath)
Sets the alias path.

Parameters:
aliasPath - the new alias path

setChanged

public void setChanged(boolean isChanged)
Sets the 'changed' flag.

Parameters:
isChanged - the new value of the 'changed' flag

setEdited

public void setEdited(boolean isEdited)
Sets the 'edited' flag.

Parameters:
isEdited - the new value of the 'edited' flag

setKey

public void setKey(java.lang.String key)
Sets the internal key.

Parameters:
key - the internal key

setMode

public void setMode(CmsAliasMode mode)
Sets the alias mode.

Parameters:
mode - the new alias mode

setOriginalStructureId

public void setOriginalStructureId(CmsUUID originalStructureId)
Sets the original structure id.

Parameters:
originalStructureId - the original structure id value

setPathError

public void setPathError(java.lang.String pathError)
Sets the resource path error message.

Parameters:
pathError - the resource path error message

setResourcePath

public void setResourcePath(java.lang.String resourcePath)
Sets the resource path.

Parameters:
resourcePath - the resource path

setStructureId

public void setStructureId(CmsUUID structureId)
Sets the structure id.

Parameters:
structureId - the structure id

update

public void update(CmsAliasTableRow updateRow)
Updates this bean with data from another instance.

Parameters:
updateRow - the bean which the data should be updated from