Interface ObjectClassTypeDefinitionDelegator
-
- All Superinterfaces:
Cloneable,ComplexTypeDefinition,ComplexTypeDefinitionDelegator,DebugDumpable,Definition,DefinitionDelegator,Freezable,LocalDefinitionStore,ObjectClassComplexTypeDefinition,PrismContextSensitive,Revivable,Serializable,SmartVisitable<Definition>,TypeDefinition,TypeDefinitionDelegator,Visitable<Definition>
public interface ObjectClassTypeDefinitionDelegator extends ComplexTypeDefinitionDelegator, ObjectClassComplexTypeDefinition
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default ObjectQuerycreateShadowSearchQuery(String resourceOid)ObjectClassComplexTypeDefinitiondelegate()default <X> ResourceAttributeDefinition<X>findAttributeDefinition(String name)default <X> @Nullable ResourceAttributeDefinition<X>findAttributeDefinition(QName name)Finds a attribute definition by looking at the property name.default <X> @Nullable ResourceAttributeDefinition<X>findAttributeDefinition(QName name, boolean caseInsensitive)Finds a attribute definition by looking at the property name; not considering the case.default Collection<? extends ResourceAttributeDefinition<?>>getAllIdentifiers()Returns both primary and secondary identifiers.default @NotNull Collection<? extends ResourceAttributeDefinition<?>>getAttributeDefinitions()Returns all attribute definitions as an unmodifiable collection.default <X> ResourceAttributeDefinition<X>getDescriptionAttribute()Returns the definition of description attribute of a resource object.default <X> ResourceAttributeDefinition<X>getDisplayNameAttribute()Returns the definition of display name attribute.default StringgetIntent()TODO: THIS SHOULD NOT BE HEREdefault ShadowKindTypegetKind()TODO: THIS SHOULD NOT BE HEREdefault <X> ResourceAttributeDefinition<X>getNamingAttribute()TODOdefault StringgetNativeObjectClass()Returns the native object class string for the resource object.default @NotNull Collection<? extends ResourceAttributeDefinition<?>>getPrimaryIdentifiers()Returns the definition of primary identifier attributes of a resource object.default @NotNull Collection<? extends ResourceAttributeDefinition<?>>getSecondaryIdentifiers()Returns the definition of secondary identifier attributes of a resource object.default ResourceAttributeContainerinstantiate(QName elementName)default booleanisAuxiliary()TODOdefault booleanisDefaultInAKind()Indicates whether definition is should be used as default definition in ist kind.default booleanisPrimaryIdentifier(QName attrName)Returns true if the attribute with a given name is among primary identifiers.default booleanisSecondaryIdentifier(QName attrName)Returns true if the attribute with a given name is among secondary identifiers.default booleanmatches(ShadowType shadow)Deprecated.default ResourceAttributeContainerDefinitiontoResourceAttributeContainerDefinition()default ResourceAttributeContainerDefinitiontoResourceAttributeContainerDefinition(QName elementName)-
Methods inherited from interface com.evolveum.midpoint.prism.ComplexTypeDefinition
isItemDefinitionRemoved, revive
-
Methods inherited from interface com.evolveum.midpoint.prism.deleg.ComplexTypeDefinitionDelegator
containsItemDefinition, findContainerDefinition, findContainerDefinition, findItemDefinition, findItemDefinition, findLocalItemDefinition, findLocalItemDefinition, findNamedItemDefinition, findPropertyDefinition, findReferenceDefinition, findReferenceDefinition, getDefaultNamespace, getDefinitions, getDiagrams, getExtensionForType, getIgnoredNamespaces, hasSubstitutions, isContainerMarker, isEmpty, isListMarker, isObjectMarker, isReferenceMarker, isShared, isXsdAnyMarker, itemOrSubstitution, merge, substitution, trimTo
-
Methods inherited from interface com.evolveum.midpoint.prism.deleg.DefinitionDelegator
accept, accept, debugDump, debugDump, debugDump, debugDumpLazily, debugDumpLazily, getAnnotation, getDeprecatedSince, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getHelp, getMutabilityFlag, getPlannedRemoval, getPrismContext, getProcessing, getSchemaMigrations, getSchemaRegistry, getTypeClass, getTypeClassIfKnown, getTypeName, isAbstract, isDeprecated, isElaborate, isEmphasized, isExperimental, isIgnored, isRuntimeSchema, setAnnotation
-
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutable
-
Methods inherited from interface com.evolveum.midpoint.schema.processor.ObjectClassComplexTypeDefinition
clone, deepClone, hasIndexOnlyAttributes, isIdentifier, toMutable
-
Methods inherited from interface com.evolveum.midpoint.prism.TypeDefinition
isAssignableFrom
-
Methods inherited from interface com.evolveum.midpoint.prism.deleg.TypeDefinitionDelegator
canRepresent, getCompileTimeClass, getInstantiationOrder, getStaticSubTypes, getSuperType
-
-
-
-
Method Detail
-
delegate
ObjectClassComplexTypeDefinition delegate()
- Specified by:
delegatein interfaceComplexTypeDefinitionDelegator- Specified by:
delegatein interfaceDefinitionDelegator- Specified by:
delegatein interfaceTypeDefinitionDelegator
-
getAttributeDefinitions
@NotNull default @NotNull Collection<? extends ResourceAttributeDefinition<?>> getAttributeDefinitions()
Description copied from interface:ObjectClassComplexTypeDefinitionReturns all attribute definitions as an unmodifiable collection. Should be the same content as returned by getDefinitions().- Specified by:
getAttributeDefinitionsin interfaceObjectClassComplexTypeDefinition
-
findAttributeDefinition
@Nullable default <X> @Nullable ResourceAttributeDefinition<X> findAttributeDefinition(QName name)
Description copied from interface:ObjectClassComplexTypeDefinitionFinds a attribute definition by looking at the property name. Returns null if nothing is found.- Specified by:
findAttributeDefinitionin interfaceObjectClassComplexTypeDefinition- Parameters:
name- property definition name- Returns:
- found property definition or null
-
findAttributeDefinition
@Nullable default <X> @Nullable ResourceAttributeDefinition<X> findAttributeDefinition(QName name, boolean caseInsensitive)
Description copied from interface:ObjectClassComplexTypeDefinitionFinds a attribute definition by looking at the property name; not considering the case. Returns null if nothing is found.- Specified by:
findAttributeDefinitionin interfaceObjectClassComplexTypeDefinition- Parameters:
name- property definition name- Returns:
- found property definition or null
-
findAttributeDefinition
default <X> ResourceAttributeDefinition<X> findAttributeDefinition(String name)
- Specified by:
findAttributeDefinitionin interfaceObjectClassComplexTypeDefinition
-
getPrimaryIdentifiers
@NotNull default @NotNull Collection<? extends ResourceAttributeDefinition<?>> getPrimaryIdentifiers()
Description copied from interface:ObjectClassComplexTypeDefinitionReturns the definition of primary identifier attributes of a resource object. May return empty set if there are no identifier attributes. Must not return null. The exception should be never thrown unless there is some bug in the code. The validation of model consistency should be done at the time of schema parsing.- Specified by:
getPrimaryIdentifiersin interfaceObjectClassComplexTypeDefinition- Returns:
- definition of identifier attributes
-
isPrimaryIdentifier
default boolean isPrimaryIdentifier(QName attrName)
Description copied from interface:ObjectClassComplexTypeDefinitionReturns true if the attribute with a given name is among primary identifiers. Matching is done using namespace-approximate method (testing only local part if no namespace is provided), so beware of incidental matching (e.g. ri:uid vs icfs:uid).- Specified by:
isPrimaryIdentifierin interfaceObjectClassComplexTypeDefinition
-
getSecondaryIdentifiers
@NotNull default @NotNull Collection<? extends ResourceAttributeDefinition<?>> getSecondaryIdentifiers()
Description copied from interface:ObjectClassComplexTypeDefinitionReturns the definition of secondary identifier attributes of a resource object. May return empty set if there are no secondary identifier attributes. Must not return null. The exception should be never thrown unless there is some bug in the code. The validation of model consistency should be done at the time of schema parsing.- Specified by:
getSecondaryIdentifiersin interfaceObjectClassComplexTypeDefinition- Returns:
- definition of secondary identifier attributes
-
isSecondaryIdentifier
default boolean isSecondaryIdentifier(QName attrName)
Description copied from interface:ObjectClassComplexTypeDefinitionReturns true if the attribute with a given name is among secondary identifiers. Matching is done using namespace-approximate method (testing only local part if no namespace is provided), so beware of incidental matching (e.g. ri:uid vs icfs:uid).- Specified by:
isSecondaryIdentifierin interfaceObjectClassComplexTypeDefinition
-
getDescriptionAttribute
default <X> ResourceAttributeDefinition<X> getDescriptionAttribute()
Description copied from interface:ObjectClassComplexTypeDefinitionReturns the definition of description attribute of a resource object. Returns null if there is no description attribute. The exception should be never thrown unless there is some bug in the code. The validation of model consistency should be done at the time of schema parsing.- Specified by:
getDescriptionAttributein interfaceObjectClassComplexTypeDefinition
-
getNamingAttribute
default <X> ResourceAttributeDefinition<X> getNamingAttribute()
Description copied from interface:ObjectClassComplexTypeDefinitionTODO- Specified by:
getNamingAttributein interfaceObjectClassComplexTypeDefinition
-
getDisplayNameAttribute
default <X> ResourceAttributeDefinition<X> getDisplayNameAttribute()
Description copied from interface:ObjectClassComplexTypeDefinitionReturns the definition of display name attribute. Display name attribute specifies which resource attribute should be used as title when displaying objects of a specific resource object class. It must point to an attribute of String type. If not present, primary identifier should be used instead (but this method does not handle this default behavior). Returns null if there is no display name attribute. The exception should be never thrown unless there is some bug in the code. The validation of model consistency should be done at the time of schema parsing.- Specified by:
getDisplayNameAttributein interfaceObjectClassComplexTypeDefinition
-
getAllIdentifiers
default Collection<? extends ResourceAttributeDefinition<?>> getAllIdentifiers()
Description copied from interface:ObjectClassComplexTypeDefinitionReturns both primary and secondary identifiers.- Specified by:
getAllIdentifiersin interfaceObjectClassComplexTypeDefinition
-
getNativeObjectClass
default String getNativeObjectClass()
Description copied from interface:ObjectClassComplexTypeDefinitionReturns the native object class string for the resource object. Native object class is the name of the Resource Object Definition (Object Class) as it is seen by the resource itself. The name of the Resource Object Definition may be constrained by XSD or other syntax and therefore may be "mangled" to conform to such syntax. The native object class value will contain unmangled name (if available). Returns null if there is no native object class. The exception should be never thrown unless there is some bug in the code. The validation of model consistency should be done at the time of schema parsing.- Specified by:
getNativeObjectClassin interfaceObjectClassComplexTypeDefinition- Returns:
- native object class
-
isAuxiliary
default boolean isAuxiliary()
Description copied from interface:ObjectClassComplexTypeDefinitionTODO- Specified by:
isAuxiliaryin interfaceObjectClassComplexTypeDefinition- Returns:
-
getKind
default ShadowKindType getKind()
Description copied from interface:ObjectClassComplexTypeDefinitionTODO: THIS SHOULD NOT BE HERE- Specified by:
getKindin interfaceObjectClassComplexTypeDefinition- Returns:
-
isDefaultInAKind
default boolean isDefaultInAKind()
Description copied from interface:ObjectClassComplexTypeDefinitionIndicates whether definition is should be used as default definition in ist kind. E.g. if used in an "account" kind it indicates default account definition. If true value is returned then the definition should be used as a default definition for the kind. This is a way how a resource connector may suggest applicable object classes (resource object definitions) for individual shadow kinds (e.g. accounts).- Specified by:
isDefaultInAKindin interfaceObjectClassComplexTypeDefinition- Returns:
- true if the definition should be used as account type.
-
getIntent
default String getIntent()
Description copied from interface:ObjectClassComplexTypeDefinitionTODO: THIS SHOULD NOT BE HERE- Specified by:
getIntentin interfaceObjectClassComplexTypeDefinition- Returns:
-
toResourceAttributeContainerDefinition
default ResourceAttributeContainerDefinition toResourceAttributeContainerDefinition()
- Specified by:
toResourceAttributeContainerDefinitionin interfaceObjectClassComplexTypeDefinition
-
toResourceAttributeContainerDefinition
default ResourceAttributeContainerDefinition toResourceAttributeContainerDefinition(QName elementName)
- Specified by:
toResourceAttributeContainerDefinitionin interfaceObjectClassComplexTypeDefinition
-
createShadowSearchQuery
default ObjectQuery createShadowSearchQuery(String resourceOid) throws SchemaException
- Specified by:
createShadowSearchQueryin interfaceObjectClassComplexTypeDefinition- Throws:
SchemaException
-
instantiate
default ResourceAttributeContainer instantiate(QName elementName)
- Specified by:
instantiatein interfaceObjectClassComplexTypeDefinition
-
matches
@Deprecated default boolean matches(ShadowType shadow)
Deprecated.Description copied from interface:ObjectClassComplexTypeDefinitionDo not use. Unclear semantics. For synchronization tasks usecom.evolveum.midpoint.model.impl.sync.SynchronizationObjectsFilterclass instead.- Specified by:
matchesin interfaceObjectClassComplexTypeDefinition
-
-