com.atlassian.applinks.api
Interface ApplicationLinkUIService.MessageBuilder

Enclosing interface:
ApplicationLinkUIService

public static interface ApplicationLinkUIService.MessageBuilder

An HTML fragment builder returned by ApplicationLinkUIService.authorisationRequest(ApplicationLink).


Method Summary
 ApplicationLinkUIService.MessageBuilder contentHtml(String contentHtml)
          Adds custom content to the message.
 ApplicationLinkUIService.MessageBuilder format(ApplicationLinkUIService.MessageFormat format)
          Specifies whether to use a brief format (the default) or a banner format.
 String getHtml()
          Returns the message/banner as an HTML string.
 

Method Detail

format

ApplicationLinkUIService.MessageBuilder format(ApplicationLinkUIService.MessageFormat format)
Specifies whether to use a brief format (the default) or a banner format.

Parameters:
format - a ApplicationLinkUIService.MessageFormat; cannot be null
Returns:
the same MessageBuilder instance

contentHtml

ApplicationLinkUIService.MessageBuilder contentHtml(String contentHtml)
Adds custom content to the message. The content may contain HTML markup and will not be escaped.

Parameters:
contentHtml - an HTML string; cannot be null
Returns:
the same MessageBuilder instance

getHtml

String getHtml()
Returns the message/banner as an HTML string.

If using the ApplicationLinkUIService.MessageFormat.BANNER format (the default), this is a <div> element; for the ApplicationLinkUIService.MessageFormat.INLINE format, it is a <span>.



Copyright © 2015 Atlassian. All rights reserved.