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 BrandinggetBranding(String tenantName) Retrieves the right branding to use for the given tenantstatic StringRetrieves the name of the skin to use for the current requeststatic StringprocessBottom(Branding branding, String locale, javax.servlet.http.HttpServletRequest request) Processes the branding's bottom using the Automation and returns the resultstatic StringprocessCss(Branding branding, String locale, javax.servlet.http.HttpServletRequest request) Processes the branding's CSS using the Automation and returns the resultstatic StringprocessFooter(Branding branding, String locale, javax.servlet.http.HttpServletRequest request) Processes the branding's footer using the Automation and returns the resultstatic StringprocessHead(Branding branding, String locale, javax.servlet.http.HttpServletRequest request) Processes the branding's head using the Automation and returns the resultstatic StringprocessTop(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
-