public class NotPermittedLink extends UnresolvedLink
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.
Constructor and Description |
---|
NotPermittedLink(Link delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAnchor() |
LinkBody<?> |
getBody() |
Link |
getDelegate() |
ResourceIdentifier |
getDestinationResourceIdentifier() |
Optional<String> |
getTarget()
Returns the target attribute for the link.
|
int |
hashCode() |
String |
toString() |
Link |
updateDestination(ResourceIdentifier destination)
Returns a new instance of this link with an updated destination.
|
getTooltip
public NotPermittedLink(Link delegate)
public Link getDelegate()
public LinkBody<?> getBody()
public ResourceIdentifier getDestinationResourceIdentifier()
getDestinationResourceIdentifier
in interface Link
ResourceIdentifier
public Link updateDestination(ResourceIdentifier destination)
Link
updateDestination
in interface Link
destination
- the updated destinationpublic Optional<String> getTarget()
Link
Copyright © 2003–2019 Atlassian. All rights reserved.