|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LinkProvider
Exposes methods which are useful for processing and creating links on the behalf of objects of this type.
| Method Summary | |
|---|---|
boolean |
allowsAttachmentLinks()
If this object type allows links from other object types to it, this method should return true. |
Matcher |
getAnchorHrefMatcher(String href)
Given a link anchor href, this method should construct a matcher object which can be further queried for matching groups representing attachment names/IDs, anchor links, object IDs, and so forth. |
String |
getAnchorLinkFromAnchorHrefMatcher(Matcher urlMatcher)
Given the matcher previously constructed an anchor href, this method should extract any anchor links from the href being parsed by the matcher. |
String |
getAttachmentNameFromAnchorHrefMatcher(Matcher urlMatcher)
Given the matcher previously constructed for an anchor href, this method should extract the attachment name from the href being parsed by the matcher. |
String |
getLinkCSS()
The css class that will be used to format this object's links and other URLs on web forms were it is to be enabled. |
String |
getLinkDescriptionFromJiveObject(JiveObject jiveObject)
Get the list of macros associated with this object type. |
String |
getLinkTextFromJiveObject(JiveObject jiveObject)
Given a JiveObject, this method should extract the link text for a URL to be generated from the supplied JiveObject. |
String |
getLinkURLFromJiveObject(JiveObject jiveObject,
boolean isAbsoluteURL)
Given a JiveObject, this method should construct a relative, or full, URL (depending on the isAbsoluteURL) parameter. |
String |
getObjectIdFromAnchorHrefMatcher(Matcher urlMatcher)
Given the matcher previously constructed for an anchor href, this method should extract the objectID from the href being parsed by the matcher. |
String |
parseRelativeURL(String href,
String baseUrl)
Returns the relative URL from the passed in href. |
| Method Detail |
|---|
boolean allowsAttachmentLinks()
If this object type allows links from other object types to it, this method should return true.
Primarily consumed by the com.jivesoftware.base.wiki.JiveLinkBuilder class.
Matcher getAnchorHrefMatcher(String href)
Given a link anchor href, this method should construct a matcher object which can be further queried for matching
groups representing attachment names/IDs, anchor links, object IDs, and so forth.
Hrefs could be as the following:
-100
-100#AnchorTarget
Primarily consumed by the com.jivesoftware.base.wiki.JiveLinkBuilder class.
href - a link anchor href
com.jivesoftware.base.wiki.JiveLinkBuilderString getAttachmentNameFromAnchorHrefMatcher(Matcher urlMatcher)
Given the matcher previously constructed for an anchor href, this method should extract the attachment name from
the href being parsed by the matcher. It may return null or empty.
Primarily consumed by the com.jivesoftware.base.wiki.JiveLinkBuilder class.
urlMatcher - matcher previously constructed for an anchor href
com.jivesoftware.base.wiki.JiveLinkBuilderString getAnchorLinkFromAnchorHrefMatcher(Matcher urlMatcher)
Given the matcher previously constructed an anchor href, this method should extract any anchor links from
the href being parsed by the matcher. It may return null or empty.
Primarily consumed by the com.jivesoftware.base.wiki.JiveLinkBuilder class.
urlMatcher - matcher previously constructed for an anchor href
com.jivesoftware.base.wiki.JiveLinkBuilderString getObjectIdFromAnchorHrefMatcher(Matcher urlMatcher)
Given the matcher previously constructed for an anchor href, this method should extract the objectID from the href being
parsed by the matcher. It may return null or empty.
Primarily consumed by the com.jivesoftware.base.wiki.JiveLinkBuilder class.
urlMatcher - the matcher previously constructed for an anchor href
com.jivesoftware.base.wiki.JiveLinkBuilderString getLinkDescriptionFromJiveObject(JiveObject jiveObject)
Get the list of macros associated with this object type.
Primarily consumed by the com.jivesoftware.base.wiki.JiveLinkBuilder class.
jiveObject - the object to retrieve the link description from
String getLinkTextFromJiveObject(JiveObject jiveObject)
Given a JiveObject, this method should extract the link text for a URL to be generated from the supplied JiveObject.
Primarily consumed by the com.jivesoftware.base.wiki.JiveLinkBuilder class.
jiveObject - the object to retrieve the link text from
String getLinkURLFromJiveObject(JiveObject jiveObject,
boolean isAbsoluteURL)
Given a JiveObject, this method should construct a relative, or full, URL (depending on the isAbsoluteURL)
parameter.
Primarily consumed by the com.jivesoftware.base.wiki.JiveLinkBuilder class.
jiveObject - the jive object to retrieve the link url fromisAbsoluteURL - whether or not the url is absolute
String getLinkCSS()
The css class that will be used to format this object's links and other URLs on web forms were it is to be enabled.
String parseRelativeURL(String href,
String baseUrl)
Returns the relative URL from the passed in href. Should return empty or NULL if a relative URL relating to the content type cannot be parsed from the input href.
href - a link anchor hrefbaseUrl - base resource of the url
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||