Class Constants

java.lang.Object
com.aoindustries.web.struts.Constants

public final class Constants extends Object
Constants that may be used by other applications.
Author:
AO Industries, Inc.
  • Field Details

    • SU_REQUESTED

      public static final ScopeEE.Session.Attribute<String> SU_REQUESTED
      The session key that stores when a SU has been requested.
    • AO_CONN

      public static final AttributeEE.Name<AoservConnector> AO_CONN
      The session key used to store the effective AoservConnector when the user has successfully authenticated. Any SU can change this. Also stored per-request as request attribute once authentication resolved, this way a request is consistent even when session state changing.
    • AUTHENTICATED_AO_CONN

      public static final ScopeEE.Session.Attribute<AoservConnector> AUTHENTICATED_AO_CONN
      The session key used to store the AoservConnector that the user has authenticated as. SU will not changes this.
    • AUTHENTICATION_TARGET

      public static final ScopeEE.Session.Attribute<String> AUTHENTICATION_TARGET
      The session key that stores the authentication target.
    • TARGETS

      public static final String TARGETS
      The session key that stores the set of targets that have been recently seen. Targets are given to the client by ID, and the associated URL is stored here. This is to prevent cross-site redirect attacks.
      See Also:
    • SU

      public static final String SU
      The request key used for switch-user.
      See Also:
    • LANGUAGE

      public static final String LANGUAGE
      The request key used for current language.
      See Also:
    • AUTHENTICATION_MESSAGE

      public static final ScopeEE.Request.Attribute<String> AUTHENTICATION_MESSAGE
      The request key used to store authentication messages.
    • LAYOUT

      public static final ScopeEE.Session.Attribute<String> LAYOUT
      The session key used to store the current layout. The layout setting affects the per-request skin selection.
    • SKIN

      public static final ScopeEE.Request.Attribute<Skin> SKIN
      The request key used to store the current Skin.
    • SITE_SETTINGS

      public static final ScopeEE.Request.Attribute<SiteSettings> SITE_SETTINGS
      The request key used to store the current SiteSettings.
    • LOCALE

      public static final ScopeEE.Request.Attribute<Locale> LOCALE
      The request key used to store the current Locale.
    • PERMISSION_DENIED

      public static final ScopeEE.Request.Attribute<List<Permission>> PERMISSION_DENIED
      The request key used to store the List<Permission> that ALL must be allowed for the specified task.