Class ResourceObjectClassDefinitionImpl
- java.lang.Object
-
- com.evolveum.midpoint.prism.AbstractFreezable
-
- com.evolveum.midpoint.schema.processor.AbstractResourceObjectDefinitionImpl
-
- com.evolveum.midpoint.schema.processor.ResourceObjectClassDefinitionImpl
-
- All Implemented Interfaces:
ComplexTypeDefinition
,Definition
,Freezable
,LocalItemDefinitionStore
,MutableComplexTypeDefinition
,MutableDefinition
,MutableTypeDefinition
,PrismContextSensitive
,Revivable
,SmartVisitable<Definition>
,TypeDefinition
,Visitable<Definition>
,AssociationDefinitionStore
,AttributeDefinitionStore
,IdentifiersDefinitionStore
,LayeredDefinition
,MutableResourceObjectClassDefinition
,ResourceObjectClassDefinition
,ResourceObjectDefinition
,DebugDumpable
,Serializable
,Cloneable
public class ResourceObjectClassDefinitionImpl extends AbstractResourceObjectDefinitionImpl implements MutableResourceObjectClassDefinition
Default implementation ofResourceObjectClassDefinition
.- Author:
- semancik
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.schema.processor.AbstractResourceObjectDefinitionImpl
attributeDefinitions, primaryIdentifiersNames, secondaryIdentifiersNames
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description ResourceObjectClassDefinitionImpl(@NotNull QName objectClassName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDiagram(ItemDiagramSpecification diagram)
void
addPrimaryIdentifierName(QName name)
void
addSchemaMigration(SchemaMigration schemaMigration)
void
addSecondaryIdentifierName(QName name)
void
addSubstitution(ItemDefinition<?> itemDef, ItemDefinition<?> maybeSubst)
@NotNull ResourceObjectClassDefinitionImpl
clone()
Does a shallow clone of this definition (i.e.protected ResourceObjectClassDefinitionImpl
cloneInLayer(@NotNull LayerType layer)
protected void
copyDefinitionDataFrom(@NotNull LayerType layer, ResourceObjectClassDefinition source)
<T> ResourceAttributeDefinition<T>
createAttributeDefinition(@NotNull QName name, @NotNull QName typeName, @NotNull Consumer<MutableRawResourceAttributeDefinition<?>> consumer)
Returned value is immutable.MutablePrismPropertyDefinition<?>
createPropertyDefinition(String name, QName typeName)
MutablePrismPropertyDefinition<?>
createPropertyDefinition(QName name, QName typeName)
@NotNull ResourceObjectClassDefinition
deepClone(@NotNull DeepCloneOperation operation)
Does a deep clone of this definition.void
delete(QName itemName)
boolean
equals(Object o)
ResourceActivationDefinitionType
getActivationSchemaHandling()
@NotNull Collection<ResourceAssociationDefinition>
getAssociationDefinitions()
Returns definitions of all associations as an unmodifiable collection.@NotNull Collection<ResourceObjectDefinition>
getAuxiliaryDefinitions()
TODO define semantics (it's different forCompositeObjectDefinition
and the others!ResourceBidirectionalMappingAndDefinitionType
getAuxiliaryObjectClassMappings()
ResourceObjectReferenceType
getBaseContext()
The definition of base context (resource object container).@Nullable CapabilitiesType
getConfiguredCapabilities()
Returns configured capabilities for given refined object class definition.String
getDebugDumpClassName()
Return a human readable name of this class suitable for logs.@Nullable DefaultInboundMappingEvaluationPhasesType
getDefaultInboundMappingEvaluationPhases()
Returns the phases in which inbound mappings are evaluated by default.String
getDescription()
Free-form textual description of the object.@Nullable QName
getDescriptionAttributeName()
Returns name of the description attribute.String
getDisplayName()
Returns display name.@Nullable QName
getDisplayNameAttributeName()
Returns name of the display name attribute.<T extends CapabilityType>
TgetEffectiveCapability(Class<T> capabilityClass, ResourceType resource)
TODOString
getHumanReadableName()
TODO@Nullable QName
getNamingAttributeName()
Returns name of the naming attribute.String
getNativeObjectClass()
Returns the native object class name.@NotNull ResourceObjectClassDefinition
getObjectClassDefinition()
Returns the object class definition.@NotNull QName
getObjectClassName()
Returns the name of the object class.ResourceObjectMultiplicityType
getObjectMultiplicity()
@Nullable ResourcePasswordDefinitionType
getPasswordDefinition()
ProjectionPolicyType
getProjectionPolicy()
@NotNull Collection<ResourceObjectPattern>
getProtectedObjectPatterns()
Returns compiled patterns denoting protected objects.String
getResourceOid()
This is currently used only to pass information about association in the model-impl TODO consider removal!SearchHierarchyScope
getSearchHierarchyScope()
Definition of search hierarchy scope.ObjectReferenceType
getSecurityPolicyRef()
@NotNull ResourceObjectVolatilityType
getVolatility()
Specifies volatility of this type of resource objects, i.e.boolean
hasAuxiliaryObjectClass(QName expectedObjectClassName)
TODO define semantics (it's different forCompositeObjectDefinition
and the others!int
hashCode()
boolean
hasSubstitutions()
ResourceAttributeContainer
instantiate(@NotNull ItemName elementName)
Creates aResourceAttributeContainer
instance with this definition as its complex type definition.static ResourceAttributeContainer
instantiate(@NotNull QName elementName, @NotNull ResourceObjectClassDefinition objectClassDefinition)
boolean
isAuxiliary()
TODOboolean
isDefaultAccountDefinition()
Indicates whether definition is the default account definition.void
setAbstract(boolean value)
void
setAuxiliary(boolean auxiliary)
void
setCompileTimeClass(Class<?> compileTimeClass)
void
setContainerMarker(boolean value)
void
setDefaultAccountDefinition(boolean value)
void
setDefaultNamespace(String namespace)
void
setDeprecated(boolean deprecated)
void
setDescriptionAttributeName(QName name)
void
setDisplayName(String displayName)
void
setDisplayNameAttributeName(QName name)
void
setDisplayOrder(Integer displayOrder)
void
setDocumentation(String value)
void
setEmphasized(boolean emphasized)
void
setExperimental(boolean experimental)
void
setExtensionForType(QName type)
void
setHelp(String help)
void
setIgnoredNamespaces(@NotNull List<String> ignoredNamespaces)
void
setInstantiationOrder(Integer order)
void
setListMarker(boolean value)
void
setNamingAttributeName(QName name)
void
setNativeObjectClass(String nativeObjectClass)
void
setObjectMarker(boolean value)
void
setProcessing(ItemProcessing processing)
void
setReferenceMarker(boolean value)
void
setRuntimeSchema(boolean value)
void
setSuperType(QName superType)
void
setTypeName(QName typeName)
void
setXsdAnyMarker(boolean value)
Optional<ItemDefinition<?>>
substitution(QName name)
MutableResourceObjectClassDefinition
toMutable()
Returns an interface to mutate this definition.String
toString()
-
Methods inherited from class com.evolveum.midpoint.schema.processor.AbstractResourceObjectDefinitionImpl
accept, accept, add, addDebugDumpHeaderExtension, addInternal, canRepresent, computePrismObjectDefinition, copyDefinitionDataFrom, createBlankShadow, debugDump, debugDump, findItemDefinition, forLayer, getAnnotation, getAnnotations, getAttributeDefinitions, getCompileTimeClass, getConfiguredAuxiliaryObjectClassNames, getCurrentLayer, getDefaultNamespace, getDefinitions, getDeprecatedSince, getDiagrams, getDisplayOrder, getDocumentation, getDocumentationPreview, getExtensionForType, getHelp, getIgnoredNamespaces, getInstantiationOrder, getPlannedRemoval, getPrimaryIdentifiers, getPrimaryIdentifiersNames, getPrismContext, getPrismObjectDefinition, getProcessing, getSchemaMigrations, getSecondaryIdentifiers, getSecondaryIdentifiersNames, getStaticSubTypes, getSuperType, getTypeClass, getTypeClassIfKnown, getTypeName, isAbstract, isContainerMarker, isDeprecated, isElaborate, isEmphasized, isEmpty, isExperimental, isListMarker, isObjectMarker, isReferenceMarker, isRuntimeSchema, isXsdAnyMarker, merge, performFreeze, replaceDefinition, revive, setAnnotation, trimTo
-
Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezable
freeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutable
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.schema.processor.AssociationDefinitionStore
findAssociationDefinition, findAssociationDefinitionRequired, getAssociationDefinitions, getNamesOfAssociations, getNamesOfAssociationsWithInboundExpressions, getNamesOfAssociationsWithOutboundExpressions
-
Methods inherited from interface com.evolveum.midpoint.schema.processor.AttributeDefinitionStore
containsAttributeDefinition, findAttributeDefinition, findAttributeDefinition, findAttributeDefinition, findAttributeDefinitionRequired, findAttributeDefinitionRequired, findAttributeDefinitionStrictlyRequired, findAttributeDefinitionStrictlyRequired, getAttributeDefinitions, getAttributeDefinitions, getNamesOfAttributesWithInboundExpressions, getNamesOfAttributesWithOutboundExpressions, hasIndexOnlyAttributes
-
Methods inherited from interface com.evolveum.midpoint.prism.ComplexTypeDefinition
getDefaultNamespace, getDefinitions, getExtensionForType, getIgnoredNamespaces, getXmlAttributeDefinitions, hasSubstitutions, isContainerMarker, isEmpty, isListMarker, isObjectMarker, isReferenceMarker, isStrictAnyMarker, isXsdAnyMarker, itemOrSubstitution, merge, trimTo
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.prism.Definition
debugDump, getAnnotation, getAnnotations, getDeprecatedSince, getDiagrams, getDisplayOrder, getDocumentation, getDocumentationPreview, getHelp, getMutabilityFlag, getPlannedRemoval, 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.IdentifiersDefinitionStore
getAllIdentifiers, getPrimaryIdentifiers, getPrimaryIdentifiersNames, getSecondaryIdentifiers, getSecondaryIdentifiersNames, isIdentifier, isPrimaryIdentifier, isSecondaryIdentifier
-
Methods inherited from interface com.evolveum.midpoint.schema.processor.LayeredDefinition
getCurrentLayer
-
Methods inherited from interface com.evolveum.midpoint.prism.LocalItemDefinitionStore
containsItemDefinition, findContainerDefinition, findItemDefinition, findItemDefinition, findLocalItemDefinition, findLocalItemDefinition, findPropertyDefinition, findReferenceDefinition
-
Methods inherited from interface com.evolveum.midpoint.prism.MutableComplexTypeDefinition
replaceDefinition, setAttributeDefinitions, setStrictAnyMarker
-
Methods inherited from interface com.evolveum.midpoint.schema.processor.MutableResourceObjectClassDefinition
add, createAttributeDefinition
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitive
getPrismContext
-
Methods inherited from interface com.evolveum.midpoint.schema.processor.ResourceObjectClassDefinition
createShadowSearchQuery
-
Methods inherited from interface com.evolveum.midpoint.schema.processor.ResourceObjectDefinition
createBlankShadow, forLayer, getActivationBidirectionalMappingType, getActivationFetchStrategy, getConfiguredAuxiliaryObjectClassNames, getDescriptionAttribute, getDisplayNameAttribute, getNamingAttribute, getPagedSearches, getPasswordFetchStrategy, getPasswordInbound, getPasswordOutbound, getPrismObjectDefinition, isObjectCountingEnabled, isPagedSearchEnabled, matchesObjectClassName, replaceDefinition, replaceDefinition, toResourceAttributeContainerDefinition, toResourceAttributeContainerDefinition
-
Methods inherited from interface com.evolveum.midpoint.prism.SmartVisitable
accept
-
Methods inherited from interface com.evolveum.midpoint.prism.TypeDefinition
canRepresent, getCompileTimeClass, getInstantiationOrder, getStaticSubTypes, getSuperType, isAssignableFrom
-
-
-
-
Constructor Detail
-
ResourceObjectClassDefinitionImpl
public ResourceObjectClassDefinitionImpl(@NotNull @NotNull QName objectClassName)
-
-
Method Detail
-
getObjectClassName
@NotNull public @NotNull QName getObjectClassName()
Description copied from interface:ResourceObjectDefinition
Returns the name of the object class.- Specified by:
getObjectClassName
in interfaceResourceObjectDefinition
-
getDisplayName
public String getDisplayName()
Description copied from interface:Definition
Returns display name. Specifies the printable name of the object class or attribute. It must contain a printable string. It may also contain a key to catalog file. Returns null if no display name is set. Corresponds to "displayName" XSD annotation.- Specified by:
getDisplayName
in interfaceDefinition
- Returns:
- display name string or catalog key
-
delete
public void delete(QName itemName)
- Specified by:
delete
in interfaceMutableComplexTypeDefinition
-
createPropertyDefinition
public MutablePrismPropertyDefinition<?> createPropertyDefinition(QName name, QName typeName)
- Specified by:
createPropertyDefinition
in interfaceMutableComplexTypeDefinition
-
createPropertyDefinition
public MutablePrismPropertyDefinition<?> createPropertyDefinition(String name, QName typeName)
- Specified by:
createPropertyDefinition
in interfaceMutableComplexTypeDefinition
-
addPrimaryIdentifierName
public void addPrimaryIdentifierName(QName name)
- Specified by:
addPrimaryIdentifierName
in interfaceMutableResourceObjectClassDefinition
-
addSecondaryIdentifierName
public void addSecondaryIdentifierName(QName name)
- Specified by:
addSecondaryIdentifierName
in interfaceMutableResourceObjectClassDefinition
-
getDescriptionAttributeName
@Nullable public @Nullable QName getDescriptionAttributeName()
Description copied from interface:ResourceObjectDefinition
Returns name of the description attribute.- Specified by:
getDescriptionAttributeName
in interfaceResourceObjectDefinition
- See Also:
ResourceObjectDefinition.getDescriptionAttribute()
-
setDescriptionAttributeName
public void setDescriptionAttributeName(QName name)
- Specified by:
setDescriptionAttributeName
in interfaceMutableResourceObjectClassDefinition
-
getNamingAttributeName
@Nullable public @Nullable QName getNamingAttributeName()
Description copied from interface:ResourceObjectDefinition
Returns name of the naming attribute.- Specified by:
getNamingAttributeName
in interfaceResourceObjectDefinition
- See Also:
ResourceObjectDefinition.getNamingAttributeName()
-
setNamingAttributeName
public void setNamingAttributeName(QName name)
- Specified by:
setNamingAttributeName
in interfaceMutableResourceObjectClassDefinition
-
getDisplayNameAttributeName
@Nullable public @Nullable QName getDisplayNameAttributeName()
Description copied from interface:ResourceObjectDefinition
Returns name of the display name attribute.- Specified by:
getDisplayNameAttributeName
in interfaceResourceObjectDefinition
- See Also:
ResourceObjectDefinition.getDisplayNameAttribute()
-
setDisplayNameAttributeName
public void setDisplayNameAttributeName(QName name)
- Specified by:
setDisplayNameAttributeName
in interfaceMutableResourceObjectClassDefinition
-
getNativeObjectClass
public String getNativeObjectClass()
Description copied from interface:ResourceObjectClassDefinition
Returns the native object class name. Native object class is the name of the object class as it is seen by the resource itself. The name of the object class used in midPoint 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 original, un-mangled 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:
getNativeObjectClass
in interfaceResourceObjectClassDefinition
- Returns:
- native object class
-
setNativeObjectClass
public void setNativeObjectClass(String nativeObjectClass)
- Specified by:
setNativeObjectClass
in interfaceMutableResourceObjectClassDefinition
-
isAuxiliary
public boolean isAuxiliary()
Description copied from interface:ResourceObjectClassDefinition
TODO- Specified by:
isAuxiliary
in interfaceResourceObjectClassDefinition
-
setAuxiliary
public void setAuxiliary(boolean auxiliary)
- Specified by:
setAuxiliary
in interfaceMutableResourceObjectClassDefinition
-
isDefaultAccountDefinition
public boolean isDefaultAccountDefinition()
Description copied from interface:ResourceObjectClassDefinition
Indicates whether definition is the default account definition. (This feature is present for "dumb" resource definition that are completely without `schemaHandling` part.) This is a way how a resource connector may suggest applicable object classes. Currently the only use of this flag is that ConnId `pass:[__ACCOUNT__]` is declared as a default for the kind of `ACCOUNT`. Originally, this property was called `defaultInAKind` and marked the object class as being default for given kind. At that time, the kind was part of object class definition. This is no longer the case, therefore also this property is renamed - and is available only for account-like object classes. In the future we may put those things (kind + default-in-a-kind) back, if needed.- Specified by:
isDefaultAccountDefinition
in interfaceResourceObjectClassDefinition
-
setDefaultAccountDefinition
public void setDefaultAccountDefinition(boolean value)
- Specified by:
setDefaultAccountDefinition
in interfaceMutableResourceObjectClassDefinition
-
createAttributeDefinition
public <T> ResourceAttributeDefinition<T> createAttributeDefinition(@NotNull @NotNull QName name, @NotNull @NotNull QName typeName, @NotNull @NotNull Consumer<MutableRawResourceAttributeDefinition<?>> consumer)
Description copied from interface:MutableResourceObjectClassDefinition
Returned value is immutable.- Specified by:
createAttributeDefinition
in interfaceMutableResourceObjectClassDefinition
-
instantiate
public ResourceAttributeContainer instantiate(@NotNull @NotNull ItemName elementName)
Description copied from interface:ResourceObjectDefinition
Creates aResourceAttributeContainer
instance with this definition as its complex type definition.- Specified by:
instantiate
in interfaceResourceObjectClassDefinition
- Specified by:
instantiate
in interfaceResourceObjectDefinition
-
instantiate
public static ResourceAttributeContainer instantiate(@NotNull @NotNull QName elementName, @NotNull @NotNull ResourceObjectClassDefinition objectClassDefinition)
-
clone
@NotNull public @NotNull ResourceObjectClassDefinitionImpl clone()
Description copied from interface:ComplexTypeDefinition
Does a shallow clone of this definition (i.e. item definitions themselves are NOT cloned).- Specified by:
clone
in interfaceComplexTypeDefinition
- Specified by:
clone
in interfaceDefinition
- Specified by:
clone
in interfaceMutableComplexTypeDefinition
- Specified by:
clone
in interfaceResourceObjectClassDefinition
- Specified by:
clone
in interfaceResourceObjectDefinition
- Specified by:
clone
in classAbstractResourceObjectDefinitionImpl
-
cloneInLayer
protected ResourceObjectClassDefinitionImpl cloneInLayer(@NotNull @NotNull LayerType layer)
- Specified by:
cloneInLayer
in classAbstractResourceObjectDefinitionImpl
-
setExtensionForType
public void setExtensionForType(QName type)
- Specified by:
setExtensionForType
in interfaceMutableComplexTypeDefinition
-
setAbstract
public void setAbstract(boolean value)
- Specified by:
setAbstract
in interfaceMutableComplexTypeDefinition
-
setSuperType
public void setSuperType(QName superType)
- Specified by:
setSuperType
in interfaceMutableComplexTypeDefinition
-
setObjectMarker
public void setObjectMarker(boolean value)
- Specified by:
setObjectMarker
in interfaceMutableComplexTypeDefinition
-
setContainerMarker
public void setContainerMarker(boolean value)
- Specified by:
setContainerMarker
in interfaceMutableComplexTypeDefinition
-
setReferenceMarker
public void setReferenceMarker(boolean value)
- Specified by:
setReferenceMarker
in interfaceMutableComplexTypeDefinition
-
setDefaultNamespace
public void setDefaultNamespace(String namespace)
- Specified by:
setDefaultNamespace
in interfaceMutableComplexTypeDefinition
-
setIgnoredNamespaces
public void setIgnoredNamespaces(@NotNull @NotNull List<String> ignoredNamespaces)
- Specified by:
setIgnoredNamespaces
in interfaceMutableComplexTypeDefinition
-
setXsdAnyMarker
public void setXsdAnyMarker(boolean value)
- Specified by:
setXsdAnyMarker
in interfaceMutableComplexTypeDefinition
-
setListMarker
public void setListMarker(boolean value)
- Specified by:
setListMarker
in interfaceMutableComplexTypeDefinition
-
setCompileTimeClass
public void setCompileTimeClass(Class<?> compileTimeClass)
- Specified by:
setCompileTimeClass
in interfaceMutableComplexTypeDefinition
-
addSubstitution
public void addSubstitution(ItemDefinition<?> itemDef, ItemDefinition<?> maybeSubst)
- Specified by:
addSubstitution
in interfaceMutableComplexTypeDefinition
-
setProcessing
public void setProcessing(ItemProcessing processing)
- Specified by:
setProcessing
in interfaceMutableDefinition
-
setDeprecated
public void setDeprecated(boolean deprecated)
- Specified by:
setDeprecated
in interfaceMutableDefinition
-
setExperimental
public void setExperimental(boolean experimental)
- Specified by:
setExperimental
in interfaceMutableDefinition
-
setEmphasized
public void setEmphasized(boolean emphasized)
- Specified by:
setEmphasized
in interfaceMutableDefinition
-
setDisplayName
public void setDisplayName(String displayName)
- Specified by:
setDisplayName
in interfaceMutableDefinition
-
setDisplayOrder
public void setDisplayOrder(Integer displayOrder)
- Specified by:
setDisplayOrder
in interfaceMutableDefinition
-
setHelp
public void setHelp(String help)
- Specified by:
setHelp
in interfaceMutableDefinition
-
setRuntimeSchema
public void setRuntimeSchema(boolean value)
- Specified by:
setRuntimeSchema
in interfaceMutableDefinition
-
setTypeName
public void setTypeName(QName typeName)
- Specified by:
setTypeName
in interfaceMutableDefinition
-
setDocumentation
public void setDocumentation(String value)
- Specified by:
setDocumentation
in interfaceMutableDefinition
-
addSchemaMigration
public void addSchemaMigration(SchemaMigration schemaMigration)
- Specified by:
addSchemaMigration
in interfaceMutableDefinition
-
addDiagram
public void addDiagram(ItemDiagramSpecification diagram)
- Specified by:
addDiagram
in interfaceMutableDefinition
-
setInstantiationOrder
public void setInstantiationOrder(Integer order)
- Specified by:
setInstantiationOrder
in interfaceMutableTypeDefinition
-
deepClone
@NotNull public @NotNull ResourceObjectClassDefinition deepClone(@NotNull @NotNull DeepCloneOperation operation)
Description copied from interface:ComplexTypeDefinition
Does a deep clone of this definition.- Specified by:
deepClone
in interfaceComplexTypeDefinition
- Specified by:
deepClone
in interfaceResourceObjectClassDefinition
- Specified by:
deepClone
in interfaceResourceObjectDefinition
-
getSecurityPolicyRef
public ObjectReferenceType getSecurityPolicyRef()
- Specified by:
getSecurityPolicyRef
in interfaceResourceObjectDefinition
- See Also:
ResourceObjectTypeDefinitionType.getSecurityPolicyRef()
-
hasSubstitutions
public boolean hasSubstitutions()
- Specified by:
hasSubstitutions
in interfaceComplexTypeDefinition
-
substitution
public Optional<ItemDefinition<?>> substitution(QName name)
- Specified by:
substitution
in interfaceComplexTypeDefinition
-
copyDefinitionDataFrom
protected void copyDefinitionDataFrom(@NotNull @NotNull LayerType layer, ResourceObjectClassDefinition source)
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractResourceObjectDefinitionImpl
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractResourceObjectDefinitionImpl
-
toMutable
public MutableResourceObjectClassDefinition toMutable()
Description copied from interface:Definition
Returns an interface to mutate this definition.- Specified by:
toMutable
in interfaceComplexTypeDefinition
- Specified by:
toMutable
in interfaceDefinition
- Specified by:
toMutable
in interfaceResourceObjectClassDefinition
-
getPasswordDefinition
@Nullable public @Nullable ResourcePasswordDefinitionType getPasswordDefinition()
Description copied from interface:ResourceObjectDefinition
- Specified by:
getPasswordDefinition
in interfaceResourceObjectDefinition
-
getObjectClassDefinition
@NotNull public @NotNull ResourceObjectClassDefinition getObjectClassDefinition()
Description copied from interface:ResourceObjectDefinition
Returns the object class definition. It is either this object itself, or the linked definition (for object type).- Specified by:
getObjectClassDefinition
in interfaceResourceObjectDefinition
-
getConfiguredCapabilities
@Nullable public @Nullable CapabilitiesType getConfiguredCapabilities()
Description copied from interface:ResourceObjectDefinition
Returns configured capabilities for given refined object class definition. Returned object is freely modifiable copy of the original information.- Specified by:
getConfiguredCapabilities
in interfaceResourceObjectDefinition
-
getEffectiveCapability
public <T extends CapabilityType> T getEffectiveCapability(Class<T> capabilityClass, ResourceType resource)
Description copied from interface:ResourceObjectDefinition
TODO- Specified by:
getEffectiveCapability
in interfaceResourceObjectDefinition
-
getHumanReadableName
public String getHumanReadableName()
Description copied from interface:ResourceObjectDefinition
TODO- Specified by:
getHumanReadableName
in interfaceResourceObjectDefinition
-
getAssociationDefinitions
@NotNull public @NotNull Collection<ResourceAssociationDefinition> getAssociationDefinitions()
Description copied from interface:AssociationDefinitionStore
Returns definitions of all associations as an unmodifiable collection. Note: these items are _not_ included in getDefinitions. (BTW, ResourceAssociationDefinition is not a subtype of ItemDefinition, not even of Definition.)- Specified by:
getAssociationDefinitions
in interfaceAssociationDefinitionStore
-
getDebugDumpClassName
public String getDebugDumpClassName()
Description copied from interface:ResourceObjectDefinition
Return a human readable name of this class suitable for logs.- Specified by:
getDebugDumpClassName
in interfaceResourceObjectDefinition
-
getDescription
public String getDescription()
Description copied from interface:ResourceObjectDefinition
Free-form textual description of the object. It is supposed to describe the object or a construct that it is attached to.- Specified by:
getDescription
in interfaceResourceObjectDefinition
- See Also:
ResourceObjectTypeDefinitionType.getDescription()
-
getResourceOid
public String getResourceOid()
Description copied from interface:ResourceObjectDefinition
This is currently used only to pass information about association in the model-impl TODO consider removal!- Specified by:
getResourceOid
in interfaceResourceObjectDefinition
-
getObjectMultiplicity
public ResourceObjectMultiplicityType getObjectMultiplicity()
- Specified by:
getObjectMultiplicity
in interfaceResourceObjectDefinition
- See Also:
ResourceObjectTypeDefinitionType.getMultiplicity()
-
getProjectionPolicy
public ProjectionPolicyType getProjectionPolicy()
- Specified by:
getProjectionPolicy
in interfaceResourceObjectDefinition
- See Also:
ResourceObjectTypeDefinitionType.getProjection()
-
getAuxiliaryDefinitions
@NotNull public @NotNull Collection<ResourceObjectDefinition> getAuxiliaryDefinitions()
Description copied from interface:ResourceObjectDefinition
TODO define semantics (it's different forCompositeObjectDefinition
and the others!- Specified by:
getAuxiliaryDefinitions
in interfaceResourceObjectDefinition
-
hasAuxiliaryObjectClass
public boolean hasAuxiliaryObjectClass(QName expectedObjectClassName)
Description copied from interface:ResourceObjectDefinition
TODO define semantics (it's different forCompositeObjectDefinition
and the others!- Specified by:
hasAuxiliaryObjectClass
in interfaceResourceObjectDefinition
-
getAuxiliaryObjectClassMappings
public ResourceBidirectionalMappingAndDefinitionType getAuxiliaryObjectClassMappings()
- Specified by:
getAuxiliaryObjectClassMappings
in interfaceResourceObjectDefinition
- See Also:
ResourceObjectTypeDefinitionType.getAuxiliaryObjectClassMappings()
-
getProtectedObjectPatterns
@NotNull public @NotNull Collection<ResourceObjectPattern> getProtectedObjectPatterns()
Description copied from interface:ResourceObjectDefinition
Returns compiled patterns denoting protected objects.- Specified by:
getProtectedObjectPatterns
in interfaceResourceObjectDefinition
- See Also:
ResourceObjectTypeDefinitionType.getProtected()
-
getActivationSchemaHandling
public ResourceActivationDefinitionType getActivationSchemaHandling()
- Specified by:
getActivationSchemaHandling
in interfaceResourceObjectDefinition
- See Also:
ResourceObjectTypeDefinitionType.getActivation()
-
getBaseContext
public ResourceObjectReferenceType getBaseContext()
Description copied from interface:ResourceObjectDefinition
The definition of base context (resource object container). This object will be used as a base for searches for objects of this type.- Specified by:
getBaseContext
in interfaceResourceObjectDefinition
- See Also:
ResourceObjectTypeDefinitionType.getBaseContext()
-
getSearchHierarchyScope
public SearchHierarchyScope getSearchHierarchyScope()
Description copied from interface:ResourceObjectDefinition
Definition of search hierarchy scope. It specifies how "deep" the search should go into the object hierarchy.- Specified by:
getSearchHierarchyScope
in interfaceResourceObjectDefinition
- See Also:
ResourceObjectTypeDefinitionType.getSearchHierarchyScope()
-
getVolatility
@NotNull public @NotNull ResourceObjectVolatilityType getVolatility()
Description copied from interface:ResourceObjectDefinition
Specifies volatility of this type of resource objects, i.e. whether such an object can change when midPoint is not looking.- Specified by:
getVolatility
in interfaceResourceObjectDefinition
- See Also:
ResourceObjectTypeDefinitionType.getVolatility()
-
getDefaultInboundMappingEvaluationPhases
@Nullable public @Nullable DefaultInboundMappingEvaluationPhasesType getDefaultInboundMappingEvaluationPhases()
Description copied from interface:ResourceObjectDefinition
Returns the phases in which inbound mappings are evaluated by default.- Specified by:
getDefaultInboundMappingEvaluationPhases
in interfaceResourceObjectDefinition
- See Also:
ResourceObjectTypeDefinitionType#getInboundMappingsEvaluation()
-
-