Class UserManagementViewModel
View Model for the user management.
Inheritance
Inherited Members
Namespace: Phoenix.Users
Assembly: Phoenix.Plugin.Users.dll
Syntax
public class UserManagementViewModel : TabItemViewModel<UserManagementView>, IViewInitialize, IUserManagementViewProvider, IViewProvider, IClosingNotification
Constructors
View SourceUserManagementViewModel(UserManagementView, IWindowingControl, IEventAggregator, IPhoenixLogger, IUserManager)
Initializes a new instance of the UserManagementViewModel class.
Declaration
public UserManagementViewModel(UserManagementView view, IWindowingControl windowing, IEventAggregator eventAggregator, IPhoenixLogger logger, IUserManager userManager)
Parameters
Type | Name | Description |
---|---|---|
UserManagementView | view | The user management view. |
IWindowingControl | windowing | |
IEventAggregator | eventAggregator | The event aggregator. |
IPhoenixLogger | logger | The logger. |
IUserManager | userManager | The user manager. |
Fields
View SourceName
The tab header name.
Declaration
public const string Name = "User Management"
Field Value
Type | Description |
---|---|
System.String |
Properties
View SourceAddSelectedSerializableUsersToDeviceCommand
Gets the command to add all serializable users to the currently selected device.
Declaration
public DelegateCommand AddSelectedSerializableUsersToDeviceCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
AddSelectedToMasterListCommand
Gets the command to add the selected users to the master list.
Declaration
public DelegateCommand AddSelectedToMasterListCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
AddUserCommand
Gets the command to add a user.
Declaration
public DelegateCommand<bool?> AddUserCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<System.Nullable<System.Boolean>> |
AllUsersAreSelected
Gets or sets a value indicating whether or not all users are selected or deselected.
Declaration
public bool AllUsersAreSelected { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
AutoAddToMasterUserList
Gets or sets a value indicating whether or not to auto add added users to the master user list.
Declaration
public bool? AutoAddToMasterUserList { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
BulkFriendUsersCommand
Gets the command to launch the bulk friend dialog.
Declaration
public DelegateCommand BulkFriendUsersCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
CanRefreshUsers
Gets a value indicating whether a user refresh is being prevented or not by a previous refresh.
Declaration
public bool CanRefreshUsers { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
CanRequestRemove
Gets a value indicating whether the Remove User option should be enabled.
Declaration
public bool CanRequestRemove { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
CanRequestSignIn
Gets a value indicating whether the Sign In option should be enabled.
Declaration
public bool CanRequestSignIn { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
CanRequestSignOut
Gets a value indicating whether the Sign Out option should be enabled.
Declaration
public bool CanRequestSignOut { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ClearDefaultSignInCommand
Gets the command to clear the sign in default for the current device.
Declaration
public DelegateCommand ClearDefaultSignInCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
CopyTextToClipboardCommand
Gets the command to copy text to the clip board.
Declaration
public DelegateCommand<string> CopyTextToClipboardCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<System.String> |
CopyUserDataToClipboardCommand
Gets the command to copy the user's data to the clip board.
Declaration
public DelegateCommand<User> CopyUserDataToClipboardCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<User> |
CurrentDevice
Gets the currently selected device.
Declaration
public IDevice CurrentDevice { get; }
Property Value
Type | Description |
---|---|
IDevice |
CurrentDeviceDisconnected
Gets a value indicating whether or not the current device is disconnected.
Declaration
public bool CurrentDeviceDisconnected { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ImportFromFileCommand
Gets the command to import users from an XDP export file.
Declaration
public DelegateCommand ImportFromFileCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
OpenProfileViewForSerializableUserCommand
Gets the command to update the password for a user.
Declaration
public AsyncDelegateCommand<SerializableUser> OpenProfileViewForSerializableUserCommand { get; }
Property Value
Type | Description |
---|---|
AsyncDelegateCommand<SerializableUser> |
RefreshCurrentDeviceCommand
Gets the command that refreshes the current device.
Declaration
public DelegateCommand RefreshCurrentDeviceCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
RemoveSelectedUsersCommand
Gets the command to remove all users.
Declaration
public DelegateCommand RemoveSelectedUsersCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
RemoveUserCommand
Gets the command to remove a user.
Declaration
public DelegateCommand<User> RemoveUserCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<User> |
SerializationManager
Gets the serialization manager.
Declaration
public UserSerializationManager SerializationManager { get; }
Property Value
Type | Description |
---|---|
UserSerializationManager |
SetUserAsDefaultSignInCommand
Gets the command to set a user as default sign in for the current device.
Declaration
public DelegateCommand<User> SetUserAsDefaultSignInCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<User> |
SignInSerializableUserWhenAddedToDevice
Gets or sets a value indicating whether or not to sign in a serializable user when they are added to a device
Declaration
public bool? SignInSerializableUserWhenAddedToDevice { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
SignInUserCommand
Gets the command to sign in a user.
Declaration
public DelegateCommand<User> SignInUserCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<User> |
SignOutUserCommand
Gets the command to sign out a user.
Declaration
public DelegateCommand<User> SignOutUserCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<User> |
StorePasswordWhenSerializableUserIsSignedIn
Gets or sets a value indicating whether or not the password should be stored when a user is added and signed in Note: Currently this option is ignored by the platform and the password is always stored. Because of this, the option is not shown on the UI and it will always be true when SignInSerializableUserWhenAddedToDevice is true.
Declaration
public bool? StorePasswordWhenSerializableUserIsSignedIn { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
UpdatePasswordForSerializableUserCommand
Gets the command to update the password for a user.
Declaration
public AsyncDelegateCommand<IEnumerable<object>> UpdatePasswordForSerializableUserCommand { get; }
Property Value
Type | Description |
---|---|
AsyncDelegateCommand<System.Collections.Generic.IEnumerable<System.Object>> |
UpdateSandboxIdForSerializableUserCommand
Gets the command to update the sandbox id for a user.
Declaration
public AsyncDelegateCommand<IEnumerable<object>> UpdateSandboxIdForSerializableUserCommand { get; }
Property Value
Type | Description |
---|---|
AsyncDelegateCommand<System.Collections.Generic.IEnumerable<System.Object>> |
UserModuleStatusManager
Gets the status manager for this module.
Declaration
public StatusManager UserModuleStatusManager { get; }
Property Value
Type | Description |
---|---|
StatusManager |
Users
Gets the currently selected device.
Declaration
public ObservableCollection<User> Users { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<User> |
Methods
View SourceInitialize()
Initializes phoenix managed resources when all modules are loaded.
Declaration
protected override void Initialize()
Overrides
OnViewChanged(Object, DependencyPropertyChangedEventArgs)
Called when the tab view's visibility changes.
Declaration
protected override void OnViewChanged(object sender, DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The tab being updated. |
System.Windows.DependencyPropertyChangedEventArgs | e | The tab's status (whether or not it is visible). |
Overrides
Uninitialize()
Uninitializes phoenix managed resources when closed.
Declaration
protected override void Uninitialize()