Uses of Class
org.jgrapes.webconsole.base.events.AddConletRequest
Package
Description
A web console component for displaying markdown text in a web console.
This package provides an OIDC login conlet (with fallback to password
login).
Provides the components for building web consoles based on the
core, io and http packages.
The events used by the web console related components.
Provides a simple role based access control using
information from the configuration support provided by JGrapes.
-
Uses of AddConletRequest in org.jgrapes.webconlet.locallogin
Modifier and TypeMethodDescriptionprotected Optional
<LoginConlet.AccountModel> LoginConlet.createNewState
(AddConletRequest event, ConsoleConnection session, String conletId) As a model has already been created inLoginConlet.doUpdateConletState(org.jgrapes.webconsole.base.events.NotifyConletModel, org.jgrapes.webconsole.base.ConsoleConnection, org.jgrapes.webconlet.locallogin.LoginConlet.AccountModel)
, the “new” model may already exist in the session.protected String
LoginConlet.generateInstanceId
(AddConletRequest event, ConsoleConnection session) -
Uses of AddConletRequest in org.jgrapes.webconlet.markdowndisplay
Modifier and TypeMethodDescriptionMarkdownDisplayConlet.createNewState
(AddConletRequest event, ConsoleConnection session, String conletId) Creates a new model for the conlet.protected String
MarkdownDisplayConlet.generateInstanceId
(AddConletRequest event, ConsoleConnection session) Generates a new component instance id or uses the one stored in the event’s properties asCONLET_ID
(seeproperties()
) -
Uses of AddConletRequest in org.jgrapes.webconlet.oidclogin
Modifier and TypeMethodDescriptionprotected Optional
<LoginConlet.AccountModel> LoginConlet.createNewState
(AddConletRequest event, ConsoleConnection session, String conletId) As a model has already been created inLoginConlet.doUpdateConletState(org.jgrapes.webconsole.base.events.NotifyConletModel, org.jgrapes.webconsole.base.ConsoleConnection, org.jgrapes.webconlet.oidclogin.LoginConlet.AccountModel)
, the “new” model may already exist in the session.protected String
LoginConlet.generateInstanceId
(AddConletRequest event, ConsoleConnection session) -
Uses of AddConletRequest in org.jgrapes.webconsole.base
Modifier and TypeMethodDescriptionAbstractConlet.createNewState
(AddConletRequest event, ConsoleConnection connection, String conletId) Called byAbstractConlet.onAddConletRequest(org.jgrapes.webconsole.base.events.AddConletRequest, org.jgrapes.webconsole.base.ConsoleConnection)
when a new conlet instance is created in the browser.protected String
AbstractConlet.generateInstanceId
(AddConletRequest event, ConsoleConnection connection) Create the instance specific part of a conlet id.final void
AbstractConlet.onAddConletRequest
(AddConletRequest event, ConsoleConnection connection) Checks if the request applies to this component. -
Uses of AddConletRequest in org.jgrapes.webconsole.base.events
Modifier and TypeMethodDescriptionAddConletRequest.addProperty
(Object key, Object value) Convenience method for adding properties one-by-one.AddConletRequest.ifPresent
(Object key, BiConsumer<Object, Object> action) Convenience method that performs the given action if a property with the given key exists.AddConletRequest.setFrontendRequest()
Marks this event as originating from the browser. -
Uses of AddConletRequest in org.jgrapes.webconsole.rbac
Modifier and TypeMethodDescriptionvoid
RoleConletFilter.onAddConlet
(AddConletRequest event, ConsoleConnection channel) If the request originates from a client (seeisFrontendRequest()
, verifies that the user is allowed to create a conlet of the given type.