Class BrandingUtil
java.lang.Object
com.logicaldoc.enterprise.branding.BrandingUtil
Some utility methods related to the branding
- Since:
- 8.7.3
- Author:
- Marco Meschieri - LogicalDOC
-
Method Summary
Modifier and TypeMethodDescriptionstatic Branding
getBranding
(String tenantName) Retrieves the right branding to use for the given tenantstatic String
Retrieves the name of the skin to use for the current requeststatic String
processBottom
(Branding branding, String locale, javax.servlet.http.HttpServletRequest request) Processes the branding's bottom using the Automation and returns the resultstatic String
processCss
(Branding branding, String locale, javax.servlet.http.HttpServletRequest request) Processes the branding's CSS using the Automation and returns the resultstatic String
processFooter
(Branding branding, String locale, javax.servlet.http.HttpServletRequest request) Processes the branding's footer using the Automation and returns the resultstatic String
processHead
(Branding branding, String locale, javax.servlet.http.HttpServletRequest request) Processes the branding's head using the Automation and returns the resultstatic String
processTop
(Branding branding, String locale, javax.servlet.http.HttpServletRequest request) Processes the branding's top using the Automation and returns the result
-
Method Details
-
processCss
public static String processCss(Branding branding, String locale, javax.servlet.http.HttpServletRequest request) Processes the branding's CSS using the Automation and returns the result- Parameters:
branding
- the current brandinglocale
- the currently used localerequest
- the current HTTP request- Returns:
- the processed content
-
processHead
public static String processHead(Branding branding, String locale, javax.servlet.http.HttpServletRequest request) Processes the branding's head using the Automation and returns the result- Parameters:
branding
- the current brandinglocale
- the currently used localerequest
- the current HTTP request- Returns:
- the processed content
-
processTop
public static String processTop(Branding branding, String locale, javax.servlet.http.HttpServletRequest request) Processes the branding's top using the Automation and returns the result- Parameters:
branding
- the current brandinglocale
- the currently used localerequest
- the current HTTP request- Returns:
- the processed content
-
processBottom
public static String processBottom(Branding branding, String locale, javax.servlet.http.HttpServletRequest request) Processes the branding's bottom using the Automation and returns the result- Parameters:
branding
- the current brandinglocale
- the currently used localerequest
- the current HTTP request- Returns:
- the processed content
-
getBranding
Retrieves the right branding to use for the given tenant- Parameters:
tenantName
- name of the tenant- Returns:
- the branding to use
-
getSkin
Retrieves the name of the skin to use for the current request- Parameters:
branding
- current brandingrequest
- current request- Returns:
- the skin name
-