Class Schema
- java.lang.Object
-
- org.identityconnectors.framework.common.objects.Schema
-
public final class Schema extends java.lang.Object
Determines the objects supported by aConnector
. TheSchema
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()
).
- Declared ObjectClasses (
-
-
Constructor Summary
Constructors Constructor Description Schema(java.util.Set<ObjectClassInfo> info, java.util.Set<OperationOptionInfo> options, java.util.Map<java.lang.Class<? extends APIOperation>,java.util.Set<ObjectClassInfo>> supportedObjectClassesByOperation, java.util.Map<java.lang.Class<? extends APIOperation>,java.util.Set<OperationOptionInfo>> supportedOptionsByOperation)
Public only for serialization; please use SchemaBuilder instead.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
ObjectClassInfo
findObjectClassInfo(java.lang.String type)
Returns the ObjectClassInfo for the given type.OperationOptionInfo
findOperationOptionInfo(java.lang.String name)
Returns the OperationOptionInfo for the given name.java.util.Set<ObjectClassInfo>
getObjectClassInfo()
Returns the set of object classes that are defined in the schema, regardless of which operations support them.java.util.Set<OperationOptionInfo>
getOperationOptionInfo()
Returns the set of operation options that are defined in the schema, regardless of which operations support them.java.util.Map<java.lang.Class<? extends APIOperation>,java.util.Set<ObjectClassInfo>>
getSupportedObjectClassesByOperation()
Returns the set of object classes that apply to a particular operation.java.util.Set<ObjectClassInfo>
getSupportedObjectClassesByOperation(java.lang.Class<? extends APIOperation> apiop)
Returns the supported object classes for the given operation.java.util.Map<java.lang.Class<? extends APIOperation>,java.util.Set<OperationOptionInfo>>
getSupportedOptionsByOperation()
Returns the set of operation options that apply to a particular operation.java.util.Set<OperationOptionInfo>
getSupportedOptionsByOperation(java.lang.Class<? extends APIOperation> apiop)
Returns the supported options for the given operation.int
hashCode()
Create a hash code from all the object info objects.java.lang.String
toString()
-
-
-
Constructor Detail
-
Schema
public Schema(java.util.Set<ObjectClassInfo> info, java.util.Set<OperationOptionInfo> options, java.util.Map<java.lang.Class<? extends APIOperation>,java.util.Set<ObjectClassInfo>> supportedObjectClassesByOperation, java.util.Map<java.lang.Class<? extends APIOperation>,java.util.Set<OperationOptionInfo>> supportedOptionsByOperation)
Public only for serialization; please use SchemaBuilder instead.- Parameters:
info
- the object class infosupportedObjectClassesByOperation
- the supported object class by operation
-
-
Method Detail
-
getObjectClassInfo
public java.util.Set<ObjectClassInfo> getObjectClassInfo()
Returns the set of object classes that are defined in the schema, regardless of which operations support them.
-
findObjectClassInfo
public ObjectClassInfo findObjectClassInfo(java.lang.String type)
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
public java.util.Set<OperationOptionInfo> 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
public OperationOptionInfo findOperationOptionInfo(java.lang.String name)
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 java.util.Set<ObjectClassInfo> getSupportedObjectClassesByOperation(java.lang.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
public java.util.Set<OperationOptionInfo> getSupportedOptionsByOperation(java.lang.Class<? extends APIOperation> apiop)
Returns the supported options for the given operation.- Parameters:
apiop
- The operation.- Returns:
- the supported options for the given operation.
-
getSupportedObjectClassesByOperation
public java.util.Map<java.lang.Class<? extends APIOperation>,java.util.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
public java.util.Map<java.lang.Class<? extends APIOperation>,java.util.Set<OperationOptionInfo>> 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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Create a hash code from all the object info objects.- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
-