Record Class NeoClientConfig
java.lang.Object
java.lang.Record
org.operaton.bpm.spring.boot.starter.webapp.neo.NeoClientConfig
public record NeoClientConfig(List<NeoClientConfig.Backend> backends, String authMode, NeoClientConfig.OAuth oauth, String pluginsUrl, NeoClientConfig.User user)
extends Record
Configuration handed to the webapps-neo single-page application at boot.
The SPA used to have these values compiled into its bundle by Vite, which
meant the distribution could only be reconfigured by rebuilding the frontend.
It now fetches this document from {applicationPath}/config.json, so the
same bundle serves every configuration.
- Since:
- 2.2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA REST API the SPA can talk to.static final recordWhere the SPA sends the browser to start and end an OAuth2 session.static final recordThe already-authenticated user, absent when there is no session. -
Constructor Summary
ConstructorsConstructorDescriptionNeoClientConfig(List<NeoClientConfig.Backend> backends, String authMode, NeoClientConfig.OAuth oauth, String pluginsUrl, NeoClientConfig.User user) Creates an instance of aNeoClientConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionauthMode()Returns the value of theauthModerecord component.backends()Returns the value of thebackendsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.oauth()Returns the value of theoauthrecord component.Returns the value of thepluginsUrlrecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.
-
Constructor Details
-
NeoClientConfig
public NeoClientConfig(List<NeoClientConfig.Backend> backends, String authMode, NeoClientConfig.OAuth oauth, String pluginsUrl, NeoClientConfig.User user) Creates an instance of aNeoClientConfigrecord class.- Parameters:
backends- the value for thebackendsrecord componentauthMode- the value for theauthModerecord componentoauth- the value for theoauthrecord componentpluginsUrl- the value for thepluginsUrlrecord componentuser- the value for theuserrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
backends
Returns the value of thebackendsrecord component.- Returns:
- the value of the
backendsrecord component
-
authMode
Returns the value of theauthModerecord component.- Returns:
- the value of the
authModerecord component
-
oauth
Returns the value of theoauthrecord component.- Returns:
- the value of the
oauthrecord component
-
pluginsUrl
Returns the value of thepluginsUrlrecord component.- Returns:
- the value of the
pluginsUrlrecord component
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-