예제 #1
0
 public PowerShellResults <O> GetObject <O>(Identity identity) where O : ResourceConfigurationBase
 {
     identity = Identity.FromExecutingUserId();
     return(base.GetObject <O>("Get-CalendarProcessing", identity));
 }
예제 #2
0
 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"));
 }
예제 #4
0
 public RecipientStatusRow(Identity messageTrackingReportIdentity, RecipientTrackingEvent trackingEvent) : base(RecipientStatusRow.CreateRecipientStatusRowIdentity(messageTrackingReportIdentity, trackingEvent), trackingEvent)
 {
     this.RecipientTrackingEvent = trackingEvent;
 }
예제 #5
0
 public PowerShellResults <JournalRule> GetObject(Identity identity)
 {
     return(base.GetObject <JournalRule>("Get-JournalRule", identity));
 }
예제 #6
0
 public PowerShellResults <RoleGroupMembersRow> SetObject(Identity identity, SetRoleGroupMembersParameter properties)
 {
     return(base.SetObject <RoleGroupMembersRow, SetRoleGroupMembersParameter, RoleGroupMembersRow>("Update-RoleGroupMember", identity, properties));
 }
예제 #7
0
 public MailboxFeatureInfo(Identity id) : base(id, null)
 {
 }
 public PowerShellResults <SchedulingPermissionsConfiguration> SetObject(Identity identity, SetSchedulingPermissionsConfiguration properties)
 {
     return(base.SetObject <SchedulingPermissionsConfiguration, SetSchedulingPermissionsConfiguration>(identity, properties));
 }
예제 #9
0
		public PowerShellResults<MessageOptionsConfiguration> GetObject(Identity identity)
		{
			return base.GetObject<MessageOptionsConfiguration>(identity);
		}
예제 #10
0
		public PowerShellResults<MessageOptionsConfiguration> SetObject(Identity identity, SetMessageOptionsConfiguration properties)
		{
			return base.SetObject<MessageOptionsConfiguration, SetMessageOptionsConfiguration>(identity, properties);
		}
예제 #11
0
 public PowerShellResults <MailRoutingDomain> GetObject(Identity identity)
 {
     return(base.GetObject <MailRoutingDomain>("Get-AcceptedDomain", identity));
 }
예제 #12
0
 public PowerShellResults <MailRoutingDomain> SetObject(Identity identity, SetMailRoutingDomain properties)
 {
     return(base.SetObject <MailRoutingDomain, SetMailRoutingDomain>("Set-AcceptedDomain", identity, properties));
 }
예제 #13
0
 protected BaseRow(Identity identity, IConfigurable configurationObject)
 {
     this.Identity            = identity;
     this.ConfigurationObject = configurationObject;
 }
예제 #14
0
 public PowerShellResults <ForwardEmailMailbox> SetObject(Identity identity, SetForwardEmailMailbox properties)
 {
     identity = (identity ?? Identity.FromExecutingUserId());
     return(base.SetObject <ForwardEmailMailbox, SetForwardEmailMailbox>("Set-Mailbox", identity, properties));
 }
예제 #15
0
 public PowerShellResults <RuleRow> GetObjectForList(Identity identity)
 {
     return(base.GetObjectForList <RuleRow>("Get-InboxRule", identity));
 }
 public PowerShellResults <SchedulingPermissionsConfiguration> GetObject(Identity identity)
 {
     return(base.GetObject <SchedulingPermissionsConfiguration>(identity));
 }
예제 #17
0
        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);
        }
예제 #18
0
        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;
 }