|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.renderer.links.Link
com.atlassian.renderer.links.UnpermittedLink
public class UnpermittedLink
A link to a resource that exists, but that the current user is not permitted to access. Generally, these should be treated identically to unresolved links (so users don't get an idea about what might exist but they can't see), but internal link-tracking systems will obviously need to know the difference.
| Field Summary |
|---|
| Fields inherited from class com.atlassian.renderer.links.Link |
|---|
aliasSpecified, iconName, linkBody, relativeUrl, title, titleArgs, titleKey, url, wikiDestination, wikiTitle |
| Constructor Summary | |
|---|---|
UnpermittedLink(Link wrappedLink)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String |
getLinkBody()
Get the contents that are being marked up by the link |
String |
getTitle()
Get the link title text |
String |
getUrl()
Get the destination URL for this link. |
String |
getWikiDestination()
Gets the destination portion of the Link.originalLinkText. |
String |
getWikiTitle()
Gets the optional title portion of the Link.originalLinkText. |
Link |
getWrappedLink()
|
int |
hashCode()
|
boolean |
isAliasSpecified()
Returns true if the link markup specifies an alias. |
boolean |
isRelativeUrl()
Is the URL relativeUrl to the application's context path? |
| Methods inherited from class com.atlassian.renderer.links.Link |
|---|
getIconName, getLinkAttributes, getOriginalLinkText, getTitleArgs, getTitleKey, getUnpermittedLinkBody |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnpermittedLink(Link wrappedLink)
| Method Detail |
|---|
public Link getWrappedLink()
public String getLinkBody()
Link
getLinkBody in class Linkpublic boolean isRelativeUrl()
Link
isRelativeUrl in class Linkpublic String getTitle()
Link
getTitle in class Linkpublic String getUrl()
Link
getUrl in class Linkpublic String getWikiDestination()
LinkLink.originalLinkText.
getWikiDestination in class Linkpublic String getWikiTitle()
LinkLink.originalLinkText. Returns null if no title was present
in the original link text.
getWikiTitle in class Linkpublic boolean isAliasSpecified()
Link
isAliasSpecified in class Linkpublic boolean equals(Object o)
equals in class Linkpublic int hashCode()
hashCode in class Link
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||