java.lang.Object
com.gentics.contentnode.rest.model.linkchecker.ExternalLink
All Implemented Interfaces:
Serializable, Cloneable

public class ExternalLink extends Object implements Cloneable, Serializable
REST Model for an external Link
See Also:
  • Constructor Details

    • ExternalLink

      public ExternalLink()
  • Method Details

    • getId

      public int getId()
      ID
    • setId

      public ExternalLink setId(int id)
      Set the ID
      Parameters:
      id - ID
      Returns:
      fluent API
    • getContentId

      public int getContentId()
      ID of the content containing the external link
      Returns:
      content ID
    • setContentId

      public ExternalLink setContentId(int contentId)
      Set the content ID
      Parameters:
      contentId - content ID
      Returns:
      fluent API
    • getContenttagId

      public int getContenttagId()
      ID of the contenttag containing the external link
      Returns:
      contenttag ID
    • setContenttagId

      public ExternalLink setContenttagId(int contenttagId)
      Set the contenttag ID
      Parameters:
      contenttagId - contenttag ID
      Returns:
      fluent API
    • getContenttagName

      public String getContenttagName()
      Name of the contenttag
      Returns:
      tag name
    • setContenttagName

      public ExternalLink setContenttagName(String contenttagName)
      Set the contenttag name
      Parameters:
      contenttagName - name
      Returns:
      fluent API
    • getValueId

      public int getValueId()
      ID of the value containing the external link
      Returns:
      value ID
    • setValueId

      public ExternalLink setValueId(int valueId)
      Set the value ID
      Parameters:
      valueId - value ID
      Returns:
      fluent API
    • getPartName

      public String getPartName()
      Name of the part
      Returns:
      part name
    • setPartName

      public ExternalLink setPartName(String partName)
      Set part name
      Parameters:
      partName - name
      Returns:
      fluent API
    • getUrl

      public String getUrl()
      URL of the external link
      Returns:
      URL
    • setUrl

      public ExternalLink setUrl(String url)
      Set the URL
      Parameters:
      url - URL
      Returns:
      fluent API
    • getText

      public String getText()
      Link text
      Returns:
      link text
    • setText

      public ExternalLink setText(String text)
      Set link text
      Parameters:
      text - link text
      Returns:
      fluent API
    • getLastCheckTimestamp

      public int getLastCheckTimestamp()
      Timestamp of the last validity check (0 if never checked)
      Returns:
      timestamp
    • setLastCheckTimestamp

      public ExternalLink setLastCheckTimestamp(int lastCheckTimestamp)
      Set timestamp
      Parameters:
      lastCheckTimestamp - timestamp
      Returns:
      fluent API
    • getLastStatus

      public ExternalLinkStatus getLastStatus()
      Last check status
      Returns:
      check status
    • setLastStatus

      public ExternalLink setLastStatus(ExternalLinkStatus lastStatus)
      Set check status
      Parameters:
      lastStatus - status
      Returns:
      fluent API
    • getLastReason

      public String getLastReason()
      Last failure reason
      Returns:
      last reason
    • setLastReason

      public ExternalLink setLastReason(String lastReason)
      Set last reason
      Parameters:
      lastReason - last reason
      Returns:
      fluent API
    • getHistory

      public List<ExternalLinkCheckHistoryEntry> getHistory()
      History of last 5 validity checks
      Returns:
      list of checks
    • setHistory

      public ExternalLink setHistory(List<ExternalLinkCheckHistoryEntry> history)
      Set history
      Parameters:
      history - list of checks
      Returns:
      fluent API
    • clone

      public ExternalLink clone()
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object