Class NeoWebappProperty
java.lang.Object
org.operaton.bpm.spring.boot.starter.property.NeoWebappProperty
Configuration for the new web apps (webapps-neo), a single-page application
served as an embedded Spring application.
Bound under operaton.bpm.webapp.neo.*. It is disabled by default at
the starter level so existing embedded-starter users are not affected; the
Operaton Run distribution enables it explicitly.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringContext path the SPA is served from.static final StringResolve the authentication mode from the application configuration.static final StringUsername and password against the REST API.static final StringServer-side session established by the Spring Security OAuth2 login flow.protected StringAuthentication mode the SPA is told to use, one ofauto,basicoroauth2.static final Stringprotected booleanEnables the embedded webapps-neo auto configuration.protected booleanprotected StringURL of the runtime plugin manifest handed to the SPA.protected Stringprotected StringClasspath location the webapps-neo assets are unpacked to. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanprotected StringsanitizeApplicationPath(String applicationPath) voidsetApplicationPath(String applicationPath) voidsetAuthMode(String authMode) voidsetEnabled(boolean enabled) voidsetIndexRedirectEnabled(boolean indexRedirectEnabled) voidsetPluginsUrl(String pluginsUrl) voidsetSecurityConfigFile(String securityConfigFile) voidsetWebjarClasspath(String webjarClasspath) toString()
-
Field Details
-
DEFAULT_APP_PATH
- See Also:
-
AUTH_MODE_AUTO
Resolve the authentication mode from the application configuration.- See Also:
-
AUTH_MODE_BASIC
Username and password against the REST API.- See Also:
-
AUTH_MODE_OAUTH2
Server-side session established by the Spring Security OAuth2 login flow.- See Also:
-
enabled
protected boolean enabledEnables the embedded webapps-neo auto configuration. Disabled by default; the Operaton Run distribution turns it on. -
applicationPath
Context path the SPA is served from. Defaults to the root path (""). -
webjarClasspath
Classpath location the webapps-neo assets are unpacked to. Kept separate from the legacy webapp classpath so both can coexist. -
securityConfigFile
-
indexRedirectEnabled
protected boolean indexRedirectEnabled -
authMode
Authentication mode the SPA is told to use, one ofauto,basicoroauth2. Withauto(the default) the mode is derived from the application configuration:oauth2when Spring Security OAuth2 client registrations are present,basicotherwise. Set it explicitly to override that detection. -
pluginsUrl
URL of the runtime plugin manifest handed to the SPA. Empty means the SPA falls back to/plugins/plugins.jsonon its own origin.
-
-
Constructor Details
-
NeoWebappProperty
public NeoWebappProperty()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getApplicationPath
-
setApplicationPath
-
sanitizeApplicationPath
-
getWebjarClasspath
-
setWebjarClasspath
-
getSecurityConfigFile
-
setSecurityConfigFile
-
isIndexRedirectEnabled
public boolean isIndexRedirectEnabled() -
setIndexRedirectEnabled
public void setIndexRedirectEnabled(boolean indexRedirectEnabled) -
getAuthMode
-
setAuthMode
-
getPluginsUrl
-
setPluginsUrl
-
toString
-