Пример #1
0
        internal virtual bool PropertyIsWritable(string propertyName)
        {
            AttributeConverterEntry converterEntry = this.GetConverterEntry(propertyName);

            if (converterEntry == null)
            {
                if (this._sessionInfo == null)
                {
                    return(true);
                }
                else
                {
                    this.InitSchemaUtil(this._sessionInfo);
                    return(this._schemaUtil.AttributeIsWritable(propertyName));
                }
            }
            else
            {
                TypeAdapterAccess adapterAccessLevel = converterEntry.AdapterAccessLevel;
                if (adapterAccessLevel == TypeAdapterAccess.Write)
                {
                    return(true);
                }
                else
                {
                    return(adapterAccessLevel == TypeAdapterAccess.ReadWrite);
                }
            }
        }
Пример #2
0
 internal AttributeConverterEntry(string extendedAttribute, string[] directoryAttribute, Type attributeType, bool copyable, TypeAdapterAccess adapterAccessLevel, bool isSingleValue, AttributeSet attributeSet, ToExtendedFormatDelegate toExtended, ToDirectoryFormatDelegate toDirectory, ToSearchFilterDelegate toSearch) : base(extendedAttribute)
 {
     this._toExtendedDelegate  = toExtended;
     this._toDirectoryDelegate = toDirectory;
     this._directoryAttributes = directoryAttribute;
     this._attributeSet        = attributeSet;
     this._toSearchDelegate    = toSearch;
     this._copyable            = copyable;
     this._adapterAccessLevel  = adapterAccessLevel;
     this._isSingleValue       = isSingleValue;
     this._attributeType       = attributeType;
 }
Пример #3
0
        internal virtual bool PropertyIsReadable(string propertyName)
        {
            AttributeConverterEntry converterEntry = this.GetConverterEntry(propertyName);

            if (converterEntry == null)
            {
                return(true);
            }
            else
            {
                TypeAdapterAccess adapterAccessLevel = converterEntry.AdapterAccessLevel;
                if (adapterAccessLevel == TypeAdapterAccess.Read)
                {
                    return(true);
                }
                else
                {
                    return(adapterAccessLevel == TypeAdapterAccess.ReadWrite);
                }
            }
        }
Пример #4
0
 internal AttributeConverterEntry(string extendedAttribute, string directoryAttribute, Type attributeType, bool copyable, TypeAdapterAccess adapterAccessLevel, bool isSingleValue, AttributeSet attributeSet, ToExtendedFormatDelegate toExtended, ToDirectoryFormatDelegate toDirectory, ToSearchFilterDelegate toSearch)
     : this(extendedAttribute, new string [] { directoryAttribute }, attributeType, copyable, adapterAccessLevel, isSingleValue, attributeSet, toExtended, toDirectory, toSearch)
 {
 }
Пример #5
0
		internal AttributeConverterEntry(string extendedAttribute, string directoryAttribute, Type attributeType, bool copyable, TypeAdapterAccess adapterAccessLevel, bool isSingleValue, AttributeSet attributeSet, ToExtendedFormatDelegate toExtended, ToDirectoryFormatDelegate toDirectory, ToSearchFilterDelegate toSearch)
			: this(extendedAttribute, new string [] { directoryAttribute }, attributeType, copyable, adapterAccessLevel, isSingleValue, attributeSet, toExtended, toDirectory, toSearch)
		{

		}
Пример #6
0
		internal AttributeConverterEntry(string extendedAttribute, string[] directoryAttribute, Type attributeType, bool copyable, TypeAdapterAccess adapterAccessLevel, bool isSingleValue, AttributeSet attributeSet, ToExtendedFormatDelegate toExtended, ToDirectoryFormatDelegate toDirectory, ToSearchFilterDelegate toSearch) : base(extendedAttribute)
		{
			this._toExtendedDelegate = toExtended;
			this._toDirectoryDelegate = toDirectory;
			this._directoryAttributes = directoryAttribute;
			this._attributeSet = attributeSet;
			this._toSearchDelegate = toSearch;
			this._copyable = copyable;
			this._adapterAccessLevel = adapterAccessLevel;
			this._isSingleValue = isSingleValue;
			this._attributeType = attributeType;
		}
		internal ADEntityAttributeConverterEntry(string extendedAttribute, string[] directoryAttribute, string[] customObjectProperties, Type attributeType, bool copyable, TypeAdapterAccess adapterAccessLevel, bool isSingleValue, AttributeSet attributeSet, ToExtendedFormatDelegate toExtended, ToDirectoryFormatDelegate toDirectory, ToSearchFilterDelegate toSearch) : base(extendedAttribute, directoryAttribute, attributeType, copyable, adapterAccessLevel, isSingleValue, attributeSet, toExtended, toDirectory, toSearch)
		{
			this._customObjectProperties = customObjectProperties;
		}
Пример #8
0
 internal ADEntityAttributeConverterEntry(string extendedAttribute, string[] directoryAttribute, string[] customObjectProperties, Type attributeType, bool copyable, TypeAdapterAccess adapterAccessLevel, bool isSingleValue, AttributeSet attributeSet, ToExtendedFormatDelegate toExtended, ToDirectoryFormatDelegate toDirectory, ToSearchFilterDelegate toSearch) : base(extendedAttribute, directoryAttribute, attributeType, copyable, adapterAccessLevel, isSingleValue, attributeSet, toExtended, toDirectory, toSearch)
 {
     this._customObjectProperties = customObjectProperties;
 }