Class BrandingServiceImpl

java.lang.Object
org.exoplatform.portal.branding.BrandingServiceImpl
All Implemented Interfaces:
org.exoplatform.portal.branding.BrandingService, org.picocontainer.Startable

public class BrandingServiceImpl extends Object implements org.exoplatform.portal.branding.BrandingService, org.picocontainer.Startable
  • Field Details

  • Constructor Details

    • BrandingServiceImpl

      public BrandingServiceImpl(org.exoplatform.container.PortalContainer container, org.exoplatform.container.configuration.ConfigurationManager configurationManager, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.commons.file.services.FileService fileService, org.exoplatform.upload.UploadService uploadService, org.exoplatform.services.resources.LocaleConfigService localeConfigService, org.exoplatform.services.listener.ListenerService listenerService, UserACL userAcl, org.exoplatform.container.xml.InitParams initParams)
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface org.picocontainer.Startable
    • stop

      public void stop()
      Specified by:
      stop in interface org.picocontainer.Startable
    • getThemeCSSContent

      public String getThemeCSSContent()
      Specified by:
      getThemeCSSContent in interface org.exoplatform.portal.branding.BrandingService
    • getBrandingInformation

      public org.exoplatform.portal.branding.model.Branding getBrandingInformation()
      Get all the branding information
      Specified by:
      getBrandingInformation in interface org.exoplatform.portal.branding.BrandingService
      Returns:
      The branding object containing all information
    • getBrandingInformation

      public org.exoplatform.portal.branding.model.Branding getBrandingInformation(boolean retrieveBinaries)
      Specified by:
      getBrandingInformation in interface org.exoplatform.portal.branding.BrandingService
    • getLastUpdatedTime

      public long getLastUpdatedTime()
      Specified by:
      getLastUpdatedTime in interface org.exoplatform.portal.branding.BrandingService
    • updateBrandingInformation

      public void updateBrandingInformation(org.exoplatform.portal.branding.model.Branding branding)
      Specified by:
      updateBrandingInformation in interface org.exoplatform.portal.branding.BrandingService
    • getCompanyName

      public String getCompanyName()
      Specified by:
      getCompanyName in interface org.exoplatform.portal.branding.BrandingService
    • getCompanyLink

      public String getCompanyLink()
      Specified by:
      getCompanyLink in interface org.exoplatform.portal.branding.BrandingService
    • getSiteName

      public String getSiteName()
      Specified by:
      getSiteName in interface org.exoplatform.portal.branding.BrandingService
    • getPageBackgroundColor

      public String getPageBackgroundColor()
      Specified by:
      getPageBackgroundColor in interface org.exoplatform.portal.branding.BrandingService
    • getPageBackgroundRepeat

      public String getPageBackgroundRepeat()
      Specified by:
      getPageBackgroundRepeat in interface org.exoplatform.portal.branding.BrandingService
    • getPageBackgroundEffect

      public String getPageBackgroundEffect()
      Specified by:
      getPageBackgroundEffect in interface org.exoplatform.portal.branding.BrandingService
    • getPageBackgroundImageUrl

      public String getPageBackgroundImageUrl()
      Specified by:
      getPageBackgroundImageUrl in interface org.exoplatform.portal.branding.BrandingService
    • getPageWidth

      public String getPageWidth()
      Specified by:
      getPageWidth in interface org.exoplatform.portal.branding.BrandingService
    • getCustomCss

      public String getCustomCss()
      Specified by:
      getCustomCss in interface org.exoplatform.portal.branding.BrandingService
    • getPageBackgroundPosition

      public String getPageBackgroundPosition()
      Specified by:
      getPageBackgroundPosition in interface org.exoplatform.portal.branding.BrandingService
    • getPageBackgroundSize

      public String getPageBackgroundSize()
      Specified by:
      getPageBackgroundSize in interface org.exoplatform.portal.branding.BrandingService
    • getLoginBackgroundTextColor

      public String getLoginBackgroundTextColor()
      Specified by:
      getLoginBackgroundTextColor in interface org.exoplatform.portal.branding.BrandingService
    • updateCompanyName

      public void updateCompanyName(String companyName)
      Specified by:
      updateCompanyName in interface org.exoplatform.portal.branding.BrandingService
    • updateCompanyLink

      public void updateCompanyLink(String companyLink)
      Specified by:
      updateCompanyLink in interface org.exoplatform.portal.branding.BrandingService
    • updateSiteName

      public void updateSiteName(String siteName)
      Specified by:
      updateSiteName in interface org.exoplatform.portal.branding.BrandingService
    • updateLoginBackgroundTextColor

      public void updateLoginBackgroundTextColor(String textColor)
      Specified by:
      updateLoginBackgroundTextColor in interface org.exoplatform.portal.branding.BrandingService
    • getLogoId

      public Long getLogoId()
      Specified by:
      getLogoId in interface org.exoplatform.portal.branding.BrandingService
    • getFaviconId

      public Long getFaviconId()
      Specified by:
      getFaviconId in interface org.exoplatform.portal.branding.BrandingService
    • getLoginBackgroundId

      public Long getLoginBackgroundId()
      Specified by:
      getLoginBackgroundId in interface org.exoplatform.portal.branding.BrandingService
    • getPageBackgroundId

      public Long getPageBackgroundId()
      Specified by:
      getPageBackgroundId in interface org.exoplatform.portal.branding.BrandingService
    • getTopBarBackgroundId

      public Long getTopBarBackgroundId()
      Specified by:
      getTopBarBackgroundId in interface org.exoplatform.portal.branding.BrandingService
    • getSideBarBackgroundId

      public Long getSideBarBackgroundId()
      Specified by:
      getSideBarBackgroundId in interface org.exoplatform.portal.branding.BrandingService
    • getDrawerBackgroundId

      public Long getDrawerBackgroundId()
      Specified by:
      getDrawerBackgroundId in interface org.exoplatform.portal.branding.BrandingService
    • getLogo

      public org.exoplatform.portal.branding.model.Logo getLogo()
      Specified by:
      getLogo in interface org.exoplatform.portal.branding.BrandingService
    • getFavicon

      public org.exoplatform.portal.branding.model.Favicon getFavicon()
      Specified by:
      getFavicon in interface org.exoplatform.portal.branding.BrandingService
    • getLoginBackground

      public org.exoplatform.portal.branding.model.Background getLoginBackground()
      Specified by:
      getLoginBackground in interface org.exoplatform.portal.branding.BrandingService
    • getPageBackground

      public org.exoplatform.portal.branding.model.Background getPageBackground()
      Specified by:
      getPageBackground in interface org.exoplatform.portal.branding.BrandingService
    • getTopBarBackground

      public org.exoplatform.portal.branding.model.Background getTopBarBackground()
      Specified by:
      getTopBarBackground in interface org.exoplatform.portal.branding.BrandingService
    • getSideBarBackground

      public org.exoplatform.portal.branding.model.Background getSideBarBackground()
      Specified by:
      getSideBarBackground in interface org.exoplatform.portal.branding.BrandingService
    • getDrawerBackground

      public org.exoplatform.portal.branding.model.Background getDrawerBackground()
      Specified by:
      getDrawerBackground in interface org.exoplatform.portal.branding.BrandingService
    • getLogoPath

      public String getLogoPath()
      Specified by:
      getLogoPath in interface org.exoplatform.portal.branding.BrandingService
    • getFaviconPath

      public String getFaviconPath()
      Specified by:
      getFaviconPath in interface org.exoplatform.portal.branding.BrandingService
    • getLoginBackgroundPath

      public String getLoginBackgroundPath()
      Specified by:
      getLoginBackgroundPath in interface org.exoplatform.portal.branding.BrandingService
    • getPageBackgroundPath

      public String getPageBackgroundPath()
      Specified by:
      getPageBackgroundPath in interface org.exoplatform.portal.branding.BrandingService
    • getTopBarBackgroundPath

      public String getTopBarBackgroundPath()
      Specified by:
      getTopBarBackgroundPath in interface org.exoplatform.portal.branding.BrandingService
    • getSideBarBackgroundPath

      public String getSideBarBackgroundPath()
      Specified by:
      getSideBarBackgroundPath in interface org.exoplatform.portal.branding.BrandingService
    • getDrawerBackgroundPath

      public String getDrawerBackgroundPath()
      Specified by:
      getDrawerBackgroundPath in interface org.exoplatform.portal.branding.BrandingService
    • updateLastUpdatedTime

      public void updateLastUpdatedTime(long lastUpdatedTimestamp)
      Specified by:
      updateLastUpdatedTime in interface org.exoplatform.portal.branding.BrandingService
    • updateLogo

      public void updateLogo(org.exoplatform.portal.branding.model.Logo logo)
      Specified by:
      updateLogo in interface org.exoplatform.portal.branding.BrandingService
    • updateFavicon

      public void updateFavicon(org.exoplatform.portal.branding.model.Favicon favicon)
      Specified by:
      updateFavicon in interface org.exoplatform.portal.branding.BrandingService
    • updateLoginBackground

      public void updateLoginBackground(org.exoplatform.portal.branding.model.Background loginBackground)
      Specified by:
      updateLoginBackground in interface org.exoplatform.portal.branding.BrandingService
    • updateThemeStyle

      public void updateThemeStyle(Map<String,String> themeStyle)
      Specified by:
      updateThemeStyle in interface org.exoplatform.portal.branding.BrandingService
    • getThemeStyle

      public Map<String,String> getThemeStyle()
      Specified by:
      getThemeStyle in interface org.exoplatform.portal.branding.BrandingService
    • getDefaultThemeStyle

      public Map<String,String> getDefaultThemeStyle()
      Specified by:
      getDefaultThemeStyle in interface org.exoplatform.portal.branding.BrandingService
    • getLoginTitle

      public Map<String,String> getLoginTitle()
      Specified by:
      getLoginTitle in interface org.exoplatform.portal.branding.BrandingService
    • getLoginSubtitle

      public Map<String,String> getLoginSubtitle()
      Specified by:
      getLoginSubtitle in interface org.exoplatform.portal.branding.BrandingService
    • getLoginTitle

      public String getLoginTitle(Locale locale)
      Specified by:
      getLoginTitle in interface org.exoplatform.portal.branding.BrandingService
    • getLoginSubtitle

      public String getLoginSubtitle(Locale locale)
      Specified by:
      getLoginSubtitle in interface org.exoplatform.portal.branding.BrandingService
    • getDefaultLanguage

      public String getDefaultLanguage()
      Specified by:
      getDefaultLanguage in interface org.exoplatform.portal.branding.BrandingService