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