Package io.jmix.bpmui.screen.usergroup
Class UserGroupEdit
- All Implemented Interfaces:
ChangeTracker
,EditorScreen<UserGroup>
,FrameOwner
,ReadOnlyAwareScreen
@UiController("bpm_UserGroup.edit")
@UiDescriptor("user-group-edit.xml")
public class UserGroupEdit
extends StandardEditor<UserGroup>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.StandardEditor
StandardEditor.AfterCommitChangesEvent, StandardEditor.BeforeCommitChangesEvent, StandardEditor.InitEntityEvent<E>, StandardEditor.ValidationEvent
Nested classes/interfaces inherited from class io.jmix.ui.screen.Screen
Screen.AfterCloseEvent, Screen.AfterDetachEvent, Screen.AfterInitEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected DataContext
protected DataManager
protected Dialogs
protected HBoxLayout
protected Messages
protected ResourceRoleRepository
protected GroupBoxLayout
protected ComboBox<UserGroupType>
protected CollectionPropertyContainer<UserGroupRole>
protected CollectionPropertyContainer<UserGroupUser>
protected Button
protected GroupBoxLayout
protected UserRepository
protected SuggestionField<String>
Fields inherited from class io.jmix.ui.screen.StandardEditor
commitActionPerformed, showEnableEditingBtn, showSaveNotification
Fields inherited from interface io.jmix.ui.screen.EditorScreen
ENABLE_EDITING, WINDOW_CLOSE, WINDOW_COMMIT, WINDOW_COMMIT_AND_CLOSE
Fields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addUserGroupUserToUserGroup
(String username) generateRoleName
(UserGroupRole userGroupRole) protected void
void
void
void
protected void
protected void
protected void
protected Collection<UserGroupRole>
userGroupRolesTableAddTransformation
(Collection<ResourceRoleModel> selectedRoleModels) Methods inherited from class io.jmix.ui.screen.StandardEditor
addAfterCommitChangesListener, addBeforeCommitChangesListener, addDefaultCloseAction, addDefaultCommitAction, addDefaultCommitAndCloseAction, addDefaultEnableEditingAction, addInitEntityListener, addValidationEventListener, cancel, closeWithCommit, closeWithDiscard, commit, commitAndClose, commitChanges, disableCommitActions, doNotReloadEditedEntity, enableEditing, getEditedEntity, getEditedEntityContainer, getEditedEntityLoader, getSaveNotificationCaption, getWindowActionOptional, hasUnsavedChanges, initActions, isCrossFieldValidate, isEntityModifiedInParentContext, isEntityModifiedRecursive, isLocked, isModifiedAfterOpen, isReadOnly, isReadOnlyDueToLock, isShowSaveNotification, isUiListComponentsValidationEnabled, onChangeEvent, onPostCommitEvent, preventUnsavedChanges, releaseLock, setCrossFieldValidate, setEntityToEdit, setModifiedAfterOpen, setReadOnly, setShowSaveNotification, setupEntityToEdit, setupLock, setupModifiedTracking, showSaveNotification, validateAdditionalRules, validateScreen, validateUiComponents
Methods inherited from class io.jmix.ui.screen.Screen
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, close, close, closeWithDefaultAction, fireEvent, getApplicationContext, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, isSameScreen, setApplicationContext, setExtensions, setId, setScreenData, setUiEventListeners, setWindow, show
-
Field Details
-
roleRepository
-
dataManager
-
dataContext
-
userRepository
-
dialogs
-
messages
-
rolesBox
-
usernamesBox
-
editActions
-
userGroupRolesDc
-
userGroupUsersDc
-
userSuggestionField
-
typeField
-
usernameAddBtnId
-
-
Constructor Details
-
UserGroupEdit
public UserGroupEdit()
-
-
Method Details
-
onBeforeShow
-
initUserSuggestionField
protected void initUserSuggestionField() -
addUserGroupUserToUserGroup
-
onUserGroupDcItemPropertyChange
@Subscribe(id="userGroupDc", target=DATA_CONTAINER) public void onUserGroupDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<UserGroup> event) -
preventGroupTypeChange
-
updateUserGroupType
protected void updateUserGroupType() -
userGroupRolesTableAddTransformation
@Install(to="userGroupRolesTable.add", subject="transformation") protected Collection<UserGroupRole> userGroupRolesTableAddTransformation(Collection<ResourceRoleModel> selectedRoleModels) -
setComponentsVisibilityByType
protected void setComponentsVisibilityByType() -
generateRoleName
-
onUsernameAddBtnIdClick
-