Class NotPermittedLink
java.lang.Object
com.atlassian.confluence.content.render.xhtml.model.links.UnresolvedLink
com.atlassian.confluence.content.render.xhtml.model.links.NotPermittedLink
- All Implemented Interfaces:
Link
A not permitted link. Wraps the link that is not permitted.
To the user, a not permitted link is indistinguishable from an unresolved link. Hence the "is-a" relationship of not permitted link to unresolved link.
Not permitted links get their own representation because Confluence should be able to distinguish between the two.
- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
LinkBody<?>
getBody()
Returns the target attribute for the link.int
hashCode()
toString()
updateDestination
(ResourceIdentifier destination) Returns a new instance of this link with an updated destination.Methods inherited from class com.atlassian.confluence.content.render.xhtml.model.links.UnresolvedLink
getTooltip
-
Constructor Details
-
NotPermittedLink
-
-
Method Details
-
getDelegate
-
getBody
-
getDestinationResourceIdentifier
- Specified by:
getDestinationResourceIdentifier
in interfaceLink
- Returns:
- a resource identifier to the destination. If null then the link is a self reference.
- See Also:
-
updateDestination
Description copied from interface:Link
Returns a new instance of this link with an updated destination.- Specified by:
updateDestination
in interfaceLink
- Parameters:
destination
- the updated destination- Returns:
- a new instance with the updated destination.
-
getAnchor
-
getTarget
Description copied from interface:Link
Returns the target attribute for the link. Only "_blank" is supported. -
equals
-
hashCode
public int hashCode() -
toString
-