Class CreateNotificationAction
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
io.jmix.flowui.kit.action.BaseAction
io.jmix.flowui.action.SecuredBaseAction
io.jmix.flowui.action.view.ViewAction<CreateNotificationAction,CreateNotificationDialog>
 
io.jmix.notificationsflowui.action.CreateNotificationAction
- All Implemented Interfaces:
- ExecutableAction,- SecuredAction,- TargetAction<CreateNotificationDialog>,- Action,- HasShortcutCombination
@ActionType("ntf_createNotification")
public class CreateNotificationAction
extends ViewAction<CreateNotificationAction,CreateNotificationDialog> 
Action opens create notification dialog.
 
 Action uses NotificationsCreateDialogContext specific permission to enable/disable its state.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class io.jmix.flowui.action.SecuredBaseActionSecuredBaseAction.EnabledRule
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringprotected booleanprotected NotificationDialogsFields inherited from class io.jmix.flowui.action.view.ViewActiontargetFields inherited from class io.jmix.flowui.action.SecuredBaseActionenabledByUiPermissions, enabledRules, visibleByUiPermissionsFields inherited from class io.jmix.flowui.kit.action.BaseActionenabledExplicitly, visibleExplicitlyFields inherited from class io.jmix.flowui.kit.action.AbstractActiondescription, enabled, eventBus, icon, id, shortcutCombination, text, variant, visibleFields inherited from interface io.jmix.flowui.kit.action.ActionPROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT_COMBINATION, PROP_TEXT, PROP_VARIANT, PROP_VISIBLE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidactionPerform(com.vaadin.flow.component.Component component) voidexecute()Executes theActionprotected voidbooleanprotected voidsetAccessManager(AccessManager accessManager) protected voidsetMessages(Messages messages) protected voidsetNotificationDialogOpener(NotificationDialogs notificationDialogOpener) Methods inherited from class io.jmix.flowui.action.view.ViewActioncheckTarget, getTarget, isApplicable, setTarget, withEnabled, withEnabledByUiPermissions, withHandler, withIcon, withIcon, withShortcutCombination, withTarget, withText, withTitle, withVariant, withVisible, withVisibleByUiPermissionsMethods inherited from class io.jmix.flowui.action.SecuredBaseActionaddEnabledRule, isEnabledByRule, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabledByUiPermissions, setVisibleByUiPermissionsMethods inherited from class io.jmix.flowui.kit.action.BaseActionaddActionPerformedListener, setEnabled, setEnabledInternal, setVisible, setVisibleInternalMethods inherited from class io.jmix.flowui.kit.action.AbstractActionaddPropertyChangeListener, firePropertyChange, getDescription, getEventBus, getIcon, getId, getShortcutCombination, getText, getVariant, hasListener, isEnabled, isVisible, setDescription, setIcon, setShortcutCombination, setText, setVariantMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.flowui.kit.action.ActionaddPropertyChangeListener, getDescription, getIcon, getId, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setText, setVariant, setVisibleMethods inherited from interface io.jmix.flowui.kit.component.HasShortcutCombinationgetShortcutCombination, setShortcutCombination
- 
Field Details- 
ID- See Also:
 
- 
notificationDialogOpener
- 
isPermittedBySpecificPermissionprotected boolean isPermittedBySpecificPermission
 
- 
- 
Constructor Details- 
CreateNotificationActionpublic CreateNotificationAction()
- 
CreateNotificationAction
 
- 
- 
Method Details- 
initActionprotected void initAction()- Overrides:
- initActionin class- ViewAction<CreateNotificationAction,- CreateNotificationDialog> 
 
- 
setMessages
- 
setAccessManager
- 
setNotificationDialogOpener
- 
isEnabledByUiPermissionspublic boolean isEnabledByUiPermissions()- Specified by:
- isEnabledByUiPermissionsin interface- SecuredAction
- Overrides:
- isEnabledByUiPermissionsin class- SecuredBaseAction
 
- 
actionPerformpublic void actionPerform(com.vaadin.flow.component.Component component) - Specified by:
- actionPerformin interface- Action
- Overrides:
- actionPerformin class- ViewAction<CreateNotificationAction,- CreateNotificationDialog> 
 
- 
executepublic void execute()Description copied from interface:ExecutableActionExecutes theAction
 
-