C# Класс Org.IdentityConnectors.Framework.Common.Objects.SchemaBuilder

Simple builder class to help facilitate creating a Schema object.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddSupportedObjectClass ( SafeType op, ObjectClassInfo def ) : void

Adds the given ObjectClassInfo as a supported ObjectClass for the given operation.

AddSupportedOperationOption ( SafeType op, OperationOptionInfo def ) : void

Adds the given OperationOptionInfo as a supported option for the given operation.

Build ( ) : Schema

Builds the Schema object based on the ObjectClassInfos added so far.

ClearSupportedObjectClassesByOperation ( ) : void

Clears the operation-specific supported classes.

Normally, when you add an ObjectClass, using DefineObjectClass(ObjectClassInfo), it is added to all operations. You may then remove those that you need using RemoveSupportedObjectClass(SafeType{SPIOperation}, ObjectClassInfo). You may wish, as an alternative to clear everything out and instead add using AddSupportedObjectClass(SafeType{SPIOperation}, ObjectClassInfo).

ClearSupportedOptionsByOperation ( ) : void

Clears the operation-specific supported options.

Normally, when you add an OperationOptionInfo, using DefineOperationOption(OperationOptionInfo), it is added to all operations. You may then remove those that you need using RemoveSupportedOperationOption(SafeType{SPIOperation}, OperationOptionInfo). You may wish, as an alternative to clear everything out and instead add using AddSupportedOperationOption(SafeType{SPIOperation}, OperationOptionInfo).

DefineObjectClass ( ObjectClassInfo info ) : void

Adds another ObjectClassInfo to the schema.

Also, adds this to the set of supported classes for every operation defined by the Connector.

DefineObjectClass ( String type, ICollection attrInfo ) : void

Adds another ObjectClassInfo to the schema.

Also, adds this to the set of supported classes for every operation defined by the Connector.

DefineOperationOption ( OperationOptionInfo info ) : void

Adds another OperationOptionInfo to the schema.

Also, adds this to the set of supported options for every operation defined by the Connector.

DefineOperationOption ( String optionName, Type type ) : void

Adds another OperationOptionInfo to the schema.

Also, adds this to the set of supported options for every operation defined by the Connector.

RemoveSupportedObjectClass ( SafeType op, ObjectClassInfo def ) : void

Removes the given ObjectClassInfo as a supported ObjectClass for the given operation.

RemoveSupportedOperationOption ( SafeType op, OperationOptionInfo def ) : void

Removes the given OperationOptionInfo as a supported option for the given operation.

SchemaBuilder ( SafeType connectorClass ) : System

Приватные методы

Метод Описание
ObjectClassOperation ( SafeType op ) : bool
OperationOptionOperation ( SafeType op ) : bool

Описание методов

AddSupportedObjectClass() публичный Метод

Adds the given ObjectClassInfo as a supported ObjectClass for the given operation.
If the given ObjectClassInfo was /// not already defined using .
public AddSupportedObjectClass ( SafeType op, ObjectClassInfo def ) : void
op SafeType The SPI operation
def ObjectClassInfo The ObjectClassInfo
Результат void

AddSupportedOperationOption() публичный Метод

Adds the given OperationOptionInfo as a supported option for the given operation.
If the given OperationOptionInfo was /// not already defined using .
public AddSupportedOperationOption ( SafeType op, OperationOptionInfo def ) : void
op SafeType The SPI operation
def OperationOptionInfo The OperationOptionInfo
Результат void

Build() публичный Метод

Builds the Schema object based on the ObjectClassInfos added so far.
public Build ( ) : Schema
Результат Schema

ClearSupportedObjectClassesByOperation() публичный Метод

Clears the operation-specific supported classes.
Normally, when you add an ObjectClass, using DefineObjectClass(ObjectClassInfo), it is added to all operations. You may then remove those that you need using RemoveSupportedObjectClass(SafeType{SPIOperation}, ObjectClassInfo). You may wish, as an alternative to clear everything out and instead add using AddSupportedObjectClass(SafeType{SPIOperation}, ObjectClassInfo).
public ClearSupportedObjectClassesByOperation ( ) : void
Результат void

ClearSupportedOptionsByOperation() публичный Метод

Clears the operation-specific supported options.
Normally, when you add an OperationOptionInfo, using DefineOperationOption(OperationOptionInfo), it is added to all operations. You may then remove those that you need using RemoveSupportedOperationOption(SafeType{SPIOperation}, OperationOptionInfo). You may wish, as an alternative to clear everything out and instead add using AddSupportedOperationOption(SafeType{SPIOperation}, OperationOptionInfo).
public ClearSupportedOptionsByOperation ( ) : void
Результат void

DefineObjectClass() публичный Метод

Adds another ObjectClassInfo to the schema.
Also, adds this to the set of supported classes for every operation defined by the Connector.
If already defined
public DefineObjectClass ( ObjectClassInfo info ) : void
info ObjectClassInfo
Результат void

DefineObjectClass() публичный Метод

Adds another ObjectClassInfo to the schema.
Also, adds this to the set of supported classes for every operation defined by the Connector.
If already defined
public DefineObjectClass ( String type, ICollection attrInfo ) : void
type String
attrInfo ICollection
Результат void

DefineOperationOption() публичный Метод

Adds another OperationOptionInfo to the schema.
Also, adds this to the set of supported options for every operation defined by the Connector.
public DefineOperationOption ( OperationOptionInfo info ) : void
info OperationOptionInfo
Результат void

DefineOperationOption() публичный Метод

Adds another OperationOptionInfo to the schema.
Also, adds this to the set of supported options for every operation defined by the Connector.
If already defined
public DefineOperationOption ( String optionName, Type type ) : void
optionName String
type System.Type
Результат void

RemoveSupportedObjectClass() публичный Метод

Removes the given ObjectClassInfo as a supported ObjectClass for the given operation.
If the given ObjectClassInfo was /// not already defined using .
public RemoveSupportedObjectClass ( SafeType op, ObjectClassInfo def ) : void
op SafeType The SPI operation
def ObjectClassInfo The ObjectClassInfo
Результат void

RemoveSupportedOperationOption() публичный Метод

Removes the given OperationOptionInfo as a supported option for the given operation.
If the given OperationOptionInfo was /// not already defined using .
public RemoveSupportedOperationOption ( SafeType op, OperationOptionInfo def ) : void
op SafeType The SPI operation
def OperationOptionInfo The OperationOptionInfo
Результат void

SchemaBuilder() публичный Метод

public SchemaBuilder ( SafeType connectorClass ) : System
connectorClass SafeType
Результат System