protected void ViewObjectLocal(object selectedObject, dynamic extraParams = null)
        {
            Cursor cursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;
                if (selectedObject != null)
                {
                    IPropertyProcessor propertyControl = null;
                    if (propertyDialog == null)
                    {
                        propertyControl = (IPropertyProcessor)AppManager.Instance.CreateNewContentInstance(typeof(IPropertyProcessor), SourceObjectType, null);
                        propertyDialog  = new SimplePropertyDialog(propertyControl);
                    }
                    else
                    {
                        propertyControl = propertyDialog.PropertyWindow;
                    }
                    propertyDialog.ViewMode      = ViewMode.View;
                    propertyControl.SourceObject = selectedObject;
                    propertyControl.ProcessView();
                    DialogResult res = propertyDialog.ShowDialog();
                }
            }
            finally
            {
                Cursor.Current = cursor;
            }
        }
 internal override void ForEachProperty(IPropertyProcessor processor)
 {
     processor.Process <DirectoryPropertyStringSingleLength1To1024>(SyncForeignPrincipalSchema.Description, ref this.descriptionField);
     processor.Process <DirectoryPropertyStringSingleLength1To256>(SyncForeignPrincipalSchema.DisplayName, ref this.displayNameField);
     processor.Process <DirectoryPropertyGuidSingle>(SyncForeignPrincipalSchema.LinkedPartnerGroupId, ref this.foreignPrincipalIdField);
     processor.Process <DirectoryPropertyGuidSingle>(SyncForeignPrincipalSchema.LinkedPartnerOrganizationId, ref this.foreignContextIdField);
 }
Example #3
0
 public ComparisonReducer(IComparisonProcessor comparisonProcessor, IPropertyProcessor propertyProcessor, IValueProcessor valueProcessor, INotNullExpressionProcessor notNullExpressionProcessor)
 {
     this.comparisonProcessor        = comparisonProcessor;
     this.propertyProcessor          = propertyProcessor;
     this.valueProcessor             = valueProcessor;
     this.notNullExpressionProcessor = notNullExpressionProcessor;
 }
Example #4
0
        internal override void ForEachProperty(IPropertyProcessor processor)
        {
            processor.Process <DirectoryPropertyStringSingleLength1To1024>(SyncGroupSchema.Description, ref this.descriptionField);
            processor.Process <DirectoryPropertyStringSingleLength1To2048>(SyncRecipientSchema.CloudLegacyExchangeDN, ref this.cloudLegacyExchangeDNField);
            processor.Process <DirectoryPropertyInt32Single>(SyncRecipientSchema.CloudMsExchRecipientDisplayType, ref this.cloudMSExchRecipientDisplayTypeField);
            processor.Process <DirectoryPropertyStringSingleLength1To256>(SyncRecipientSchema.DisplayName, ref this.displayNameField);
            processor.Process <DirectoryPropertyStringSingleLength1To1024>(SyncRecipientSchema.CustomAttribute1, ref this.extensionAttribute1Field);
            processor.Process <DirectoryPropertyStringSingleLength1To1024>(SyncRecipientSchema.CustomAttribute10, ref this.extensionAttribute10Field);
            processor.Process <DirectoryPropertyStringSingleLength1To2048>(SyncRecipientSchema.CustomAttribute11, ref this.extensionAttribute11Field);
            processor.Process <DirectoryPropertyStringSingleLength1To2048>(SyncRecipientSchema.CustomAttribute12, ref this.extensionAttribute12Field);
            processor.Process <DirectoryPropertyStringSingleLength1To2048>(SyncRecipientSchema.CustomAttribute13, ref this.extensionAttribute13Field);
            processor.Process <DirectoryPropertyStringSingleLength1To2048>(SyncRecipientSchema.CustomAttribute14, ref this.extensionAttribute14Field);
            processor.Process <DirectoryPropertyStringSingleLength1To2048>(SyncRecipientSchema.CustomAttribute15, ref this.extensionAttribute15Field);
            processor.Process <DirectoryPropertyStringSingleLength1To1024>(SyncRecipientSchema.CustomAttribute2, ref this.extensionAttribute2Field);
            processor.Process <DirectoryPropertyStringSingleLength1To1024>(SyncRecipientSchema.CustomAttribute3, ref this.extensionAttribute3Field);
            processor.Process <DirectoryPropertyStringSingleLength1To1024>(SyncRecipientSchema.CustomAttribute4, ref this.extensionAttribute4Field);
            processor.Process <DirectoryPropertyStringSingleLength1To1024>(SyncRecipientSchema.CustomAttribute5, ref this.extensionAttribute5Field);
            processor.Process <DirectoryPropertyStringSingleLength1To1024>(SyncRecipientSchema.CustomAttribute6, ref this.extensionAttribute6Field);
            processor.Process <DirectoryPropertyStringSingleLength1To1024>(SyncRecipientSchema.CustomAttribute7, ref this.extensionAttribute7Field);
            processor.Process <DirectoryPropertyStringSingleLength1To1024>(SyncRecipientSchema.CustomAttribute8, ref this.extensionAttribute8Field);
            processor.Process <DirectoryPropertyStringSingleLength1To1024>(SyncRecipientSchema.CustomAttribute9, ref this.extensionAttribute9Field);
            processor.Process <DirectoryPropertyStringLength1To2048>(SyncRecipientSchema.ExtensionCustomAttribute1, ref this.mSExchExtensionCustomAttribute1Field);
            processor.Process <DirectoryPropertyStringLength1To2048>(SyncRecipientSchema.ExtensionCustomAttribute2, ref this.mSExchExtensionCustomAttribute2Field);
            processor.Process <DirectoryPropertyStringLength1To2048>(SyncRecipientSchema.ExtensionCustomAttribute3, ref this.mSExchExtensionCustomAttribute3Field);
            processor.Process <DirectoryPropertyStringLength1To2048>(SyncRecipientSchema.ExtensionCustomAttribute4, ref this.mSExchExtensionCustomAttribute4Field);
            processor.Process <DirectoryPropertyStringLength1To2048>(SyncRecipientSchema.ExtensionCustomAttribute5, ref this.mSExchExtensionCustomAttribute5Field);
            processor.Process <DirectoryPropertyBooleanSingle>(SyncGroupSchema.MailEnabled, ref this.mailEnabledField);
            processor.Process <DirectoryPropertyStringSingleMailNickname>(SyncRecipientSchema.Alias, ref this.mailNicknameField);
            processor.Process <DirectoryPropertyInt32Single>(SyncRecipientSchema.SeniorityIndex, ref this.mSDSHABSeniorityIndexField);
            processor.Process <DirectoryPropertyStringSingleLength1To256>(SyncRecipientSchema.PhoneticDisplayName, ref this.mSDSPhoneticDisplayNameField);
            processor.Process <DirectoryPropertyBooleanSingle>(SyncRecipientSchema.ModerationEnabled, ref this.mSExchEnableModerationField);
            processor.Process <DirectoryPropertyBooleanSingle>(SyncRecipientSchema.HiddenFromAddressListsEnabled, ref this.mSExchHideFromAddressListsField);
            processor.Process <DirectoryPropertyDateTimeSingle>(SyncRecipientSchema.LitigationHoldDate, ref this.mSExchLitigationHoldDateField);
            processor.Process <DirectoryPropertyStringSingleLength1To1024>(SyncRecipientSchema.LitigationHoldOwner, ref this.mSExchLitigationHoldOwnerField);
            processor.Process <DirectoryPropertyInt32Single>(SyncRecipientSchema.ModerationFlags, ref this.mSExchModerationFlagsField);
            processor.Process <DirectoryPropertyInt64Single>(SyncGroupSchema.RecipientTypeDetailsValue, ref this.mSExchRecipientTypeDetailsField);
            processor.Process <DirectoryPropertyStringSingleLength1To1024>(SyncRecipientSchema.RetentionComment, ref this.mSExchRetentionCommentField);
            processor.Process <DirectoryPropertyStringSingleLength1To2048>(SyncRecipientSchema.RetentionUrl, ref this.mSExchRetentionUrlField);
            processor.Process <DirectoryPropertyBooleanSingle>(SyncRecipientSchema.RequireAllSendersAreAuthenticated, ref this.mSExchRequireAuthToSendToField);
            processor.Process <DirectoryPropertyStringLength2To500>(SyncRecipientSchema.MailTipTranslations, ref this.mSExchSenderHintTranslationsField);
            processor.Process <DirectoryPropertyBooleanSingle>(SyncGroupSchema.IsHierarchicalGroup, ref this.mSOrgIsOrganizationalField);
            processor.Process <DirectoryPropertyBooleanSingle>(SyncGroupSchema.SendOofMessageToOriginatorEnabled, ref this.oofReplyToOriginatorField);
            processor.Process <DirectoryPropertyProxyAddresses>(SyncRecipientSchema.EmailAddresses, ref this.proxyAddressesField);
            processor.Process <DirectoryPropertyProxyAddresses>(SyncRecipientSchema.SmtpAndX500Addresses, ref this.proxyAddressesField);
            processor.Process <DirectoryPropertyBooleanSingle>(SyncGroupSchema.ReportToOriginatorEnabled, ref this.reportToOriginatorField);
            processor.Process <DirectoryPropertyBooleanSingle>(SyncGroupSchema.ReportToManagerEnabled, ref this.reportToOwnerField);
            processor.Process <DirectoryPropertyBooleanSingle>(SyncGroupSchema.SecurityEnabled, ref this.securityEnabledField);
            processor.Process <DirectoryPropertyStringSingleLength1To64>(SyncRecipientSchema.Cn, ref this.shadowCommonNameField);
            processor.Process <DirectoryPropertyStringSingleLength1To256>(SyncRecipientSchema.OnPremisesObjectId, ref this.sourceAnchorField);
            processor.Process <DirectoryPropertyXmlValidationError>(SyncRecipientSchema.ValidationError, ref this.validationErrorField);
            processor.Process <DirectoryPropertyStringSingleLength1To40>(SyncGroupSchema.WellKnownObject, ref this.wellKnownObjectField);
            processor.Process <DirectoryPropertyBooleanSingle>(SyncRecipientSchema.IsDirSynced, ref this.dirSyncEnabledField);
            DirectoryPropertyAttributeSet directoryPropertyAttributeSet = (DirectoryPropertyAttributeSet)DirectoryObject.GetDirectoryProperty(this.singleAuthorityMetadataField);

            processor.Process <DirectoryPropertyAttributeSet>(SyncRecipientSchema.DirSyncAuthorityMetadata, ref directoryPropertyAttributeSet);
            processor.Process <DirectoryPropertyStringLength1To1024>(SyncGroupSchema.SharePointResources, ref this.sharepointResourcesField);
            processor.Process <DirectoryPropertyReferenceUserAndServicePrincipalSingle>(SyncGroupSchema.Creator, ref this.createdOnBehalfOfField);
            processor.Process <DirectoryPropertyBooleanSingle>(SyncGroupSchema.IsPublic, ref this.isPublicField);
        }
Example #5
0
 internal override void ForEachProperty(IPropertyProcessor processor)
 {
     processor.Process <DirectoryPropertyGuidSingle>(SyncSubscribedPlanSchema.AccountId, ref this.accountIdField);
     processor.Process <DirectoryPropertyXmlAnySingle>(SyncSubscribedPlanSchema.Capability, ref this.capabilityField);
     processor.Process <DirectoryPropertyStringSingleLength1To256>(SyncSubscribedPlanSchema.ServiceType, ref this.serviceTypeField);
     processor.Process <DirectoryPropertyXmlLicenseUnitsDetailSingle>(SyncSubscribedPlanSchema.MaximumOverageUnitsDetail, ref this.maximumOverageUnitsDetailField);
     processor.Process <DirectoryPropertyXmlLicenseUnitsDetailSingle>(SyncSubscribedPlanSchema.PrepaidUnitsDetail, ref this.prepaidUnitsDetailField);
     processor.Process <DirectoryPropertyXmlLicenseUnitsDetailSingle>(SyncSubscribedPlanSchema.TotalTrialUnitsDetail, ref this.totalTrialUnitsDetailField);
 }
        public SimplePropertyDialog(IPropertyProcessor propertyWindow)
        {
            InitializeComponent();
            this.Text = FrwCRUDRes.SimplePropertyDialog_Title;

            this.SuspendLayout();
            this.propertyWindow = propertyWindow;
            this.panel1.Controls.Add((Control)propertyWindow);
            ((Control)propertyWindow).Dock = DockStyle.Fill;
            this.ResumeLayout();
        }
Example #7
0
        public void ProcessArrayFieldWithProcessor(ExposedPropertyConfiguration propertyConfiguration, Component affectedComponent, FieldInfo field, Type fieldType)
        {
            string operationType = propertyConfiguration.OperationType;

            if (_processors.ContainsKey(operationType))
            {
                IPropertyProcessor propertyProcessor = _processors[operationType];

                Object[] values = {};

                if (fieldType == typeof(GameObject))
                {
                    values = propertyProcessor.ProcessArrayGameObjectField(
                        affectedComponent, fieldType, propertyConfiguration);
                }
                else if (fieldType.IsSubclassOf(typeof(Component)))
                {
                    values = propertyProcessor.ProcessArrayComponentField(
                        affectedComponent, fieldType, propertyConfiguration);
                }

                if (values != null)
                {
                    if (_arrayTypeUtils.IsArray(field.FieldType))
                    {
                        Array referencedObjectsArray = Array.CreateInstance(fieldType, values.Length);
                        for (int i = 0; i < referencedObjectsArray.Length; i++)
                        {
                            referencedObjectsArray.SetValue(values[i], i);
                        }

                        field.SetValue(affectedComponent, referencedObjectsArray);
                    }
                    //else it should be list
                    else
                    {
                        var list = (IList)Activator.CreateInstance(field.FieldType);

                        foreach (var value in values)
                        {
                            list.Add(value);
                        }
                        field.SetValue(affectedComponent, list);
                    }
                }
                else
                {
                    field.SetValue(affectedComponent, null);
                }
            }
        }
 // Token: 0x0600690A RID: 26890 RVA: 0x0017173C File Offset: 0x0016F93C
 internal override void ForEachProperty(IPropertyProcessor processor)
 {
     processor.Process <DirectoryPropertyXmlAssignedPlan>(SyncCompanySchema.AssignedPlan, ref this.assignedPlanField);
     processor.Process <DirectoryPropertyStringSingleLength1To3>(SyncCompanySchema.C, ref this.cField);
     processor.Process <DirectoryPropertyXmlCompanyPartnershipSingle>(SyncCompanySchema.CompanyPartnership, ref this.companyPartnershipField);
     processor.Process <DirectoryPropertyStringLength1To256>(SyncCompanySchema.CompanyTags, ref this.companyTagsField);
     processor.Process <DirectoryPropertyStringSingleLength1To1024>(SyncCompanySchema.Description, ref this.descriptionField);
     processor.Process <DirectoryPropertyStringSingleLength1To256>(SyncCompanySchema.DisplayName, ref this.displayNameField);
     processor.Process <DirectoryPropertyBooleanSingle>(SyncCompanySchema.IsDirSyncRunning, ref this.dirSyncEnabledField);
     processor.Process <DirectoryPropertyXmlDirSyncStatus>(SyncCompanySchema.DirSyncStatus, ref this.dirSyncStatusField);
     processor.Process <DirectoryPropertyXmlDirSyncStatus>(SyncCompanySchema.DirSyncStatusAck, ref this.dirSyncStatusAckField);
     processor.Process <DirectoryPropertyXmlServiceInfo>(SyncCompanySchema.ServiceInfo, ref this.serviceInfoField);
     processor.Process <DirectoryPropertyInt32SingleMin0Max4>(SyncCompanySchema.TenantType, ref this.tenantTypeField);
     processor.Process <DirectoryPropertyInt32SingleMin0>(SyncCompanySchema.QuotaAmount, ref this.quotaAmountField);
     processor.Process <DirectoryPropertyXmlCompanyVerifiedDomain>(SyncCompanySchema.VerifiedDomain, ref this.verifiedDomainField);
     processor.Process <DirectoryPropertyXmlRightsManagementTenantKey>(SyncCompanySchema.RightsManagementTenantKey, ref this.rightsManagementTenantKeyField);
     processor.Process <DirectoryPropertyXmlRightsManagementTenantConfigurationSingle>(SyncCompanySchema.RightsManagementTenantConfiguration, ref this.rightsManagementTenantConfigurationField);
 }
Example #9
0
        public PropertyProcessorManager(IEnumerable <IPropertyProcessor> corePropertyProcessors,
                                        IEnumerable <IPropertyProcessor> customPropertyProcessors,
                                        IPropertyProcessor queryProcessor,
                                        IArrayTypeUtils arrayTypeUtils)
        {
            _arrayTypeUtils = arrayTypeUtils;
            HashSet <IPropertyProcessor> coreProcessors   = new HashSet <IPropertyProcessor>();
            HashSet <IPropertyProcessor> customProcessors = new HashSet <IPropertyProcessor>();

            //add query processor
            _processors[queryProcessor.GetUniqueId()] = queryProcessor;
            ProcessProcessors(corePropertyProcessors, coreProcessors);
            ProcessProcessors(customPropertyProcessors, customProcessors);

            _operationNamesMapping = new Dictionary <string, int>();

            _operationTypes  = new int[coreProcessors.Count];
            _operationIds    = new string[coreProcessors.Count];
            _operationLabels = new string[coreProcessors.Count];

            _customOperationTypes  = new int[customProcessors.Count];
            _customOperationIds    = new string[customProcessors.Count];
            _customOperationLabels = new string[customProcessors.Count];

            int counter = 0;

            foreach (IPropertyProcessor processor in coreProcessors)
            {
                _operationTypes[counter]  = counter;
                _operationIds[counter]    = processor.GetUniqueId();
                _operationLabels[counter] = processor.GetActionTypeLabel();
                _operationNamesMapping[_operationIds[counter]] = counter;
                counter++;
            }
            counter = 0;
            foreach (IPropertyProcessor processor in customProcessors)
            {
                _customOperationTypes[counter]  = counter;
                _customOperationIds[counter]    = processor.GetUniqueId();
                _customOperationLabels[counter] = processor.GetActionTypeLabel();
                _operationNamesMapping[_customOperationIds[counter]] = counter;
                counter++;
            }
        }
Example #10
0
        public void ProcessSingleFieldWithProcessor(ExposedPropertyConfiguration propertyConfiguration, Component affectedComponent, FieldInfo field, Type fieldType)
        {
            string operationType = propertyConfiguration.OperationType;

            if (_processors.ContainsKey(operationType))
            {
                IPropertyProcessor propertyProcessor = _processors[operationType];

                Object value = null;
                if (fieldType == typeof(GameObject))
                {
                    value = propertyProcessor.ProcessSingleGameObjectField(affectedComponent, fieldType, propertyConfiguration);
                }
                else if (fieldType.IsSubclassOf(typeof(Component)))
                {
                    value = propertyProcessor.ProcessSingleComponentField(affectedComponent, fieldType, propertyConfiguration);
                }
                field.SetValue(affectedComponent, value);
            }
        }
Example #11
0
 /// <summary>
 /// Creates a new instance of this.
 /// </summary>
 /// <param name="propertyProcessor">How to process property-related data according to business rules.</param>
 public PropertyController(IPropertyProcessor propertyProcessor)
 {
     this.propertyProcessor = propertyProcessor;
 }
Example #12
0
 internal override void ForEachProperty(IPropertyProcessor processor)
 {
 }
Example #13
0
 internal override void ForEachProperty(IPropertyProcessor processor)
 {
     throw new NotImplementedException();
 }
Example #14
0
 internal abstract void ForEachProperty(IPropertyProcessor processor);
Example #15
0
 // Token: 0x060068C2 RID: 26818 RVA: 0x00171374 File Offset: 0x0016F574
 internal override void ForEachProperty(IPropertyProcessor processor)
 {
     processor.Process <DirectoryPropertyStringSingleLength1To256>(SyncAccountSchema.DisplayName, ref this.displayNameField);
 }