Class Schema
java.lang.Object
org.identityconnectors.framework.common.objects.Schema
Determines the objects supported by a
Connector
.
The Schema
object is used to represent the basic objects that a
connector supports. This does not prevent a connector from supporting more.
Rather, this is informational for the caller of the connector to understand a
minimum support level. The schema defines 4 primary data structures
- Declared ObjectClasses (
getObjectClassInfo()
). - Declared OperationOptionInfo (
getOperationOptionInfo()
). - Supported ObjectClasses by operation (
getSupportedObjectClassesByOperation()
). - Supported OperationOptionInfo by operation(
getSupportedOptionsByOperation()
).
-
Constructor Summary
ConstructorDescriptionSchema
(Set<ObjectClassInfo> info, Set<OperationOptionInfo> options, Map<Class<? extends APIOperation>, Set<ObjectClassInfo>> supportedObjectClassesByOperation, Map<Class<? extends APIOperation>, Set<OperationOptionInfo>> supportedOptionsByOperation) Public only for serialization; please use SchemaBuilder instead. -
Method Summary
Modifier and TypeMethodDescriptionboolean
findObjectClassInfo
(String type) Returns the ObjectClassInfo for the given type.Returns the OperationOptionInfo for the given name.Returns the set of object classes that are defined in the schema, regardless of which operations support them.Returns the set of operation options that are defined in the schema, regardless of which operations support them.Map<Class<? extends APIOperation>,
Set<ObjectClassInfo>> Returns the set of object classes that apply to a particular operation.getSupportedObjectClassesByOperation
(Class<? extends APIOperation> apiop) Returns the supported object classes for the given operation.Map<Class<? extends APIOperation>,
Set<OperationOptionInfo>> Returns the set of operation options that apply to a particular operation.getSupportedOptionsByOperation
(Class<? extends APIOperation> apiop) Returns the supported options for the given operation.int
hashCode()
Create a hash code from all the object info objects.toString()
-
Constructor Details
-
Schema
public Schema(Set<ObjectClassInfo> info, Set<OperationOptionInfo> options, Map<Class<? extends APIOperation>, Set<ObjectClassInfo>> supportedObjectClassesByOperation, Map<Class<? extends APIOperation>, Set<OperationOptionInfo>> supportedOptionsByOperation) Public only for serialization; please use SchemaBuilder instead.- Parameters:
info
- the object class infosupportedObjectClassesByOperation
- the supported object class by operation
-
-
Method Details
-
getObjectClassInfo
Returns the set of object classes that are defined in the schema, regardless of which operations support them. -
findObjectClassInfo
Returns the ObjectClassInfo for the given type.- Parameters:
type
- The type to find.- Returns:
- the ObjectClassInfo for the given type or null if not found.
-
getOperationOptionInfo
Returns the set of operation options that are defined in the schema, regardless of which operations support them.- Returns:
- The options defined in this schema.
-
findOperationOptionInfo
Returns the OperationOptionInfo for the given name.- Parameters:
name
- The name to find.- Returns:
- the OperationOptionInfo for the given name or null if not found.
-
getSupportedObjectClassesByOperation
public Set<ObjectClassInfo> getSupportedObjectClassesByOperation(Class<? extends APIOperation> apiop) Returns the supported object classes for the given operation.- Parameters:
apiop
- The operation.- Returns:
- the supported object classes for the given operation.
-
getSupportedOptionsByOperation
Returns the supported options for the given operation.- Parameters:
apiop
- The operation.- Returns:
- the supported options for the given operation.
-
getSupportedObjectClassesByOperation
public Map<Class<? extends APIOperation>,Set<ObjectClassInfo>> getSupportedObjectClassesByOperation()Returns the set of object classes that apply to a particular operation.- Returns:
- the set of object classes that apply to a particular operation.
-
getSupportedOptionsByOperation
Returns the set of operation options that apply to a particular operation.- Returns:
- the set of operation options that apply to a particular operation.
-
toString
-
equals
-
hashCode
public int hashCode()Create a hash code from all the object info objects.
-