public PowerShellResults <O> GetObject <O>(Identity identity) where O : ResourceConfigurationBase { identity = Identity.FromExecutingUserId(); return(base.GetObject <O>("Get-CalendarProcessing", identity)); }
public PowerShellResults <ForwardEmailMailbox> GetObject(Identity identity) { identity = (identity ?? Identity.FromExecutingUserId()); return(base.GetObject <ForwardEmailMailbox>("Get-Mailbox", identity)); }
public PowerShellResults <JournalReportNdrTo> GetObject(Identity identity) { return(base.GetObject <JournalReportNdrTo>("Get-TransportConfig")); }
public RecipientStatusRow(Identity messageTrackingReportIdentity, RecipientTrackingEvent trackingEvent) : base(RecipientStatusRow.CreateRecipientStatusRowIdentity(messageTrackingReportIdentity, trackingEvent), trackingEvent) { this.RecipientTrackingEvent = trackingEvent; }
public PowerShellResults <JournalRule> GetObject(Identity identity) { return(base.GetObject <JournalRule>("Get-JournalRule", identity)); }
public PowerShellResults <RoleGroupMembersRow> SetObject(Identity identity, SetRoleGroupMembersParameter properties) { return(base.SetObject <RoleGroupMembersRow, SetRoleGroupMembersParameter, RoleGroupMembersRow>("Update-RoleGroupMember", identity, properties)); }
public MailboxFeatureInfo(Identity id) : base(id, null) { }
public PowerShellResults <SchedulingPermissionsConfiguration> SetObject(Identity identity, SetSchedulingPermissionsConfiguration properties) { return(base.SetObject <SchedulingPermissionsConfiguration, SetSchedulingPermissionsConfiguration>(identity, properties)); }
public PowerShellResults<MessageOptionsConfiguration> GetObject(Identity identity) { return base.GetObject<MessageOptionsConfiguration>(identity); }
public PowerShellResults<MessageOptionsConfiguration> SetObject(Identity identity, SetMessageOptionsConfiguration properties) { return base.SetObject<MessageOptionsConfiguration, SetMessageOptionsConfiguration>(identity, properties); }
public PowerShellResults <MailRoutingDomain> GetObject(Identity identity) { return(base.GetObject <MailRoutingDomain>("Get-AcceptedDomain", identity)); }
public PowerShellResults <MailRoutingDomain> SetObject(Identity identity, SetMailRoutingDomain properties) { return(base.SetObject <MailRoutingDomain, SetMailRoutingDomain>("Set-AcceptedDomain", identity, properties)); }
protected BaseRow(Identity identity, IConfigurable configurationObject) { this.Identity = identity; this.ConfigurationObject = configurationObject; }
public PowerShellResults <ForwardEmailMailbox> SetObject(Identity identity, SetForwardEmailMailbox properties) { identity = (identity ?? Identity.FromExecutingUserId()); return(base.SetObject <ForwardEmailMailbox, SetForwardEmailMailbox>("Set-Mailbox", identity, properties)); }
public PowerShellResults <RuleRow> GetObjectForList(Identity identity) { return(base.GetObjectForList <RuleRow>("Get-InboxRule", identity)); }
public PowerShellResults <SchedulingPermissionsConfiguration> GetObject(Identity identity) { return(base.GetObject <SchedulingPermissionsConfiguration>(identity)); }
private void ImportContactsRequest() { if (base.Request.Files.Count == 0 || string.IsNullOrEmpty(base.Request.Files[0].FileName)) { this.currentPage = ImportContactListForm.ImportContactListPageState.UploadCsvFilePage; ErrorHandlingUtil.ShowServerError(OwaOptionStrings.ImportContactListNoFileUploaded, string.Empty, this.Page); return; } HttpPostedFile httpPostedFile = base.Request.Files[0]; this.filename = string.Empty; try { this.filename = Path.GetFileName(httpPostedFile.FileName); } catch (ArgumentException) { this.filename = null; } if (string.IsNullOrEmpty(this.filename)) { this.currentPage = ImportContactListForm.ImportContactListPageState.UploadCsvFilePage; ErrorHandlingUtil.ShowServerError(OwaOptionClientStrings.FileUploadFailed, string.Empty, this.Page); return; } ImportContactListParameters importContactListParameters = new ImportContactListParameters(); importContactListParameters.CSVStream = httpPostedFile.InputStream; ImportContactList importContactList = new ImportContactList(); PowerShellResults <ImportContactsResult> powerShellResults = importContactList.ImportObject(Identity.FromExecutingUserId(), importContactListParameters); if (!powerShellResults.Failed) { this.importResult = powerShellResults.Output[0]; this.currentPage = ImportContactListForm.ImportContactListPageState.ImportContactListResultPage; return; } this.currentPage = ImportContactListForm.ImportContactListPageState.UploadCsvFilePage; if (powerShellResults.ErrorRecords[0].Exception is ImportContactsException) { ErrorHandlingUtil.ShowServerError(powerShellResults.ErrorRecords[0].Message, string.Empty, this.Page); return; } ErrorHandlingUtil.ShowServerErrors(powerShellResults.ErrorRecords, this.Page); }
public PowerShellResults <UMMailboxExtension> GetList(UserExtensionsFilter filter, SortOptions sort) { PowerShellResults <UMMailboxObject> @object = base.GetObject <UMMailboxObject>("Get-UMMailbox", Identity.FromExecutingUserId()); if (@object.Output.Length == 1) { UMMailboxExtension[] array = new UMMailboxExtension[@object.Output[0].CallAnsweringRulesExtensions.Length]; for (int i = 0; i < array.Length; i++) { array[i] = new UMMailboxExtension { DisplayName = @object.Output[0].CallAnsweringRulesExtensions[i] }; } return(new PowerShellResults <UMMailboxExtension> { Output = array }); } return(new PowerShellResults <UMMailboxExtension>()); }
internal AdminAuditLogResultRow(Identity id, AdminAuditLogEvent searchResult) : base(id, searchResult) { this.AuditReportSearchBaseResult = searchResult; }