Class SpaceUtils

java.lang.Object
com.avoka.tm.util.SpaceUtils

public class SpaceUtils extends Object
Provides space utils for fluent API classes.
Since:
19.11.0
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getFormErrorPath(jakarta.servlet.http.HttpServletRequest request)
    Return the URL path to the Form Error page in the context of the requests Space.
    static String
    getNotAuthorizedPath(jakarta.servlet.http.HttpServletRequest request)
    Return the URL path to the Not Authorised page in the context of the requests Space.
    static Space
    getSpace(jakarta.servlet.http.HttpServletRequest request)
    Returns a space VO for the portal associated with the given request.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpaceUtils

      public SpaceUtils()
  • Method Details

    • getNotAuthorizedPath

      public static String getNotAuthorizedPath(jakarta.servlet.http.HttpServletRequest request)
      Return the URL path to the Not Authorised page in the context of the requests Space.
      Parameters:
      request - (required)
      Returns:
      the full URL of the Not Authorised page.
    • getSpace

      public static Space getSpace(jakarta.servlet.http.HttpServletRequest request)
      Returns a space VO for the portal associated with the given request.
      Parameters:
      request - (required)
      Returns:
      Space VO for given request or null if one isn't found.
    • getFormErrorPath

      public static String getFormErrorPath(jakarta.servlet.http.HttpServletRequest request)
      Return the URL path to the Form Error page in the context of the requests Space.
      Parameters:
      request - (required)
      Returns:
      the full URL of the Error page.