Package org.exoplatform.portal.branding
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final org.exoplatform.commons.api.settings.data.Contextstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final org.exoplatform.commons.api.settings.data.Scopestatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final longstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.exoplatform.portal.branding.BrandingService
BRANDING_UPDATED_EVENT -
Constructor Summary
ConstructorsConstructorDescriptionBrandingServiceImpl(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 Summary
Modifier and TypeMethodDescriptionorg.exoplatform.portal.branding.model.BrandingGet all the branding informationorg.exoplatform.portal.branding.model.BrandinggetBrandingInformation(boolean retrieveBinaries) org.exoplatform.portal.branding.model.Backgroundorg.exoplatform.portal.branding.model.Faviconlongorg.exoplatform.portal.branding.model.BackgroundgetLoginSubtitle(Locale locale) getLoginTitle(Locale locale) org.exoplatform.portal.branding.model.LogogetLogo()org.exoplatform.portal.branding.model.Backgroundorg.exoplatform.portal.branding.model.Backgroundorg.exoplatform.portal.branding.model.Backgroundvoidstart()voidstop()voidupdateBrandingInformation(org.exoplatform.portal.branding.model.Branding branding) voidupdateCompanyLink(String companyLink) voidupdateCompanyName(String companyName) voidupdateFavicon(org.exoplatform.portal.branding.model.Favicon favicon) voidupdateLastUpdatedTime(long lastUpdatedTimestamp) voidupdateLoginBackground(org.exoplatform.portal.branding.model.Background loginBackground) voidupdateLoginBackgroundTextColor(String textColor) voidupdateLogo(org.exoplatform.portal.branding.model.Logo logo) voidupdateSiteName(String siteName) voidupdateThemeStyle(Map<String, String> themeStyle)
-
Field Details
-
BRANDING_RESET_ATTACHMENT_ID
- See Also:
-
BRANDING_LOGO_BASE_PATH
- See Also:
-
BRANDING_FAVICON_BASE_PATH
- See Also:
-
BRANDING_LOGIN_BG_BASE_PATH
- See Also:
-
BRANDING_PAGE_BG_BASE_PATH
- See Also:
-
BRANDING_TOP_BAR_BG_BASE_PATH
- See Also:
-
BRANDING_SIDEBAR_BG_BASE_PATH
- See Also:
-
BRANDING_DRAWER_BG_BASE_PATH
- See Also:
-
BRANDING_COMPANY_NAME_INIT_PARAM
- See Also:
-
BRANDING_SITE_NAME_INIT_PARAM
- See Also:
-
BRANDING_COMPANY_LINK_INIT_PARAM
- See Also:
-
BRANDING_LOGIN_TITLE_PARAM
- See Also:
-
BRANDING_LOGIN_SUBTITLE_PARAM
- See Also:
-
BRANDING_LOGIN_BG_INIT_PARAM
- See Also:
-
BRANDING_LOGO_INIT_PARAM
- See Also:
-
BRANDING_FAVICON_INIT_PARAM
- See Also:
-
BRANDING_COMPANY_NAME_SETTING_KEY
- See Also:
-
BRANDING_SITE_NAME_SETTING_KEY
- See Also:
-
BRANDING_LOGIN_TEXT_COLOR_KEY
- See Also:
-
BRANDING_TITLE_SETTING_KEY
- See Also:
-
BRANDING_SUBTITLE_SETTING_KEY
- See Also:
-
BRANDING_COMPANY_LINK_SETTING_KEY
- See Also:
-
BRANDING_THEME_LESS_PATH
- See Also:
-
BRANDING_THEME_VARIABLES
- See Also:
-
BRANDING_LOGO_ID_SETTING_KEY
- See Also:
-
BRANDING_FAVICON_ID_SETTING_KEY
- See Also:
-
BRANDING_LOGIN_BG_ID_SETTING_KEY
- See Also:
-
BRANDING_PAGE_BG_ID_SETTING_KEY
- See Also:
-
BRANDING_TOP_BAR_BG_ID_SETTING_KEY
- See Also:
-
BRANDING_SIDEBAR_BG_ID_SETTING_KEY
- See Also:
-
BRANDING_DRAWER_BG_ID_SETTING_KEY
- See Also:
-
TOP_BAR_BG_IMAGE_THEME_STYLE_KEY
- See Also:
-
BRANDING_CUSTOM_CSS
- See Also:
-
SIDEBAR_BG_IMAGE_THEME_STYLE_KEY
- See Also:
-
DRAWER_BG_IMAGE_THEME_STYLE_KEY
- See Also:
-
BRANDING_PAGE_BG_COLOR_KEY
- See Also:
-
BRANDING_PAGE_BG_REPEAT_KEY
- See Also:
-
BRANDING_PAGE_BG_EFFECT_KEY
- See Also:
-
BRANDING_PAGE_WIDTH_KEY
- See Also:
-
BRANDING_PAGE_BG_POSITION_KEY
- See Also:
-
BRANDING_PAGE_BG_SIZE_KEY
- See Also:
-
BRANDING_CUSTOM_STYLE_FEATURE
- See Also:
-
BRANDING_LAST_UPDATED_TIME_KEY
- See Also:
-
FILE_API_NAME_SPACE
- See Also:
-
LOGO_NAME
- See Also:
-
FAVICON_NAME
- See Also:
-
LOGIN_BACKGROUND_NAME
- See Also:
-
TOP_BAR_BACKGROUND_NAME
- See Also:
-
SIDEBAR_BACKGROUND_NAME
- See Also:
-
DRAWER_BACKGROUND_NAME
- See Also:
-
PAGE_BACKGROUND_NAME
- See Also:
-
BRANDING_DEFAULT_LOGO_PATH
- See Also:
-
BRANDING_DEFAULT_FAVICON_PATH
- See Also:
-
BRANDING_CONTEXT
public static final org.exoplatform.commons.api.settings.data.Context BRANDING_CONTEXT -
BRANDING_SCOPE
public static final org.exoplatform.commons.api.settings.data.Scope BRANDING_SCOPE -
DEFAULT_LAST_MODIFED
public static final long DEFAULT_LAST_MODIFED
-
-
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:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()- Specified by:
stopin interfaceorg.picocontainer.Startable
-
getThemeCSSContent
- Specified by:
getThemeCSSContentin interfaceorg.exoplatform.portal.branding.BrandingService
-
getBrandingInformation
public org.exoplatform.portal.branding.model.Branding getBrandingInformation()Get all the branding information- Specified by:
getBrandingInformationin interfaceorg.exoplatform.portal.branding.BrandingService- Returns:
- The branding object containing all information
-
getBrandingInformation
public org.exoplatform.portal.branding.model.Branding getBrandingInformation(boolean retrieveBinaries) - Specified by:
getBrandingInformationin interfaceorg.exoplatform.portal.branding.BrandingService
-
getLastUpdatedTime
public long getLastUpdatedTime()- Specified by:
getLastUpdatedTimein interfaceorg.exoplatform.portal.branding.BrandingService
-
updateBrandingInformation
public void updateBrandingInformation(org.exoplatform.portal.branding.model.Branding branding) - Specified by:
updateBrandingInformationin interfaceorg.exoplatform.portal.branding.BrandingService
-
getCompanyName
- Specified by:
getCompanyNamein interfaceorg.exoplatform.portal.branding.BrandingService
-
getCompanyLink
- Specified by:
getCompanyLinkin interfaceorg.exoplatform.portal.branding.BrandingService
-
getSiteName
- Specified by:
getSiteNamein interfaceorg.exoplatform.portal.branding.BrandingService
-
getPageBackgroundColor
- Specified by:
getPageBackgroundColorin interfaceorg.exoplatform.portal.branding.BrandingService
-
getPageBackgroundRepeat
- Specified by:
getPageBackgroundRepeatin interfaceorg.exoplatform.portal.branding.BrandingService
-
getPageBackgroundEffect
- Specified by:
getPageBackgroundEffectin interfaceorg.exoplatform.portal.branding.BrandingService
-
getPageBackgroundImageUrl
- Specified by:
getPageBackgroundImageUrlin interfaceorg.exoplatform.portal.branding.BrandingService
-
getPageWidth
- Specified by:
getPageWidthin interfaceorg.exoplatform.portal.branding.BrandingService
-
getCustomCss
- Specified by:
getCustomCssin interfaceorg.exoplatform.portal.branding.BrandingService
-
getPageBackgroundPosition
- Specified by:
getPageBackgroundPositionin interfaceorg.exoplatform.portal.branding.BrandingService
-
getPageBackgroundSize
- Specified by:
getPageBackgroundSizein interfaceorg.exoplatform.portal.branding.BrandingService
-
getLoginBackgroundTextColor
- Specified by:
getLoginBackgroundTextColorin interfaceorg.exoplatform.portal.branding.BrandingService
-
updateCompanyName
- Specified by:
updateCompanyNamein interfaceorg.exoplatform.portal.branding.BrandingService
-
updateCompanyLink
- Specified by:
updateCompanyLinkin interfaceorg.exoplatform.portal.branding.BrandingService
-
updateSiteName
- Specified by:
updateSiteNamein interfaceorg.exoplatform.portal.branding.BrandingService
-
updateLoginBackgroundTextColor
- Specified by:
updateLoginBackgroundTextColorin interfaceorg.exoplatform.portal.branding.BrandingService
-
getLogoId
- Specified by:
getLogoIdin interfaceorg.exoplatform.portal.branding.BrandingService
-
getFaviconId
- Specified by:
getFaviconIdin interfaceorg.exoplatform.portal.branding.BrandingService
-
getLoginBackgroundId
- Specified by:
getLoginBackgroundIdin interfaceorg.exoplatform.portal.branding.BrandingService
-
getPageBackgroundId
- Specified by:
getPageBackgroundIdin interfaceorg.exoplatform.portal.branding.BrandingService
-
getTopBarBackgroundId
- Specified by:
getTopBarBackgroundIdin interfaceorg.exoplatform.portal.branding.BrandingService
-
getSideBarBackgroundId
- Specified by:
getSideBarBackgroundIdin interfaceorg.exoplatform.portal.branding.BrandingService
-
getDrawerBackgroundId
- Specified by:
getDrawerBackgroundIdin interfaceorg.exoplatform.portal.branding.BrandingService
-
getLogo
public org.exoplatform.portal.branding.model.Logo getLogo()- Specified by:
getLogoin interfaceorg.exoplatform.portal.branding.BrandingService
-
getFavicon
public org.exoplatform.portal.branding.model.Favicon getFavicon()- Specified by:
getFaviconin interfaceorg.exoplatform.portal.branding.BrandingService
-
getLoginBackground
public org.exoplatform.portal.branding.model.Background getLoginBackground()- Specified by:
getLoginBackgroundin interfaceorg.exoplatform.portal.branding.BrandingService
-
getPageBackground
public org.exoplatform.portal.branding.model.Background getPageBackground()- Specified by:
getPageBackgroundin interfaceorg.exoplatform.portal.branding.BrandingService
-
getTopBarBackground
public org.exoplatform.portal.branding.model.Background getTopBarBackground()- Specified by:
getTopBarBackgroundin interfaceorg.exoplatform.portal.branding.BrandingService
-
getSideBarBackground
public org.exoplatform.portal.branding.model.Background getSideBarBackground()- Specified by:
getSideBarBackgroundin interfaceorg.exoplatform.portal.branding.BrandingService
-
getDrawerBackground
public org.exoplatform.portal.branding.model.Background getDrawerBackground()- Specified by:
getDrawerBackgroundin interfaceorg.exoplatform.portal.branding.BrandingService
-
getLogoPath
- Specified by:
getLogoPathin interfaceorg.exoplatform.portal.branding.BrandingService
-
getFaviconPath
- Specified by:
getFaviconPathin interfaceorg.exoplatform.portal.branding.BrandingService
-
getLoginBackgroundPath
- Specified by:
getLoginBackgroundPathin interfaceorg.exoplatform.portal.branding.BrandingService
-
getPageBackgroundPath
- Specified by:
getPageBackgroundPathin interfaceorg.exoplatform.portal.branding.BrandingService
-
getTopBarBackgroundPath
- Specified by:
getTopBarBackgroundPathin interfaceorg.exoplatform.portal.branding.BrandingService
-
getSideBarBackgroundPath
- Specified by:
getSideBarBackgroundPathin interfaceorg.exoplatform.portal.branding.BrandingService
-
getDrawerBackgroundPath
- Specified by:
getDrawerBackgroundPathin interfaceorg.exoplatform.portal.branding.BrandingService
-
updateLastUpdatedTime
public void updateLastUpdatedTime(long lastUpdatedTimestamp) - Specified by:
updateLastUpdatedTimein interfaceorg.exoplatform.portal.branding.BrandingService
-
updateLogo
public void updateLogo(org.exoplatform.portal.branding.model.Logo logo) - Specified by:
updateLogoin interfaceorg.exoplatform.portal.branding.BrandingService
-
updateFavicon
public void updateFavicon(org.exoplatform.portal.branding.model.Favicon favicon) - Specified by:
updateFaviconin interfaceorg.exoplatform.portal.branding.BrandingService
-
updateLoginBackground
public void updateLoginBackground(org.exoplatform.portal.branding.model.Background loginBackground) - Specified by:
updateLoginBackgroundin interfaceorg.exoplatform.portal.branding.BrandingService
-
updateThemeStyle
- Specified by:
updateThemeStylein interfaceorg.exoplatform.portal.branding.BrandingService
-
getThemeStyle
- Specified by:
getThemeStylein interfaceorg.exoplatform.portal.branding.BrandingService
-
getDefaultThemeStyle
- Specified by:
getDefaultThemeStylein interfaceorg.exoplatform.portal.branding.BrandingService
-
getLoginTitle
- Specified by:
getLoginTitlein interfaceorg.exoplatform.portal.branding.BrandingService
-
getLoginSubtitle
- Specified by:
getLoginSubtitlein interfaceorg.exoplatform.portal.branding.BrandingService
-
getLoginTitle
- Specified by:
getLoginTitlein interfaceorg.exoplatform.portal.branding.BrandingService
-
getLoginSubtitle
- Specified by:
getLoginSubtitlein interfaceorg.exoplatform.portal.branding.BrandingService
-
getDefaultLanguage
- Specified by:
getDefaultLanguagein interfaceorg.exoplatform.portal.branding.BrandingService
-