public interface UsersUIHandlers extends AccountsUiHandlers
BLANK_FIELD_WARNING, CONFIRM_PASSWORD_WARNING, NEW_ACCOUNT_NAME_WARNING
Modifier and Type | Method and Description |
---|---|
void |
addUser(UserDef newUser,
java.io.Serializable ext)
Adds a new user.
|
void |
addUserInNewGroup(TaggedName user,
java.lang.String groupName)
Makes a given user account to be a member of a given group account.
|
void |
addUserToGroups(TaggedName user,
TaggedName[] groups)
Makes a given user account to be a member of given groups accounts.
|
void |
cancelAddUserAccountDialog()
Cancels the Add User Account Dialog and rolls back any related changes.
|
void |
cancelCloneUserAccountDialog()
Cancels the Clone User Account Dialog and rolls back any related changes.
|
void |
cancelDeletingUsersAlert()
Cancels the Deleting Users Alert and rolls back any related changes.
|
void |
cancelEditUserAccountDialog()
Cancels the Edit User Account Dialog and rolls back any related changes.
|
void |
cancelFindUserAccountDialog()
Cancels the Find User Account Dialog and rolls back any related changes.
|
void |
cancelRemovingGroupsAlert()
Cancels the Removing Groups Alert and rolls back any related changes.
|
void |
cloneUserAccount(java.lang.String nameFrom,
java.lang.String nameTo,
boolean acls)
Clones the target user account with its ACL if it is required preserving the same password
for a new created account.
|
void |
cloneUserAccount(java.lang.String nameFrom,
java.lang.String nameTo,
boolean acls,
java.lang.String newPassword)
Clones the target user account with its ACL if it is required and having new password.
|
void |
deleteSelectedUsers(TaggedName[] users)
Deletes the given selected users accounts.
|
void |
disableUserAccount(TaggedName user)
Disables the target user account.
|
void |
onGroupSelected(java.util.Set<TaggedName> selectedGroups)
Triggers the groups selection changed event.
|
void |
onRefresh()
Triggers an action to refresh the all users table.
|
void |
onUserSelected(java.util.Set<TaggedName> selectedUsers)
Triggers the users selection changed event.
|
void |
populateAndRefreshAllGroups()
Fills and/or updates the all groups accounts table.
|
void |
removeUserFromGroups(TaggedName user,
TaggedName[] groups)
Removes a given user account from given groups accounts.
|
void |
setGroupsFilter(java.lang.String filter)
Displays only groups accounts that satisfy the given search criteria.
|
void |
setupCloneUserAccountDialog(TaggedName clonedUserAccount)
Setups the Clone User Account Dialog.
|
void |
setupDeletingUsersAlert(TaggedName[] users)
Setups the Deleting Users Alert.
|
void |
setupFindUserAccountDialog()
Setups the Find User Account Dialog.
|
void |
setupRemovingGroupsAlert(TaggedName user,
TaggedName[] groups)
Setups the Removing Groups Alert for deleting a given user account from selected
groups accounts.
|
void |
showAddUserAccountDialog()
Shows the Add User Account Dialog.
|
void |
showEditUserAccountDialog(TaggedName updatedUserAccount)
Shows the Edit User Account Dialog to edit the target user account.
|
void |
updateUser(UserDef user,
java.io.Serializable ext)
Updates a given user account.
|
setCurrentState, switchToACLs
void populateAndRefreshAllGroups()
void onRefresh()
void onUserSelected(java.util.Set<TaggedName> selectedUsers)
selectedUsers
- The selected users accountsvoid onGroupSelected(java.util.Set<TaggedName> selectedGroups)
selectedGroups
- The selected groups accountsvoid addUser(UserDef newUser, java.io.Serializable ext)
newUser
- The new user definitionext
- The extended account data.void updateUser(UserDef user, java.io.Serializable ext)
user
- The given user definitionext
- The given extended account datavoid deleteSelectedUsers(TaggedName[] users)
users
- The array of users accounts given by tagged namesvoid cloneUserAccount(java.lang.String nameFrom, java.lang.String nameTo, boolean acls)
nameFrom
- The cloned user account namenameTo
- The new user account nameacls
- True indicates that the ACL of the cloned user will be copied too, otherwise
the ACL of the new created user account will be empty.void cloneUserAccount(java.lang.String nameFrom, java.lang.String nameTo, boolean acls, java.lang.String newPassword)
nameFrom
- The cloned user account namenameTo
- The new user account nameacls
- True indicates that the ACL of the cloned user will be copied too, otherwise
the ACL of the new created user account will be empty.newPassword
- The password for the new created accountvoid addUserToGroups(TaggedName user, TaggedName[] groups)
user
- The target user account given by its tagged namegroups
- The array of target groups accounts given by tagged namesvoid removeUserFromGroups(TaggedName user, TaggedName[] groups)
user
- The target user account given by its tagged namegroups
- The array of target groups accounts given by tagged namesvoid addUserInNewGroup(TaggedName user, java.lang.String groupName)
user
- The target user account given by its tagged namegroupName
- The target group account namevoid setGroupsFilter(java.lang.String filter)
filter
- The given search criteriavoid disableUserAccount(TaggedName user)
user
- The target user account given by its tagged namevoid showAddUserAccountDialog()
void setupFindUserAccountDialog()
void setupDeletingUsersAlert(TaggedName[] users)
users
- The array of users accounts given by tagged namesvoid setupCloneUserAccountDialog(TaggedName clonedUserAccount)
clonedUserAccount
- The cloned user account given by its tagged namevoid showEditUserAccountDialog(TaggedName updatedUserAccount)
updatedUserAccount
- The target user account given by its tagged namevoid setupRemovingGroupsAlert(TaggedName user, TaggedName[] groups)
user
- The given user accountgroups
- The selected groups accounts from which the given user is about to be deletedvoid cancelAddUserAccountDialog()
void cancelDeletingUsersAlert()
void cancelCloneUserAccountDialog()
void cancelEditUserAccountDialog()
void cancelFindUserAccountDialog()
void cancelRemovingGroupsAlert()