Class BrandingUtil
- java.lang.Object
-
- com.logicaldoc.enterprise.branding.BrandingUtil
-
public class BrandingUtil extends Object
Some utility methods related to the branding- Since:
- 8.7.3
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description BrandingUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Branding
getBranding(String tenantName)
Retrieves the right branding to use for the given tenantstatic String
getSkin(Branding branding, javax.servlet.http.HttpServletRequest request)
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 Detail
-
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
-
processFooter
public static String processFooter(Branding branding, String locale, javax.servlet.http.HttpServletRequest request)
Processes the branding's footer 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
public static Branding getBranding(String tenantName)
Retrieves the right branding to use for the given tenant- Parameters:
tenantName
- name of the tenant- Returns:
- the branding to use
-
-