|
|
@ -165,15 +165,27 @@ public class WhiteLabelManagementServiceImpl implements WhiteLabelManagementServ
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private WhiteLabelTheme getDefaultWhiteLabelTheme() {
|
|
|
|
private WhiteLabelTheme getDefaultWhiteLabelTheme() {
|
|
|
|
String footerText = getDefaultFooterText();
|
|
|
|
String footerText = getDefaultFooterText();
|
|
|
|
|
|
|
|
String pageTitle = getDefaultPageTitle();
|
|
|
|
WhiteLabelImage favicon = constructDefaultFaviconImage();
|
|
|
|
WhiteLabelImage favicon = constructDefaultFaviconImage();
|
|
|
|
WhiteLabelImage logo = constructDefaultLogoImage();
|
|
|
|
WhiteLabelImage logo = constructDefaultLogoImage();
|
|
|
|
WhiteLabelTheme defaultTheme = new WhiteLabelTheme();
|
|
|
|
WhiteLabelTheme defaultTheme = new WhiteLabelTheme();
|
|
|
|
defaultTheme.setFooterText(footerText);
|
|
|
|
defaultTheme.setFooterText(footerText);
|
|
|
|
|
|
|
|
defaultTheme.setPageTitle(pageTitle);
|
|
|
|
defaultTheme.setLogoImage(logo);
|
|
|
|
defaultTheme.setLogoImage(logo);
|
|
|
|
defaultTheme.setFaviconImage(favicon);
|
|
|
|
defaultTheme.setFaviconImage(favicon);
|
|
|
|
return defaultTheme;
|
|
|
|
return defaultTheme;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Get default whitelabel label page title from config
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private String getDefaultPageTitle() {
|
|
|
|
|
|
|
|
MetaDataConfiguration metaDataConfiguration = DeviceConfigurationManager.getInstance().
|
|
|
|
|
|
|
|
getDeviceManagementConfig().getMetaDataConfiguration();
|
|
|
|
|
|
|
|
WhiteLabelConfiguration whiteLabelConfiguration = metaDataConfiguration.getWhiteLabelConfiguration();
|
|
|
|
|
|
|
|
return whiteLabelConfiguration.getPageTitle();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Get default whitelabel label footer from config
|
|
|
|
* Get default whitelabel label footer from config
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -319,6 +331,7 @@ public class WhiteLabelManagementServiceImpl implements WhiteLabelManagementServ
|
|
|
|
whiteLabelTheme.setFaviconImage(faviconImage);
|
|
|
|
whiteLabelTheme.setFaviconImage(faviconImage);
|
|
|
|
whiteLabelTheme.setLogoImage(logoImage);
|
|
|
|
whiteLabelTheme.setLogoImage(logoImage);
|
|
|
|
whiteLabelTheme.setFooterText(whiteLabelThemeCreateRequest.getFooterText());
|
|
|
|
whiteLabelTheme.setFooterText(whiteLabelThemeCreateRequest.getFooterText());
|
|
|
|
|
|
|
|
whiteLabelTheme.setPageTitle(whiteLabelThemeCreateRequest.getPageTitle());
|
|
|
|
return whiteLabelTheme;
|
|
|
|
return whiteLabelTheme;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|