Class ExternalLink
java.lang.Object
com.gentics.contentnode.rest.model.linkchecker.ExternalLink
- All Implemented Interfaces:
Serializable
,Cloneable
REST Model for an external Link
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
int
ID of the content containing the external linkint
ID of the contenttag containing the external linkName of the contenttagHistory of last 5 validity checksint
getId()
IDint
Timestamp of the last validity check (0 if never checked)Last failure reasonLast check statusName of the partgetText()
Link textgetUrl()
URL of the external linkint
ID of the value containing the external linksetContentId
(int contentId) Set the content IDsetContenttagId
(int contenttagId) Set the contenttag IDsetContenttagName
(String contenttagName) Set the contenttag namesetHistory
(List<ExternalLinkCheckHistoryEntry> history) Set historysetId
(int id) Set the IDsetLastCheckTimestamp
(int lastCheckTimestamp) Set timestampsetLastReason
(String lastReason) Set last reasonsetLastStatus
(ExternalLinkStatus lastStatus) Set check statussetPartName
(String partName) Set part nameSet link textSet the URLsetValueId
(int valueId) Set the value IDtoString()
-
Constructor Details
-
ExternalLink
public ExternalLink()
-
-
Method Details
-
getId
public int getId()ID -
setId
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
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
Set the contenttag ID- Parameters:
contenttagId
- contenttag ID- Returns:
- fluent API
-
getContenttagName
Name of the contenttag- Returns:
- tag name
-
setContenttagName
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
Set the value ID- Parameters:
valueId
- value ID- Returns:
- fluent API
-
getPartName
Name of the part- Returns:
- part name
-
setPartName
Set part name- Parameters:
partName
- name- Returns:
- fluent API
-
getUrl
URL of the external link- Returns:
- URL
-
setUrl
Set the URL- Parameters:
url
- URL- Returns:
- fluent API
-
getText
Link text- Returns:
- link text
-
setText
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
Set timestamp- Parameters:
lastCheckTimestamp
- timestamp- Returns:
- fluent API
-
getLastStatus
Last check status- Returns:
- check status
-
setLastStatus
Set check status- Parameters:
lastStatus
- status- Returns:
- fluent API
-
getLastReason
Last failure reason- Returns:
- last reason
-
setLastReason
Set last reason- Parameters:
lastReason
- last reason- Returns:
- fluent API
-
getHistory
History of last 5 validity checks- Returns:
- list of checks
-
setHistory
Set history- Parameters:
history
- list of checks- Returns:
- fluent API
-
clone
-
toString
-