Class CompositeObjectDefinitionImpl
java.lang.Object
com.evolveum.midpoint.prism.AbstractFreezable
com.evolveum.midpoint.schema.processor.CompositeObjectDefinitionImpl
- All Implemented Interfaces:
AbstractTypeDefinition,Definition,Freezable,LocalItemDefinitionStore,PrismLifecycleDefinition,PrismPresentationDefinition,Revivable,SchemaLookup.Aware,SmartVisitable<Definition>,TypeDefinition,Visitable<Definition>,AssociationDefinitionStore,AttributeDefinitionStore,CompositeObjectDefinition,FrameworkNameResolver,IdentifiersDefinitionStore,LayeredDefinition,ResourceObjectDefinition,ResourceObjectInboundProcessingDefinition,DebugDumpable,Serializable,Cloneable
public class CompositeObjectDefinitionImpl
extends AbstractFreezable
implements CompositeObjectDefinition
Represents ad-hoc combination of definitions of structural and auxiliary object classes.
A specialty of this class is the caching of attribute definitions. It can be done but only if the object classes
are immutable. (Which is currently the case for all parsed resource schemas, but sometimes it must be relaxed, namely
when applying security constraints onto the definitions.)
Not caching attribute definitions in the case of mutable definition is quite dangerous, as it can lead to silent
loss of performance if the definitions are not frozen appropriately. See MID-9156.
- Author:
- semancik
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.Definition
Definition.DefinitionBuilder, Definition.DefinitionMutatorNested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismLifecycleDefinition
PrismLifecycleDefinition.Data, PrismLifecycleDefinition.Delegable, PrismLifecycleDefinition.MutableNested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismPresentationDefinition
PrismPresentationDefinition.Data, PrismPresentationDefinition.Delegable, PrismPresentationDefinition.MutableNested classes/interfaces inherited from interface com.evolveum.midpoint.schema.processor.ResourceObjectInboundProcessingDefinition
ResourceObjectInboundProcessingDefinition.AssociationBasedItemImplementation, ResourceObjectInboundProcessingDefinition.AssociationSynchronizationImplementation, ResourceObjectInboundProcessingDefinition.CompleteItemInboundDefinition, ResourceObjectInboundProcessingDefinition.FocusSpecification, ResourceObjectInboundProcessingDefinition.ItemInboundProcessingDefinitionNested classes/interfaces inherited from interface com.evolveum.midpoint.prism.TypeDefinition
TypeDefinition.TypeDefinitionLikeBuilder, TypeDefinition.TypeDefinitionMutator -
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(Visitor<Definition> visitor) booleanaccept(Visitor<Definition> visitor, SmartVisitation<Definition> visitation) @NotNull CompositeObjectDefinitionImplclone()Returns a mutable definition.AsResourceObjectDefinition.createBlankShadow()but having the correct resource OID, kind/intent (if applicable), and tag set.@NotNull ObjectQuerycreateShadowSearchQuery(String resourceOid) Creates a query for obtaining shadows related to this object class or object type.debugDump(int indent) @NotNull CompositeObjectDefinitionImpldeepClone(@NotNull DeepCloneOperation operation) Returns a mutable definition.boolean@Nullable ShadowAttributeDefinition<?,?, ?, ?> findAttributeDefinition(QName name, boolean caseInsensitive) Finds an attribute definition by looking at the property name.<ID extends ItemDefinition<?>>
IDfindItemDefinition(@NotNull ItemPath path, @NotNull Class<ID> clazz) Returns a definition of given type corresponding to given path (rooted at this store).<ID extends ItemDefinition<?>>
IDfindLocalItemDefinition(@NotNull QName name, @NotNull Class<ID> clazz, boolean caseInsensitive) Returns the local item definition corresponding to given item name (optionally case-insensitive) and definition class.@NotNull ResourceObjectDefinitionforLayerImmutable(@NotNull LayerType layer) AsResourceObjectDefinition.forLayerMutable(LayerType)but returns immutable definition.@NotNull CompositeObjectDefinitionforLayerMutable(@NotNull LayerType layer) Creates a layer-specific mutable version of this definition.<A> AgetAnnotation(QName qname) Returns generic definition annotation.Returns all annotations, as unmodifiable map.@NotNull List<? extends ShadowAssociationDefinition>@NotNull List<? extends ShadowAttributeDefinition<?,?, ?, ?>> Returns all attribute definitions as an unmodifiable collection.@NotNull Collection<ShadowAttributeDefinition<?,?, ?, ?>> @NotNull Collection<ShadowAttributeDefinition<?,?, ?, ?>> @NotNull Collection<? extends ResourceObjectDefinition>Returns auxiliary definitions.@NotNull List<MappingType>Returns inbound mappings for the auxiliary object class(es) property.The definition of base context (resource object container).@NotNull BasicResourceInformationThe basic information about the resource (like name, OID, selected configuration beans).@NotNull LayerTypeGets the current point-of-view: on which layer do we look at the data?Return a human readable name of this class suitable for logs.Returns the phases in which inbound mappings are evaluated by default.@NotNull ResourceObjectTypeDefinitionTypeReturns the configuration bean for this object type or class.@NotNull List<? extends ItemDefinition<?>>Returns all item definitions in this store.@NotNull ResourceObjectTypeDelineationReturns the delineation of the set of objects belonging to this object type.Free-form textual description of the object.@Nullable QNameReturns name of the description attribute.Enumeration annotation that specifies how/whether the item should be displayed.Returns display name.@Nullable QNameReturns name of the display name attribute.Specifies an order in which the item should be displayed relative to other items at the same level.Must containstag because of html tags used in text. Returns only a first sentence of documentation.@NotNull ShadowCachingPolicyTypeReturns shadow caching policy determined by the application of resource-level definitions down to the specific object type/class definition (using bean merging).<T extends CapabilityType>
TgetEnabledCapability(@NotNull Class<T> capabilityClass, ResourceType resource) Checks the presence of capability in: 1.getHelp()Returns help string.TODOReturns all inbound definitions for attributes and associations.@Nullable ResourceLastLoginTimestampDefinitionType@Nullable StringWhat lifecycle state is the (refined) object class or object type definition? Raw object class definition should always return `null` here.@Nullable String@Nullable ItemMergergetMergerInstance(@NotNull MergeStrategy strategy, @Nullable OriginMarker originMarker) @Nullable QNameReturns name of the naming attribute.@NotNull NativeObjectClassDefinitionReturns the [structural] native object class definition, typically obtained from the connector.@Nullable NaturalKeyDefinition@NotNull ResourceObjectClassDefinitionReturns the [structural] object class definition.@NotNull QNameReturns the name of the object class.@Nullable ResourcePasswordDefinitionTypeVersion of data model in which the item is likely to be removed.@NotNull Collection<? extends ShadowSimpleAttributeDefinition<?>>Returns the definition of primary identifier attributes of a resource object.@NotNull Collection<QName>Returns names of primary identifiers.Returns a prism definition for the prism object/objects carrying the resource object/objects.@Nullable SchemaContextDefinitionDefinition of search hierarchy scope.@NotNull Collection<? extends ShadowSimpleAttributeDefinition<?>>Returns the definition of secondary identifier attributes of a resource object.@NotNull Collection<QName>Returns names of secondary identifiers.@NotNull ShadowMarkingRulesReturns compiled patterns denoting protected objects or other kinds of marks.@NotNull StringVery short identification, like the object class local name or the kind/intent pair.@NotNull ResourceObjectDefinitionReturns the structural definition that represents the "base" of this composite definition.@NotNull Collection<? extends SynchronizationReactionDefinition>Class<?>Returns a compile-time class that is used to represent items.@Nullable ResourceObjectTypeDefinitionIs this definition bound to a specific resource type? If yes, this method returns its definition.@Nullable ResourceObjectTypeIdentificationIs this definition bound to a specific resource type? If yes, this method returns its identification.@NotNull QNameReturns a name of the type for this definition.@NotNull ResourceObjectVolatilityTypeSpecifies volatility of this type of resource objects, i.e.booleanhasAuxiliaryObjectClass(QName expectedObjectClassName) TODO define semantics (it's different forCompositeObjectDefinitionand the others!inthashCode()booleanFor types: is the type abstract so that it should not be instantiated directly? For items: TODObooleanisDefaultFor(@NotNull ShadowKindType kind) Returns true if this definition can be considered as a default for the specified kind.booleanbooleanElaborate items are complicated data structure that may deviate from normal principles of the system.booleanTrue for definitions that are more important than others and that should be emphasized during presentation.booleanExperimental functionality is not stable and it may be changed in any future release without any warning.booleanMarks item that could be ignored by SCM tools (e.g.booleanisPrimaryIdentifier(QName attrName) Returns true if the attribute with a given name is among primary identifiers.booleanbooleanThis means that this particular definition (of an item or of a type) is part of the runtime schema, e.g.booleanisSecondaryIdentifier(QName attrName) Returns true if the attribute with a given name is among secondary identifiers.mutator()Returns an interface to mutate this definition.voidvoidreplaceAttributeDefinition(@NotNull QName itemName, @Nullable ItemDefinition<?> newDefinition) Replaces a definition for given item name with a provided one.@Nullable ItemNameresolveFrameworkName(@NotNull String frameworkName) Resolves framework-specific name (like `__NAME__`) to midPoint name (like `ri:dn`), if available.voidrevive(PrismContext prismContext) TODO: Is revive necessary if prism context is static? TODO document (if it's found to be necessary)toString()voidtrimAttributesTo(@NotNull Collection<ItemPath> paths) voidvalidate()Executes some basic checks on this object type.Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezable
freeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutableMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.schema.processor.AssociationDefinitionStore
findAssociationDefinitionRequired, findAssociationDefinitionRequired, getNamesOfAssociationsMethods inherited from interface com.evolveum.midpoint.schema.processor.AttributeDefinitionStore
containsAttributeDefinition, findAttributeDefinition, findAttributeDefinitionRequired, findAttributeDefinitionRequired, findAttributeDefinitionStrictlyRequired, findAttributeDefinitionStrictlyRequired, findReferenceAttributeDefinitionRequired, findReferenceAttributeDefinitionRequired, findShadowAttributeDefinitionRequired, findSimpleAttributeDefinition, findSimpleAttributeDefinition, findSimpleAttributeDefinition, findSimpleAttributeDefinitionRequired, findSimpleAttributeDefinitionRequired, findSimpleAttributeDefinitionRequired, findSimpleAttributeDefinitionStrictlyRequired, findSimpleAttributeDefinitionStrictlyRequired, getAllSimpleAttributesNames, getAttributeDefinitions, getAttributeNames, getReferenceAttributesNames, getSimpleAttributeDefinitions, hasIndexOnlyAttributes, instantiateAttributeMethods inherited from interface com.evolveum.midpoint.schema.processor.CompositeObjectDefinition
getConfiguredAuxiliaryObjectClassNamesMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.prism.Definition
checkMutableOnExposing, debugDump, getMutabilityFlagMethods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutableMethods inherited from interface com.evolveum.midpoint.schema.processor.IdentifiersDefinitionStore
getAllIdentifiers, getAllIdentifiersNames, getPrimaryIdentifierRequired, getSecondaryIdentifierRequired, isIdentifierMethods inherited from interface com.evolveum.midpoint.prism.LocalItemDefinitionStore
containsItemDefinition, findContainerDefinition, findItemDefinition, findLocalItemDefinition, findLocalItemDefinitionByIteration, findPropertyDefinition, findReferenceDefinitionMethods inherited from interface com.evolveum.midpoint.schema.processor.ResourceObjectDefinition
areCredentialsCached, areCredentialsCachedLegacy, assertAttached, canRepresent, composite, createBlankShadow, createBlankShadowWithPrimaryId, createPrimaryIdentification, findReferenceAttributeDefinition, getActivationBidirectionalMappingType, getActivationFetchStrategy, getActivationInboundMappings, getAssociationDefinitionsFor, getAssociationsComplexTypeDefinition, getAttributesComplexTypeDefinition, getAuxiliaryObjectClassNameForAttribute, getCompileTimeClass, getDefaultOperationPolicyOid, getDescriptionAttribute, getDisplayNameAttribute, getIdentification, getInstantiationOrder, getLastLoginTimestampFetchStrategy, getNamingAttribute, getObjectClassLocalName, getPasswordFetchStrategy, getPasswordInboundMappings, getPasswordOutboundMappings, getReferenceAttributeDefinitions, getReferenceAttributesComplexTypeDefinition, getResourceOid, getSimpleAttributesComplexTypeDefinition, getStaticSubTypes, getSuperType, isActivationCached, isAuxiliaryObjectClassPropertyCached, isCachingEnabled, isEffectivelyCached, matchesObjectClassName, queryFor, replaceAttributeDefinition, shouldUpdateCachingMetadata, toPrismObjectDefinition, toShadowAssociationsContainerDefinition, toShadowAttributesContainerDefinitionMethods inherited from interface com.evolveum.midpoint.prism.schema.SchemaLookup.Aware
schemaLookupMethods inherited from interface com.evolveum.midpoint.prism.TypeDefinition
isAssignableFrom
-
Method Details
-
getBasicResourceInformation
Description copied from interface:ResourceObjectDefinitionThe basic information about the resource (like name, OID, selected configuration beans). Replaces the hard-coded resource OID; necessary also for determination of default values for some features, e.g., shadow caching, and useful for diagnostics.- Specified by:
getBasicResourceInformationin interfaceResourceObjectDefinition
-
getAuxiliaryDefinitions
Description copied from interface:CompositeObjectDefinitionReturns auxiliary definitions. They enrich the structural definition e.g. by adding attribute definitions. TODO specify better- Specified by:
getAuxiliaryDefinitionsin interfaceCompositeObjectDefinition- Specified by:
getAuxiliaryDefinitionsin interfaceResourceObjectDefinition
-
getPrismObjectDefinition
Description copied from interface:ResourceObjectDefinitionReturns a prism definition for the prism object/objects carrying the resource object/objects.- Specified by:
getPrismObjectDefinitionin interfaceResourceObjectDefinition
-
isPrimaryIdentifier
Description copied from interface:IdentifiersDefinitionStoreReturns 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 interfaceIdentifiersDefinitionStore
-
getSchemaMigrations
- Specified by:
getSchemaMigrationsin interfacePrismLifecycleDefinition
-
getDiagrams
- Specified by:
getDiagramsin interfacePrismPresentationDefinition
-
getDisplayHint
Description copied from interface:PrismPresentationDefinitionEnumeration annotation that specifies how/whether the item should be displayed. It is also a replacement for the old "emphasized" annotation.- Specified by:
getDisplayHintin interfacePrismPresentationDefinition
-
getMergerIdentifier
- Specified by:
getMergerIdentifierin interfaceDefinition
-
getNaturalKeyConstituents
- Specified by:
getNaturalKeyConstituentsin interfaceDefinition
-
isEmphasized
public boolean isEmphasized()Description copied from interface:PrismPresentationDefinitionTrue for definitions that are more important than others and that should be emphasized during presentation. E.g. the emphasized definitions will always be displayed in the user interfaces (even if they are empty), they will always be included in the dumps, etc. TODO probably deprecated, isn't it?- Specified by:
isEmphasizedin interfacePrismPresentationDefinition
-
isAbstract
public boolean isAbstract()Description copied from interface:DefinitionFor types: is the type abstract so that it should not be instantiated directly? For items: TODO- Specified by:
isAbstractin interfaceDefinition
-
isSecondaryIdentifier
Description copied from interface:IdentifiersDefinitionStoreReturns 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 interfaceIdentifiersDefinitionStore
-
isDeprecated
public boolean isDeprecated()- Specified by:
isDeprecatedin interfacePrismLifecycleDefinition
-
isRemoved
public boolean isRemoved()- Specified by:
isRemovedin interfacePrismLifecycleDefinition
-
isOptionalCleanup
public boolean isOptionalCleanup()Description copied from interface:DefinitionMarks item that could be ignored by SCM tools (e.g. Git), or removed before commit.- Specified by:
isOptionalCleanupin interfaceDefinition
-
getRemovedSince
- Specified by:
getRemovedSincein interfacePrismLifecycleDefinition
-
getDeprecatedSince
- Specified by:
getDeprecatedSincein interfacePrismLifecycleDefinition
-
isExperimental
public boolean isExperimental()Description copied from interface:PrismLifecycleDefinitionExperimental functionality is not stable and it may be changed in any future release without any warning. Use at your own risk.- Specified by:
isExperimentalin interfacePrismLifecycleDefinition
-
getPlannedRemoval
Description copied from interface:PrismLifecycleDefinitionVersion of data model in which the item is likely to be removed. This annotation is used for deprecated item to indicate imminent incompatibility in future versions of data model.- Specified by:
getPlannedRemovalin interfacePrismLifecycleDefinition
-
isElaborate
public boolean isElaborate()Description copied from interface:DefinitionElaborate items are complicated data structure that may deviate from normal principles of the system. For example elaborate items may not be supported in user interface and may only be manageable by raw edits or a special-purpose tools. Elaborate items may be not fully supported by authorizations, schema tools and so on.- Specified by:
isElaboratein interfaceDefinition
-
getDisplayOrder
Description copied from interface:PrismPresentationDefinitionSpecifies an order in which the item should be displayed relative to other items at the same level. The items will be displayed by sorting them by the values of displayOrder annotation (ascending). Items that do not have any displayOrder annotation will be displayed last. The ordering of values with the same displayOrder is undefined and it may be arbitrary.- Specified by:
getDisplayOrderin interfacePrismPresentationDefinition
-
getHelp
Description copied from interface:PrismPresentationDefinitionReturns help string. Specifies the help text or a key to catalog file for a help text. The help text may be displayed in any suitable way by the GUI. It should explain the meaning of an attribute or object class. Returns null if no help string is set. Corresponds to "help" XSD annotation.- Specified by:
getHelpin interfacePrismPresentationDefinition- Returns:
- help string or catalog key
-
getTypeName
Description copied from interface:DefinitionReturns a name of the type for this definition. The type can be part of the compile-time schema or it can be defined at run time. Examples of the former case are types like c:UserType, xsd:string, or even flexible ones like c:ExtensionType or c:ShadowAttributesType. Examples of the latter case are types used in - custom extensions, like ext:LocationsType (where ext = e.g. http://example.com/extension), - resource schema, like ri:inetOrgPerson (ri = http://.../resource/instance-3), - connector schema, like TODO In XML representation that corresponds to the name of the XSD type. Although beware, the run-time types do not have statically defined structure. And the resource and connector-related types may even represent different kinds of objects within different contexts (e.g. two distinct resources both with ri:AccountObjectClass types). Also note that for complex type definitions, the type name serves as a unique identifier. On the other hand, for item definitions, it is just one of its attributes; primary key is item name in that case. The type name should be fully qualified. (TODO reconsider this)- Specified by:
getTypeNamein interfaceAbstractTypeDefinition- Specified by:
getTypeNamein interfaceDefinition- Returns:
- the type name
-
getDocumentation
Description copied from interface:PrismPresentationDefinitionMust containstag because of html tags used in text. - Specified by:
getDocumentationin interfacePrismPresentationDefinition
-
getDocumentationPreview
Description copied from interface:PrismPresentationDefinitionReturns only a first sentence of documentation.- Specified by:
getDocumentationPreviewin interfacePrismPresentationDefinition
-
isRuntimeSchema
public boolean isRuntimeSchema()Description copied from interface:DefinitionThis means that this particular definition (of an item or of a type) is part of the runtime schema, e.g. extension schema, resource schema or connector schema or something like that. I.e. it is not defined statically.- Specified by:
isRuntimeSchemain interfaceDefinition
-
getPrimaryIdentifiers
@NotNull public @NotNull Collection<? extends ShadowSimpleAttributeDefinition<?>> getPrimaryIdentifiers()Description copied from interface:IdentifiersDefinitionStoreReturns 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 interfaceIdentifiersDefinitionStore- Returns:
- definition of identifier attributes
-
getPrimaryIdentifiersNames
Description copied from interface:IdentifiersDefinitionStoreReturns names of primary identifiers.- Specified by:
getPrimaryIdentifiersNamesin interfaceIdentifiersDefinitionStore- See Also:
-
getSecondaryIdentifiers
@NotNull public @NotNull Collection<? extends ShadowSimpleAttributeDefinition<?>> getSecondaryIdentifiers()Description copied from interface:IdentifiersDefinitionStoreReturns 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 interfaceIdentifiersDefinitionStore- Returns:
- definition of secondary identifier attributes
-
getSecondaryIdentifiersNames
Description copied from interface:IdentifiersDefinitionStoreReturns names of secondary identifiers.- Specified by:
getSecondaryIdentifiersNamesin interfaceIdentifiersDefinitionStore- See Also:
-
getShadowMarkingRules
Description copied from interface:ResourceObjectDefinitionReturns compiled patterns denoting protected objects or other kinds of marks. Use only in the parsed state.- Specified by:
getShadowMarkingRulesin interfaceResourceObjectDefinition- See Also:
-
getDisplayName
Description copied from interface:PrismPresentationDefinitionReturns 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:
getDisplayNamein interfacePrismPresentationDefinition- Returns:
- display name string or catalog key
-
getDescription
Description copied from interface:ResourceObjectDefinitionFree-form textual description of the object. It is supposed to describe the object or a construct that it is attached to.- Specified by:
getDescriptionin interfaceResourceObjectDefinition- See Also:
-
getObjectClassDefinition
Description copied from interface:ResourceObjectDefinitionReturns the [structural] object class definition.- Specified by:
getObjectClassDefinitionin interfaceResourceObjectDefinition
-
getNativeObjectClassDefinition
Description copied from interface:ResourceObjectDefinitionReturns the [structural] native object class definition, typically obtained from the connector.- Specified by:
getNativeObjectClassDefinitionin interfaceResourceObjectDefinition
-
getDelineation
Description copied from interface:ResourceObjectDefinitionReturns the delineation of the set of objects belonging to this object type. Note that this tells only about information stored right in the definition bean, i.e. legacy configuration is not provided here. The complete picture is provided bySynchronizationPolicy.getDelineation().- Specified by:
getDelineationin interfaceResourceObjectDefinition
-
getBaseContext
Description copied from interface:ResourceObjectDefinitionThe definition of base context (resource object container). This object will be used as a base for searches for objects of this type.- Specified by:
getBaseContextin interfaceResourceObjectDefinition- See Also:
-
getSearchHierarchyScope
Description copied from interface:ResourceObjectDefinitionDefinition of search hierarchy scope. It specifies how "deep" the search should go into the object hierarchy.- Specified by:
getSearchHierarchyScopein interfaceResourceObjectDefinition- See Also:
-
getVolatility
Description copied from interface:ResourceObjectDefinitionSpecifies volatility of this type of resource objects, i.e. whether such an object can change when midPoint is not looking.- Specified by:
getVolatilityin interfaceResourceObjectDefinition- See Also:
-
getDefaultInboundMappingEvaluationPhases
@Nullable public @Nullable DefaultInboundMappingEvaluationPhasesType getDefaultInboundMappingEvaluationPhases()Description copied from interface:ResourceObjectDefinitionReturns the phases in which inbound mappings are evaluated by default.- Specified by:
getDefaultInboundMappingEvaluationPhasesin interfaceResourceObjectDefinition- Specified by:
getDefaultInboundMappingEvaluationPhasesin interfaceResourceObjectInboundProcessingDefinition- See Also:
-
getFocusSpecification
@NotNull public @NotNull ResourceObjectInboundProcessingDefinition.FocusSpecification getFocusSpecification()- Specified by:
getFocusSpecificationin interfaceResourceObjectInboundProcessingDefinition
-
getSynchronizationReactions
@NotNull public @NotNull Collection<? extends SynchronizationReactionDefinition> getSynchronizationReactions()- Specified by:
getSynchronizationReactionsin interfaceResourceObjectInboundProcessingDefinition
-
getCorrelation
- Specified by:
getCorrelationin interfaceResourceObjectInboundProcessingDefinition
-
getLifecycleState
Description copied from interface:ResourceObjectDefinitionWhat lifecycle state is the (refined) object class or object type definition? Raw object class definition should always return `null` here.- Specified by:
getLifecycleStatein interfaceResourceObjectDefinition- See Also:
-
getObjectMultiplicity
- Specified by:
getObjectMultiplicityin interfaceResourceObjectDefinition- See Also:
-
getProjectionPolicy
- Specified by:
getProjectionPolicyin interfaceResourceObjectDefinition- See Also:
-
getSecurityPolicyRef
- Specified by:
getSecurityPolicyRefin interfaceResourceObjectDefinition- See Also:
-
getActivationSchemaHandling
- Specified by:
getActivationSchemaHandlingin interfaceResourceObjectDefinition- See Also:
-
getEnabledCapability
public <T extends CapabilityType> T getEnabledCapability(@NotNull @NotNull Class<T> capabilityClass, ResourceType resource) Description copied from interface:ResourceObjectDefinitionChecks the presence of capability in: 1. resource object definition (applicable only to resource object _type_ definitions), 2. additional connectors in resource (only if enabled there), 3. the main connector. Returns the present capability, but only if it's enabled.- Specified by:
getEnabledCapabilityin interfaceResourceObjectDefinition
-
validate
Description copied from interface:ResourceObjectDefinitionExecutes some basic checks on this object type. Moved from `validateObjectClassDefinition()` method inResourceTypeUtil. TODO review this method- Specified by:
validatein interfaceResourceObjectDefinition- Throws:
SchemaException
-
getAttributeDefinitions
@NotNull public @NotNull List<? extends ShadowAttributeDefinition<?,?, getAttributeDefinitions()?, ?>> Description copied from interface:AttributeDefinitionStoreReturns all attribute definitions as an unmodifiable collection. Should be the same content as returned by `getDefinitions`. The returned value is aListbecause of the contract ofComplexTypeDefinition.getDefinitions().- Specified by:
getAttributeDefinitionsin interfaceAttributeDefinitionStore
-
getDefinitions
Description copied from interface:LocalItemDefinitionStoreReturns all item definitions in this store.- Specified by:
getDefinitionsin interfaceLocalItemDefinitionStore
-
revive
Description copied from interface:RevivableTODO: Is revive necessary if prism context is static? TODO document (if it's found to be necessary) -
getItemInboundDefinitions
@NotNull public @NotNull Collection<ResourceObjectInboundProcessingDefinition.CompleteItemInboundDefinition> getItemInboundDefinitions()Description copied from interface:ResourceObjectInboundProcessingDefinitionReturns all inbound definitions for attributes and associations.- Specified by:
getItemInboundDefinitionsin interfaceResourceObjectInboundProcessingDefinition
-
getAuxiliaryObjectClassMappings
- Specified by:
getAuxiliaryObjectClassMappingsin interfaceResourceObjectDefinition- See Also:
-
getAuxiliaryObjectClassInboundMappings
Description copied from interface:ResourceObjectInboundProcessingDefinitionReturns inbound mappings for the auxiliary object class(es) property.- Specified by:
getAuxiliaryObjectClassInboundMappingsin interfaceResourceObjectInboundProcessingDefinition
-
hasAuxiliaryObjectClass
Description copied from interface:ResourceObjectDefinitionTODO define semantics (it's different forCompositeObjectDefinitionand the others!- Specified by:
hasAuxiliaryObjectClassin interfaceResourceObjectDefinition
-
findItemDefinition
public <ID extends ItemDefinition<?>> ID findItemDefinition(@NotNull @NotNull ItemPath path, @NotNull @NotNull Class<ID> clazz) Description copied from interface:LocalItemDefinitionStoreReturns a definition of given type corresponding to given path (rooted at this store). Tries the global resolution in the case of "any" content.- Specified by:
findItemDefinitionin interfaceLocalItemDefinitionStore
-
findAttributeDefinition
@Nullable public @Nullable ShadowAttributeDefinition<?,?, findAttributeDefinition?, ?> (QName name, boolean caseInsensitive) Description copied from interface:AttributeDefinitionStoreFinds an attribute definition by looking at the property name. Returns null if nothing is found.- Specified by:
findAttributeDefinitionin interfaceAttributeDefinitionStore- Parameters:
name- property definition namecaseInsensitive- if true, ignoring the case- Returns:
- found property definition or null
-
findLocalItemDefinition
public <ID extends ItemDefinition<?>> ID findLocalItemDefinition(@NotNull @NotNull QName name, @NotNull @NotNull Class<ID> clazz, boolean caseInsensitive) Description copied from interface:LocalItemDefinitionStoreReturns the local item definition corresponding to given item name (optionally case-insensitive) and definition class. Does not try to resolve items globally (in the case of "any" content). BEWARE: In the case of ambiguities, returns any suitable definition. (This may change.)- Specified by:
findLocalItemDefinitionin interfaceLocalItemDefinitionStore
-
getTypeClass
Description copied from interface:DefinitionReturns a compile-time class that is used to represent items. E.g. returns String, Integer, subclasses of Objectable and Containerable and so on.- Specified by:
getTypeClassin interfaceDefinition
-
createBlankShadowWithTag
Description copied from interface:ResourceObjectDefinitionAsResourceObjectDefinition.createBlankShadow()but having the correct resource OID, kind/intent (if applicable), and tag set.- Specified by:
createBlankShadowWithTagin interfaceResourceObjectDefinition
-
getPasswordDefinition
Description copied from interface:ResourceObjectDefinition- Specified by:
getPasswordDefinitionin interfaceResourceObjectDefinition
-
getLastLoginTimestampDefinition
@Nullable public @Nullable ResourceLastLoginTimestampDefinitionType getLastLoginTimestampDefinition()Description copied from interface:ResourceObjectDefinition- Specified by:
getLastLoginTimestampDefinitionin interfaceResourceObjectDefinition
-
accept
- Specified by:
acceptin interfaceVisitable<Definition>
-
accept
- Specified by:
acceptin interfaceSmartVisitable<Definition>- Returns:
- false if we already was here
-
clone
Description copied from interface:ResourceObjectDefinitionReturns a mutable definition. BEWARE, the mutableCompositeObjectDefinitionis significantly slower than its immutable counterpart. See MID-9156.- Specified by:
clonein interfaceDefinition- Specified by:
clonein interfaceResourceObjectDefinition- Overrides:
clonein classObject
-
hashCode
public int hashCode() -
equals
-
debugDump
- Specified by:
debugDumpin interfaceDebugDumpable
-
getDebugDumpClassName
Return a human readable name of this class suitable for logs.- Specified by:
getDebugDumpClassNamein interfaceResourceObjectDefinition
-
getHumanReadableName
Description copied from interface:ResourceObjectDefinitionTODO- Specified by:
getHumanReadableNamein interfaceResourceObjectDefinition
-
toString
-
getShortIdentification
Description copied from interface:ResourceObjectDefinitionVery short identification, like the object class local name or the kind/intent pair.- Specified by:
getShortIdentificationin interfaceResourceObjectDefinition
-
deepClone
@NotNull public @NotNull CompositeObjectDefinitionImpl deepClone(@NotNull @NotNull DeepCloneOperation operation) Description copied from interface:ResourceObjectDefinitionReturns a mutable definition. BEWARE, the mutableCompositeObjectDefinitionis significantly slower than its immutable counterpart. See MID-9156.- Specified by:
deepClonein interfaceResourceObjectDefinition
-
getDefinitionBean
Description copied from interface:ResourceObjectDefinitionReturns the configuration bean for this object type or class.- Specified by:
getDefinitionBeanin interfaceResourceObjectDefinition
-
forLayerMutable
@NotNull public @NotNull CompositeObjectDefinition forLayerMutable(@NotNull @NotNull LayerType layer) Description copied from interface:ResourceObjectDefinitionCreates a layer-specific mutable version of this definition.- Specified by:
forLayerMutablein interfaceResourceObjectDefinition
-
forLayerImmutable
@NotNull public @NotNull ResourceObjectDefinition forLayerImmutable(@NotNull @NotNull LayerType layer) Description copied from interface:ResourceObjectDefinitionAsResourceObjectDefinition.forLayerMutable(LayerType)but returns immutable definition.- Specified by:
forLayerImmutablein interfaceResourceObjectDefinition
-
getCurrentLayer
Description copied from interface:LayeredDefinitionGets the current point-of-view: on which layer do we look at the data?- Specified by:
getCurrentLayerin interfaceLayeredDefinition
-
replaceAttributeDefinition
public void replaceAttributeDefinition(@NotNull @NotNull QName itemName, @Nullable @Nullable ItemDefinition<?> newDefinition) Description copied from interface:ResourceObjectDefinitionReplaces a definition for given item name with a provided one.- Specified by:
replaceAttributeDefinitionin interfaceResourceObjectDefinition
-
trimAttributesTo
- Specified by:
trimAttributesToin interfaceResourceObjectDefinition
-
mutator
Description copied from interface:DefinitionReturns an interface to mutate this definition.- Specified by:
mutatorin interfaceDefinition
-
getAnnotation
Description copied from interface:DefinitionReturns generic definition annotation. Annotations are a method to extend schema definitions. This may be annotation stored in the schema definition file (e.g. XSD) or it may be a dynamic annotation determined at run-time. Annotation value should be a prism-supported object. E.g. a prims "bean" (JAXB annotated class), prism item, prism value or something like that. EXPERIMENTAL. Hic sunt leones. This may change at any moment. Note: annotations are only partially supported now (3.8). They are somehow transient. E.g. they are not serialized to XSD schema definitions (yet).- Specified by:
getAnnotationin interfaceDefinition
-
getAnnotations
Description copied from interface:DefinitionReturns all annotations, as unmodifiable map. Nullable by design, to avoid creating lots of empty maps.- Specified by:
getAnnotationsin interfaceDefinition
-
performFreeze
public void performFreeze()- Overrides:
performFreezein classAbstractFreezable
-
getObjectClassName
Description copied from interface:ResourceObjectDefinitionReturns the name of the object class. Always fully qualified; currently with theSchemaConstants.NS_RInamespace.- Specified by:
getObjectClassNamein interfaceResourceObjectDefinition
-
getDescriptionAttributeName
Description copied from interface:ResourceObjectDefinitionReturns name of the description attribute.- Specified by:
getDescriptionAttributeNamein interfaceResourceObjectDefinition- See Also:
-
getNamingAttributeName
Description copied from interface:ResourceObjectDefinitionReturns name of the naming attribute.- Specified by:
getNamingAttributeNamein interfaceResourceObjectDefinition- See Also:
-
getDisplayNameAttributeName
Description copied from interface:ResourceObjectDefinitionReturns name of the display name attribute.- Specified by:
getDisplayNameAttributeNamein interfaceResourceObjectDefinition
-
createShadowSearchQuery
Description copied from interface:ResourceObjectDefinitionCreates a query for obtaining shadows related to this object class or object type. The current implementations return either: - a combination of resource OID + object class name, or - a combination of resource OID + kind + intent.- Specified by:
createShadowSearchQueryin interfaceResourceObjectDefinition
-
getStructuralDefinition
Description copied from interface:CompositeObjectDefinitionReturns the structural definition that represents the "base" of this composite definition.- Specified by:
getStructuralDefinitionin interfaceCompositeObjectDefinition
-
getTypeIdentification
Description copied from interface:ResourceObjectDefinitionIs this definition bound to a specific resource type? If yes, this method returns its identification.- Specified by:
getTypeIdentificationin interfaceResourceObjectDefinition
-
getTypeDefinition
Description copied from interface:ResourceObjectDefinitionIs this definition bound to a specific resource type? If yes, this method returns its definition.- Specified by:
getTypeDefinitionin interfaceResourceObjectDefinition
-
isDefaultFor
Description copied from interface:ResourceObjectDefinitionReturns true if this definition can be considered as a default for the specified kind. Normally, for a type definition it means that it is marked as "default for a kind" and has the specified kind. But there is a special case ofResourceObjectClassDefinitionwithResourceObjectClassDefinition.isDefaultAccountDefinition()being `true`. It is considered to be the default forShadowKindType.ACCOUNT. Use with care!- Specified by:
isDefaultForin interfaceResourceObjectDefinition
-
getEffectiveShadowCachingPolicy
Description copied from interface:ResourceObjectDefinitionReturns shadow caching policy determined by the application of resource-level definitions down to the specific object type/class definition (using bean merging). The returned value has all the defaults applied. Throws an exception for unattached raw object class definitions.- Specified by:
getEffectiveShadowCachingPolicyin interfaceResourceObjectDefinition
-
resolveFrameworkName
Description copied from interface:FrameworkNameResolverResolves framework-specific name (like `__NAME__`) to midPoint name (like `ri:dn`), if available.- Specified by:
resolveFrameworkNamein interfaceFrameworkNameResolver
-
getMergerInstance
@Nullable public @Nullable ItemMerger getMergerInstance(@NotNull @NotNull MergeStrategy strategy, @Nullable @Nullable OriginMarker originMarker) - Specified by:
getMergerInstancein interfaceDefinition
-
getNaturalKeyInstance
- Specified by:
getNaturalKeyInstancein interfaceDefinition
-
getSchemaContextDefinition
- Specified by:
getSchemaContextDefinitionin interfaceDefinition
-
findAssociationDefinition
- Specified by:
findAssociationDefinitionin interfaceAssociationDefinitionStore
-
getAssociationDefinitions
- Specified by:
getAssociationDefinitionsin interfaceAssociationDefinitionStore
-
getAttributesVolatileOnAddOperation
@NotNull public @NotNull Collection<ShadowAttributeDefinition<?,?, getAttributesVolatileOnAddOperation()?, ?>> Description copied from interface:ResourceObjectDefinition- Specified by:
getAttributesVolatileOnAddOperationin interfaceResourceObjectDefinition
-
getAttributesVolatileOnModifyOperation
@NotNull public @NotNull Collection<ShadowAttributeDefinition<?,?, getAttributesVolatileOnModifyOperation()?, ?>> Description copied from interface:ResourceObjectDefinition- Specified by:
getAttributesVolatileOnModifyOperationin interfaceResourceObjectDefinition
-