Class CmsRewriteAliasTableRow

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

public class CmsRewriteAliasTableRow extends Object implements com.google.gwt.user.client.rpc.IsSerializable
A class containing the data for a row of the rewrite alias table.

  • Constructor Details

    • CmsRewriteAliasTableRow

      Default constructor, used for serialization.

    • CmsRewriteAliasTableRow

      public CmsRewriteAliasTableRow(CmsUUID id, String patternString, String replacementString, CmsAliasMode mode)
      Creates a new instance.

      Parameters:
      id - the id of the alias
      patternString - the regular expression used for matching the URI
      replacementString - the replacement string used when the URI is matched
      mode - the alias mode for this row
  • Method Details

    • getError

      public String getError()
      Gets the error message for this row.

      Returns:
      the error message for this row
    • getId

      public CmsUUID getId()
      Gets the id of the alias.

      Returns:
      the id of the alias
    • getMode

      Gets the alias mode for this row.

      Returns:
      the alias mode for this row
    • getPatternString

      Gets the regular expression string.

      Returns:
      the regular expression string
    • getReplacementString

      Gets the string used to replace the string matching the regex.

      Returns:
      the replacement string
    • setError

      public void setError(String error)
      Sets the error message for this row.

      Parameters:
      error - the new error message
    • setId

      public void setId(CmsUUID id)
      Sets the id of this row.

      Parameters:
      id - the new id
    • setMode

      public void setMode(CmsAliasMode mode)
      Sets the mode of this row.

      Parameters:
      mode - the new mode
    • setPatternString

      public void setPatternString(String patternString)
      Sets the pattern of this row.

      Parameters:
      patternString - the new pattern
    • setReplacementString

      public void setReplacementString(String replacementString)
      Sets the replacement string for this row.

      Parameters:
      replacementString - the new replacement string