Class PortalLoginPageDataContext
java.lang.Object
com.atlassian.servicedesk.api.portal.login.PortalLoginPageDataContext
An object that represents the data context useful to display the login page in the customer portal.
-
Constructor Summary
ConstructorsConstructorDescriptionPortalLoginPageDataContext
(String signUpPageUrl, String passwordResetPageUrl, String logoUrl, String bannerImageUrl, String bannerBackgroundColor, String buttonBackgroundColor, String buttonTextColor, String portalLoginAnnouncementSubject, String portalLoginAnnouncementMessage) -
Method Summary
Modifier and TypeMethodDescriptionReturns the banner background colour hexadecimal code.Returns the banner background image relative URL.Returns the button background colour hexadecimal code.Returns the button text colour hexadecimal code.Returns the global logo image relative URL.Returns the relative URL to the forgot password page when supported.Returns the portal login announcement message enriched with HTML.Returns the portal login announcement subject enriched with HTML.Returns the relative URL to the sign up page when sign up is enabled.
-
Constructor Details
-
PortalLoginPageDataContext
public PortalLoginPageDataContext(@Nullable String signUpPageUrl, @Nullable String passwordResetPageUrl, @Nullable String logoUrl, @Nullable String bannerImageUrl, @Nullable String bannerBackgroundColor, @Nullable String buttonBackgroundColor, @Nullable String buttonTextColor, @Nullable String portalLoginAnnouncementSubject, @Nullable String portalLoginAnnouncementMessage)
-
-
Method Details
-
getSignUpPageUrl
Returns the relative URL to the sign up page when sign up is enabled. The URL will be tailored for the specific portal or for the global help center otherwise depending on the URL path context provided.- Returns:
- An optional containing the relative URL to the sign up page when sign up is enabled.
-
getPasswordResetPageUrl
Returns the relative URL to the forgot password page when supported. The URL will be tailored for the specific portal or for the global help center otherwise depending on the URL path context provided.- Returns:
- An optional containing the relative URL to the forgot password page when supported.
-
getLogoUrl
Returns the global logo image relative URL.- Returns:
- An optional containing the relative URL of the global logo image.
-
getBannerImageUrl
Returns the banner background image relative URL.- Returns:
- An optional containing the relative URL of the banner background image.
-
getBannerBackgroundColor
Returns the banner background colour hexadecimal code.- Returns:
- An optional containing the hexadecimal code of the banner background colour.
-
getButtonBackgroundColor
Returns the button background colour hexadecimal code.- Returns:
- An optional containing the hexadecimal code of the button background colour.
-
getButtonTextColor
Returns the button text colour hexadecimal code.- Returns:
- An optional containing the hexadecimal code of the button text colour.
-
getPortalLoginAnnouncementSubject
Returns the portal login announcement subject enriched with HTML. The subject will be returned translated if a locale is passed on to the HTTP header (AcceptLanguage) and a translation exists for the subject.- Returns:
- An optional containing the portal login announcement subject.
-
getPortalLoginAnnouncementMessage
Returns the portal login announcement message enriched with HTML. The message will be returned translated if a locale is passed on to the HTTP header (AcceptLanguage) and a translation exists for the message.- Returns:
- An optional containing the portal login announcement message.
-