Package org.exoplatform.portal.branding
Interface BrandingService
public interface BrandingService
-
Method Summary
Modifier and TypeMethodDescriptiongetBrandingInformation(boolean retrieveBinaries) longgetLoginSubtitle(Locale locale) getLoginTitle(Locale locale) getLogo()voidupdateBrandingInformation(Branding branding) Update the branding information Missing information in the branding object are not updated.voidupdateCompanyLink(String companyLink) voidupdateCompanyName(String companyName) voidupdateFavicon(Favicon favicon) Update branding favicon.voidupdateLastUpdatedTime(long lastUpdatedTimestamp) Updated last updated time of one of Branding propertiesvoidupdateLoginBackground(Background loginBackground) Update login background.voidupdateLoginBackgroundTextColor(String textColor) Updates the login background text colorvoidupdateLogo(Logo logo) Update branding logo.voidupdateSiteName(String siteName) voidupdateThemeStyle(Map<String, String> themeStyle) Updates CSS variables that defines the chosen theme and that will be applied and server on UIvoidupdateTopBarTheme(String style)
-
Method Details
-
getBrandingInformation
Branding getBrandingInformation() -
getBrandingInformation
-
updateBrandingInformation
Update the branding information Missing information in the branding object are not updated.- Parameters:
branding- The new branding information
-
getCompanyName
String getCompanyName() -
getSiteName
String getSiteName() -
getCompanyLink
String getCompanyLink() -
updateCompanyName
-
updateCompanyLink
-
updateSiteName
-
getTopBarTheme
String getTopBarTheme() -
getLogoId
Long getLogoId() -
getFaviconId
Long getFaviconId()- Returns:
- Branding Favicon File technical identifier
-
getLoginBackgroundId
Long getLoginBackgroundId()- Returns:
- Login Background File technical identifier
-
getPageBackground
Background getPageBackground()- Returns:
- Page Background File details
-
getPageBackgroundId
Long getPageBackgroundId()- Returns:
- Page Background File technical identifier
-
getPageBackgroundColor
String getPageBackgroundColor()- Returns:
- Page Background Color
-
getPageBackgroundSize
String getPageBackgroundSize()- Returns:
- Page Background Size
-
getPageBackgroundPosition
String getPageBackgroundPosition()- Returns:
- Page Background Position
-
getPageBackgroundRepeat
String getPageBackgroundRepeat()- Returns:
- Page Background repeat directive
-
getLogo
Logo getLogo() -
getFavicon
Favicon getFavicon()- Returns:
- configured custom
Faviconelse returns default one
-
getLoginBackground
Background getLoginBackground()- Returns:
- configured custom
Backgroundelse returns default one if exists else null
-
getLoginBackgroundTextColor
String getLoginBackgroundTextColor()- Returns:
- Login Text Color displayed on top of the Background
-
getLogoPath
String getLogoPath()- Returns:
LogoURL to retrieve logo image
-
getFaviconPath
String getFaviconPath()- Returns:
FaviconURL to retrieve favicon image
-
getLoginBackgroundPath
String getLoginBackgroundPath()- Returns:
BackgroundURL to retrieve login background
-
getPageBackgroundPath
String getPageBackgroundPath()- Returns:
BackgroundURL to retrieve page background
-
getPageWidth
String getPageWidth()- Returns:
- Page width
-
getCustomCss
String getCustomCss()- Returns:
- Page custom additional css
-
updateTopBarTheme
-
updateLogo
Update branding logo. If the logo object contains the image data, they are used, otherwise if the uploadId exists it is used to retrieve the uploaded resource. If there is no data, nor uploadId, the logo is deleted.- Parameters:
logo- The logo object
-
updateFavicon
Update branding favicon. If the favicon object contains the image data, they are used, otherwise if the uploadId exists it is used to retrieve the uploaded resource. If there is no data, nor uploadId, the favicon is deleted.- Parameters:
favicon- TheFaviconobject to update
-
updateLoginBackground
Update login background. If the object contains the image data, they are used, otherwise if the uploadId exists it is used to retrieve the uploaded resource. If there is no data, nor uploadId, the login background is deleted.- Parameters:
loginBackground- TheBackgroundobject to update
-
getThemeCSSContent
String getThemeCSSContent()- Returns:
- CSS content of colors for theme
-
updateLastUpdatedTime
void updateLastUpdatedTime(long lastUpdatedTimestamp) Updated last updated time of one of Branding properties- Parameters:
lastUpdatedTimestamp- Timestamp in milliseconds
-
getLastUpdatedTime
long getLastUpdatedTime()- Returns:
- last updated time in milliseconds
-
updateThemeStyle
Updates CSS variables that defines the chosen theme and that will be applied and server on UI- Parameters:
themeStyle-Mapwith variable name as key and variable value as map value
-
updateLoginBackgroundTextColor
Updates the login background text color- Parameters:
textColor- text color in hex representation like #fff
-
getThemeStyle
- Returns:
Mapwith variable name as key and variable value as map value
-
getLoginTitle
- Returns:
Mapof login titles per language
-
getLoginTitle
-
getLoginSubtitle
- Returns:
Mapof login subtitles per language
-
getLoginSubtitle
-
getDefaultLanguage
String getDefaultLanguage()- Returns:
- default platform language
-