Class RoutingContexts
java.lang.Object
de.xima.fc.user_portal.route.RoutingContexts
-
Method Summary
Modifier and TypeMethodDescriptionformRecordRoutingContext(String formRecordUuid, String portalAlias) Creates a routing context for a specific form record, identified by its UUID.formRecordRoutingContext(javax.servlet.http.HttpServletRequest request) Creates a routing context for a specific portal, identified by its alias.static IRoutingContextCreates a generic routing context without any specific data.portalRoutingContext(String portalId) Creates a routing context for a specific portal, identified by its alias.portalRoutingContext(javax.servlet.http.HttpServletRequest request) Creates a routing context for a specific portal, identified by its alias.
-
Method Details
-
genericRoutingContext
Creates a generic routing context without any specific data.- Returns:
- A generic routing context.
-
portalRoutingContext
Creates a routing context for a specific portal, identified by its alias.- Parameters:
portalId- The alias of the portal.- Returns:
- A portal routing context, or empty when the portal alias is blank.
-
formRecordRoutingContext
public static Optional<IRoutingContext.IFormRecordRoutingContext> formRecordRoutingContext(String formRecordUuid, String portalAlias) Creates a routing context for a specific form record, identified by its UUID.- Parameters:
formRecordUuid- The UUID of the form record.- Returns:
- A form record routing context, or empty when the form record UUID is blank.
-
portalRoutingContext
public static Optional<IRoutingContext.IPortalRoutingContext> portalRoutingContext(javax.servlet.http.HttpServletRequest request) Creates a routing context for a specific portal, identified by its alias. Extracts the portal alias from the given request.- Parameters:
request- The request to extract the portal alias from.- Returns:
- A portal routing context, or empty when no portal alias could be extracted from the request.
-
formRecordRoutingContext
public static Optional<IRoutingContext.IFormRecordRoutingContext> formRecordRoutingContext(javax.servlet.http.HttpServletRequest request) Creates a routing context for a specific portal, identified by its alias. Extracts the portal alias from the given request.- Parameters:
request- The request to extract the portal alias from.- Returns:
- A portal routing context, or empty when no portal alias could be extracted from the request.
-