Package de.xima.fc.gui.common.utils
Class LogoLink
- java.lang.Object
-
- de.xima.fc.gui.common.utils.LogoLink
-
- All Implemented Interfaces:
Serializable
public final class LogoLink extends Object implements Serializable
Represents the URL to which the user is redirected when the click on the formcycle or FORM.CLOUD logo at the top left.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LogoLink
forCurrentView(IView currentView, Mandant client, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
For a given page, finds the URL to which to redirect when the user clicks on the formcycle logo on that page.String
getHref()
String
getTarget()
-
-
-
Method Detail
-
forCurrentView
public static LogoLink forCurrentView(IView currentView, Mandant client, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
For a given page, finds the URL to which to redirect when the user clicks on the formcycle logo on that page.When not logged in: this redirects to the formcycle product web page, either the FORM.CLOUD or the formcycle web page.
When logged in: On the master server, this redirects to the dashboard; and on an inbox frontend server, this redirects to the inbox.
- Parameters:
currentView
- The view which the user requested.client
- The current client scope,null
for the system scope.request
- Current HTTP request.response
- Current HTTP response.- Returns:
- The URL for the formcycle logo.
-
getHref
public String getHref()
- Returns:
- The URL to which to redirect.
-
getTarget
public String getTarget()
- Returns:
- The target where to open the URL.
-
-