Class CmsAliasTableRow

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

public class CmsAliasTableRow extends Object implements com.google.gwt.user.client.rpc.IsSerializable
A bean representing a row of the alias table.

  • Constructor Details

  • Method Details

    • clearErrors

      public void clearErrors()
      Clears validation errors.

    • copy

      Copies this object.

      Returns:
      a copy of the alias row
    • editAliasPath

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

      Parameters:
      newPath - the new alias path
    • editResourcePath

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

      Parameters:
      newPath - the new resource path
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
      See Also:
    • getAliasError

      Gets the alias path error message.

      Returns:
      the alias path error message
    • getAliasPath

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

      Returns:
      the resource path error message
    • getKey

      public 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

      Gets the alias mode.

      Returns:
      the alias mode
    • getOriginalStructureId

      Gets the original structure id.

      Returns:
      the original structure id
    • getPathError

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

      Returns:
      the resource path error message
    • getResourcePath

      Gets the resource path.

      Returns:
      the resource path
    • 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 Object
      See Also:
    • 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(String aliasError)
      Sets the alias error message.

      Parameters:
      aliasError - the alias error message
    • setAliasPath

      public void setAliasPath(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(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(String pathError)
      Sets the resource path error message.

      Parameters:
      pathError - the resource path error message
    • setResourcePath

      public void setResourcePath(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