public void AddViewDescription() { var fvd = new FormViewDescription { DisplayName = Constants.PscTableColumnNameId, ViewType = typeof(GlobalFormView), ControlType = typeof(GlobalView) }; ViewDescriptions.Add(fvd); ViewDescriptions.DefaultIndex = 0; }
/// <summary> /// Add view description for the node /// </summary> void AddViewDescription() { var fvd = new FormViewDescription { DisplayName = Constants.PscTableColumnNameId, ViewType = typeof(ManagementFormView), ControlType = typeof(ManagementViewControl) }; ViewDescriptions.Add(fvd); ViewDescriptions.DefaultIndex = 0; }
/// <summary> /// Add view description for the node /// </summary> void AddViewDescription() { var fvd = new FormViewDescription { DisplayName = Constants.PscTableColumnNameId, ViewType = typeof(InfrastructureFormView), ControlType = typeof(InfrastructureView) }; ViewDescriptions.Add(fvd); ViewDescriptions.DefaultIndex = 0; }
void AddViewDescription() { var fvd = new FormViewDescription { DisplayName = "Users", ViewType = typeof(UsersFormView), ControlType = typeof(UsersControl) }; ViewDescriptions.Add(fvd); ViewDescriptions.DefaultIndex = 0; }
void AddViewDescription() { var lvd = new MmcListViewDescription { DisplayName = "Certificate Details", ViewType = typeof(CertificateDetailsListView), Options = MmcListViewOptions.ExcludeScopeNodes }; ViewDescriptions.Add(lvd); ViewDescriptions.DefaultIndex = 0; }
void AddViewDescription() { var fvd = new FormViewDescription { DisplayName = "OIDC Clients", ViewType = typeof(OidcClientsFormView), ControlType = typeof(OidcClientsControl) }; ViewDescriptions.Add(fvd); ViewDescriptions.DefaultIndex = 0; }
void AddViewDescription() { var fvd = new FormViewDescription { DisplayName = "Relying Party", ViewType = typeof(RelyingPartyFormView), ControlType = typeof(RelyingPartyControl) }; ViewDescriptions.Add(fvd); ViewDescriptions.DefaultIndex = 0; }
void AddViewDescription() { var fvd = new FormViewDescription { DisplayName = "External Identity Providers", ViewType = typeof(ExternalIdentityProviderFormView), ControlType = typeof(ExternalIdentityProvidersControl) }; ViewDescriptions.Add(fvd); ViewDescriptions.DefaultIndex = 0; }
void InitNode() { var lvd = new MmcListViewDescription(); lvd.DisplayName = "csr details"; lvd.ViewType = typeof(CSRDetailListView); lvd.Options = MmcListViewOptions.ExcludeScopeNodes; ViewDescriptions.Add(lvd); ViewDescriptions.DefaultIndex = 0; this.ActionsPaneItems.Add(new Microsoft.ManagementConsole.Action("Create Signing Request", "Create Signing Request", -1, ACTION_CREATE_SIGNING_REQUEST)); }
void AddViewDescription() { var fvd = new FormViewDescription { DisplayName = "Groups", ViewType = typeof(GroupsFormView), ControlType = typeof(GroupsControl) }; // Attach the view to the root node. ViewDescriptions.Add(fvd); ViewDescriptions.DefaultIndex = 0; }
void InitNode() { MmcListViewDescription lvd = new MmcListViewDescription(); lvd.DisplayName = "keypair details"; lvd.ViewType = typeof(KeyPairDetailListView); lvd.Options = MmcListViewOptions.ExcludeScopeNodes; ViewDescriptions.Add(lvd); ViewDescriptions.DefaultIndex = 0; this.ActionsPaneItems.Add(new Microsoft.ManagementConsole.Action("Create Key Pair", "Create Key Pair", -1, ACTION_CREATE_KEY_PAIR)); }
void InitNode() { MmcListViewDescription lvd = new MmcListViewDescription(); lvd.DisplayName = "Certificate details"; lvd.ViewType = typeof(CertificateDetailsListView); lvd.Options = MmcListViewOptions.ExcludeScopeNodes; ViewDescriptions.Add(lvd); ViewDescriptions.DefaultIndex = 0; this.ActionsPaneItems.Add(new Microsoft.ManagementConsole.Action("Create Self Signed Certificate", "Create Self Signed Certificate", -1, ACTION_CREATE_SELF_SIGNED_CERT)); }
/// <summary> /// The constructor. /// </summary> public DatabaseSecurityLoginsNode() { //+ define node DisplayName = "Logins"; //+ define verbs EnabledStandardVerbs = StandardVerbs.Refresh; //+ define view ViewDescriptions.Add(new MmcListViewDescription() { DisplayName = "List", ViewType = typeof(SelectionListView), Options = MmcListViewOptions.ExcludeScopeNodes, }); ViewDescriptions.DefaultIndex = 0; }
/// <summary> /// The constructor. /// </summary> public SecurityNode() { //+ define node DisplayName = "Security"; Children.AddRange(new ScopeNode[] { new SecurityLoginsNode(), new SecurityServerRolesNode() }); //+ define verbs EnabledStandardVerbs = StandardVerbs.Refresh; //+ define view ViewDescriptions.Add(new MmcListViewDescription() { DisplayName = "List", ViewType = typeof(SelectionListView), Options = MmcListViewOptions.ExcludeScopeNodes, }); ViewDescriptions.DefaultIndex = 0; }
/// <summary> /// The constructor. /// </summary> public DatabasesNode() { //+ define node DisplayName = "Databases"; //+ define verbs EnabledStandardVerbs = StandardVerbs.Refresh; ActionsPaneItems.Add(new MmcAction("Add Database", "Adds a new database under this node", -1, DataContractMethod.AddDatabaseCommand)); //+ define view ViewDescriptions.Add(new MmcListViewDescription() { DisplayName = "List", ViewType = typeof(SelectionListView), Options = MmcListViewOptions.ExcludeScopeNodes, }); ViewDescriptions.DefaultIndex = 0; }
/// <summary> /// The constructor. /// </summary> public DatabaseNode(DatabaseModel databaseModel) { DatabaseModel = databaseModel; //+ define node DisplayName = databaseModel.Name; int imageIndex; switch (databaseModel.Status) { case DatabaseStatus.Default: imageIndex = (int)Federal.ImageIndex.Database; break; case DatabaseStatus.EmergencyMode: imageIndex = (int)Federal.ImageIndex.DatabaseEmergencyMode; break; case DatabaseStatus.InRecovery: imageIndex = (int)Federal.ImageIndex.DatabaseInRecovery; break; case DatabaseStatus.Offline: imageIndex = (int)Federal.ImageIndex.DatabaseOffline; break; case DatabaseStatus.ReadOnly: imageIndex = (int)Federal.ImageIndex.DatabaseReadOnly; break; case DatabaseStatus.Restoring: imageIndex = (int)Federal.ImageIndex.DatabaseRestoring; break; case DatabaseStatus.SingleUser: imageIndex = (int)Federal.ImageIndex.DatabaseSingleUser; break; case DatabaseStatus.Suspect: imageIndex = (int)Federal.ImageIndex.DatabaseSuspect; break; default: throw new InvalidOperationException(); } ImageIndex = SelectedImageIndex = imageIndex; //+ define verbs EnabledStandardVerbs = StandardVerbs.Refresh; //+ define view ViewDescriptions.Add(new MmcListViewDescription() { DisplayName = "List", ViewType = typeof(SelectionListView), Options = MmcListViewOptions.ExcludeScopeNodes, }); ViewDescriptions.DefaultIndex = 0; }
/// <summary> /// The constructor. /// </summary> public ServerNode(ServerModel serverModel) { ServerModel = serverModel; //+ define node DisplayName = serverModel.DisplayName; int imageIndex; switch (serverModel.Status) { case ServerStatus.Paused: imageIndex = (int)Federal.ImageIndex.NeuroxPaused; break; case ServerStatus.Started: imageIndex = (int)Federal.ImageIndex.NeuroxStarted; break; case ServerStatus.Stopped: imageIndex = (int)Federal.ImageIndex.NeuroxStopped; break; case ServerStatus.Unknown: imageIndex = (int)Federal.ImageIndex.NeuroxUnknown; break; default: throw new InvalidOperationException(); } ImageIndex = SelectedImageIndex = imageIndex; Children.AddRange(new ScopeNode[] { new DatabasesNode(), new SecurityNode() }); //+ define verbs EnabledStandardVerbs = StandardVerbs.Refresh; //+ define view //ViewDescriptions.Add(new FormViewDescription(typeof(ProcessManagerControl)) //{ // DisplayName = "Processes", // ViewType = typeof(ComputerFormView), //}); ViewDescriptions.Add(new MmcListViewDescription() { DisplayName = "List", ViewType = typeof(SelectionListView), Options = MmcListViewOptions.ExcludeScopeNodes, }); ViewDescriptions.DefaultIndex = 0; }
public ApplicationScopeNode(string applicationName, bool isRootNode) { if (!ActionsSnapIn.HasSecurityRights) { bizilante.SSO.Helper.SSO sSO = new bizilante.SSO.Helper.SSO(); sSO.GetSecretServerName(); WindowsPrincipal windowsPrincipal = new WindowsPrincipal(WindowsIdentity.GetCurrent()); _ssoAdminResult = windowsPrincipal.IsInRole(sSO.SSOAdminGroup); ActionsSnapIn.HasSecurityRights = _ssoAdminResult; } if (ActionsSnapIn.HasSecurityRights) { DisplayName = applicationName; if (!isRootNode) { MmcListViewDescription mmcListViewDescription = new MmcListViewDescription(); mmcListViewDescription.DisplayName = applicationName; mmcListViewDescription.ViewType = typeof(UserListView); mmcListViewDescription.Options = MmcListViewOptions.SingleSelect; ViewDescriptions.Add(mmcListViewDescription); ViewDescriptions.DefaultIndex = 0; } ImageIndex = 0; SelectedImageIndex = 0; if (DisplayName == "_NewApplication") { EnabledStandardVerbs = StandardVerbs.Rename; } Microsoft.ManagementConsole.Action actionExport = new Microsoft.ManagementConsole.Action("Export Application", "Exports the Key/Value Pairs for this application", -1, "Export"); Microsoft.ManagementConsole.Action actionAdd = new Microsoft.ManagementConsole.Action("Add Application", "Adds a new Application", -1, "Add_Application"); Microsoft.ManagementConsole.Action actionAddKvp = new Microsoft.ManagementConsole.Action("Add Key Value Pair", "Adds Key Value Pair", -1, "Add_KeyValue"); Microsoft.ManagementConsole.Action actionDelete = new Microsoft.ManagementConsole.Action("Delete Application", "Deletes the Application", -1, "Delete"); Microsoft.ManagementConsole.Action actionImport = new Microsoft.ManagementConsole.Action("Import Application", "Imports the Key/Value Pairs for an Application", -1, "Import"); ActionsPaneItems.Add(actionAdd); if (isRootNode) { actionExport.Enabled = false; } else { actionAdd.Enabled = false; ActionsPaneItems.Add(actionAddKvp); ActionsPaneItems.Add(actionDelete); } ActionsPaneItems.Add(actionImport); ActionsPaneItems.Add(actionExport); return; } DisplayName = applicationName + " - No Access Rights!"; if (!isRootNode) { MmcListViewDescription mmcListViewDescription2 = new MmcListViewDescription(); mmcListViewDescription2.DisplayName = applicationName + " - No Access Rights!"; mmcListViewDescription2.Options = MmcListViewOptions.HideSelection; ViewDescriptions.Add(mmcListViewDescription2); } }