Class 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.

    • Method Detail

      • clearErrors

        public void clearErrors()
        Clears validation errors.

      • 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
      • 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
      • 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