Class ResourceUtility

java.lang.Object
io.github.tkasozi.ResourceUtility

public final class ResourceUtility extends Object
  • Field Details

    • DEFAULT_VIEW

      public static final String DEFAULT_VIEW
      This is the default view or the html file generated from the ui.
      See Also:
    • STATIC_RESOURCE_LOCATION

      public static final String STATIC_RESOURCE_LOCATION
      The UI assets are stored in this location.
      See Also:
    • V1_API_PATTERN

      public static final String V1_API_PATTERN
      All the rest endpoints in v1 will be prepended by this pattern.
      See Also:
    • TIME_PROFILE_PREFIX

      public static final String TIME_PROFILE_PREFIX
      Prefix to be use in logs.
      See Also:
    • OBSERVER_V_1_UI_PERFORMANCE

      public static final String OBSERVER_V_1_UI_PERFORMANCE
      Special access observer endpoint to allow non admin authenticated user to have their events tracked.
      See Also:
  • Method Details

    • getLoggedUserDetails

      public static LoggedUserDetails getLoggedUserDetails()
      Creates a simple user detail based on the authenticated user.
      Returns:
      Simple user detail.