Package org.jgrapes.webconsole.rbac
Class UserBasedConletFilter
java.lang.Object
org.jgrapes.core.internal.ComponentVertex
org.jgrapes.core.Component
org.jgrapes.webconsole.rbac.UserBasedConletFilter
- All Implemented Interfaces:
Iterable<ComponentType>
,Channel
,ComponentType
,Eligible
,Manager
Configures the conlets available based on the user currently logged in.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jgrapes.core.Channel
Channel.Default
-
Field Summary
-
Constructor Summary
ConstructorDescriptionUserBasedConletFilter
(Channel componentChannel, Map<?, ?> properties) Creates a new component with its channel set to the given channel. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onConsolePrepared
(ConsolePrepared event, ConsoleConnection channel) Filter the events.Methods inherited from class org.jgrapes.core.Component
channel, component, defaultCriterion, isEligibleFor, setName
Methods inherited from class org.jgrapes.core.internal.ComponentVertex
activeEventPipeline, addHandler, attach, children, componentPath, componentVertex, detach, fire, initComponentsHandlers, iterator, name, newEventPipeline, newEventPipeline, parent, registerAsGenerator, root, toString, unregisterAsGenerator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
UserBasedConletFilter
Creates a new component with its channel set to the given channel.Supported properties are:
- conletTypesByUsername: a Map<String, Set
> holding the conlet types AddConletType.conletType()
to be added for given user (see @linkConsoleUser.getName()
. Conlets that are not restricted to at least one user are added for all users.
- Parameters:
componentChannel
- the channel that the component’s handlers listen on by default and thatManager.fire(Event, Channel...)
sends the event toproperties
- the properties used to configure the component
- conletTypesByUsername: a Map<String, Set
-
-
Method Details
-
onConsolePrepared
@Handler(priority=999) public void onConsolePrepared(ConsolePrepared event, ConsoleConnection channel) Filter the events.- Parameters:
event
- the eventchannel
- the channel
-