Class RedirectCleaningAction

java.lang.Object
sk.iway.iwcm.components.redirects.RedirectCleaningAction
All Implemented Interfaces:
Serializable

public class RedirectCleaningAction extends Object implements Serializable
Serializable read-only DataTable row describing one operation in a redirect cleaning preview. A database redirect can occur at most once in a plan.
See Also:
  • Constructor Details

    • RedirectCleaningAction

      public RedirectCleaningAction()
      Creates an empty action required by DataTable and cached snapshot deserialization.
    • RedirectCleaningAction

      public RedirectCleaningAction(Long id, RedirectCleaningAction.ActionType action, String oldUrl, String currentNewUrl, String proposedNewUrl, String domainName, Integer redirectCode, Date insertDate)
      Creates a complete redirect cleaning action snapshot.
      Parameters:
      id - database redirect identifier
      action - operation to execute
      oldUrl - source URL
      currentNewUrl - target URL at analysis time
      proposedNewUrl - optimized target URL, or null for delete actions
      domainName - original redirect domain
      redirectCode - HTTP redirect status code
      insertDate - redirect creation timestamp
  • Method Details

    • isDelete

      public boolean isDelete()
      Indicates whether this action removes the redirect instead of updating its target URL.
      Returns:
      true for all delete actions, false for RedirectCleaningAction.ActionType.UPDATE_OPTIMIZE
    • getId

      public Long getId()
    • getAction

    • getOldUrl

      public String getOldUrl()
    • getCurrentNewUrl

      public String getCurrentNewUrl()
    • getProposedNewUrl

      public String getProposedNewUrl()
    • getDomainName

      public String getDomainName()
    • getRedirectCode

      public Integer getRedirectCode()
    • getInsertDate

      public Date getInsertDate()
    • setId

      public void setId(Long id)
    • setAction

      public void setAction(RedirectCleaningAction.ActionType action)
    • setOldUrl

      public void setOldUrl(String oldUrl)
    • setCurrentNewUrl

      public void setCurrentNewUrl(String currentNewUrl)
    • setProposedNewUrl

      public void setProposedNewUrl(String proposedNewUrl)
    • setDomainName

      public void setDomainName(String domainName)
    • setRedirectCode

      public void setRedirectCode(Integer redirectCode)
    • setInsertDate

      public void setInsertDate(Date insertDate)