Class AbstractResourceObjectDefinitionImpl
java.lang.Object
com.evolveum.midpoint.prism.AbstractFreezable
com.evolveum.midpoint.schema.processor.AbstractResourceObjectDefinitionImpl
- All Implemented Interfaces:
AbstractTypeDefinition
,Definition
,Freezable
,LocalItemDefinitionStore
,PrismLifecycleDefinition
,PrismPresentationDefinition
,Revivable
,SchemaLookup.Aware
,SmartVisitable<Definition>
,TypeDefinition
,Visitable<Definition>
,AssociationDefinitionStore
,AttributeDefinitionStore
,FrameworkNameResolver
,IdentifiersDefinitionStore
,LayeredDefinition
,ResourceObjectDefinition
,ResourceObjectInboundDefinition
,DebugDumpable
,Serializable
,Cloneable
- Direct Known Subclasses:
ResourceObjectClassDefinitionImpl
,ResourceObjectTypeDefinitionImpl
public abstract class AbstractResourceObjectDefinitionImpl
extends AbstractFreezable
implements ResourceObjectDefinition
Common implementation for both
ResourceObjectClassDefinition
and ResourceObjectTypeDefinition
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.Definition
Definition.DefinitionBuilder, Definition.DefinitionMutator
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismLifecycleDefinition
PrismLifecycleDefinition.Data, PrismLifecycleDefinition.Delegable, PrismLifecycleDefinition.Mutable
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismPresentationDefinition
PrismPresentationDefinition.Data, PrismPresentationDefinition.Delegable, PrismPresentationDefinition.Mutable
Nested classes/interfaces inherited from interface com.evolveum.midpoint.schema.processor.ResourceObjectInboundDefinition
ResourceObjectInboundDefinition.AssociationBasedItemImplementation, ResourceObjectInboundDefinition.AssociationSynchronizationImplementation, ResourceObjectInboundDefinition.EmptyImplementation, ResourceObjectInboundDefinition.FocusSpecification, ResourceObjectInboundDefinition.ItemInboundDefinition
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.TypeDefinition
TypeDefinition.TypeDefinitionLikeBuilder, TypeDefinition.TypeDefinitionMutator
-
Field Summary
Modifier and TypeFieldDescriptionprotected final @NotNull DeeplyFreezableReference<ResourceObjectTypeDelineation>
"Compiled" object set delineation.Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(Visitor<Definition> visitor) boolean
accept
(Visitor<Definition> visitor, SmartVisitation<Definition> visitation) void
add
(ItemDefinition<?> definition) protected void
protected void
addDebugDumpTrailer
(StringBuilder sb, int indent) abstract @NotNull AbstractResourceObjectDefinitionImpl
clone()
Returns a mutable definition.protected abstract @NotNull AbstractResourceObjectDefinitionImpl
cloneInLayer
(@NotNull LayerType layer) Returns mutable copy.protected void
copyDefinitionDataFrom
(@NotNull LayerType layer, @NotNull ResourceObjectDefinition source) debugDump
(int indent) static String
debugDump
(int indent, LayerType layer, AbstractResourceObjectDefinitionImpl _this) boolean
<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).<T> @Nullable ShadowSimpleAttributeDefinition<T>
findSimpleAttributeDefinition
(QName name, boolean caseInsensitive) Finds a simple attribute definition by looking at the property name.@NotNull ResourceObjectDefinition
forLayerImmutable
(@NotNull LayerType layer) AsResourceObjectDefinition.forLayerMutable(LayerType)
but returns immutable definition.@NotNull ResourceObjectDefinition
forLayerMutable
(@NotNull LayerType layer) Creates a layer-specific mutable version of this definition.<A> A
getAnnotation
(QName qname) Returns generic definition annotation.Returns all annotations, as unmodifiable map.@NotNull List<ShadowAssociationDefinition>
@NotNull List<? extends ShadowAttributeDefinition<?,
?, ?, ?>> Returns all attribute definitions as an unmodifiable collection.@NotNull Collection<ResourceObjectDefinition>
TODO define semantics (it's different forCompositeObjectDefinition
and the others!The definition of base context (resource object container).@NotNull BasicResourceInformation
The basic information about the resource (like name, OID, selected configuration beans).@NotNull Collection<QName>
Returns the names of auxiliary object classes that are "statically" defined for this object type (or object class, in the future).@NotNull LayerType
Gets the current point-of-view: on which layer do we look at the data?Returns the phases in which inbound mappings are evaluated by default.@NotNull ResourceObjectTypeDefinitionType
Returns the configuration bean for this object type or class.@NotNull List<? extends ItemDefinition<?>>
Returns all item definitions in this store.@NotNull ResourceObjectTypeDelineation
Returns the delineation of the set of objects belonging to this object type.Free-form textual description of the object.Enumeration annotation that specifies how/whether the item should be displayed.@Nullable String
Returns display name.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 ShadowCachingPolicyType
Returns 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.@Nullable ResourceLastLoginTimestampDefinitionType
@Nullable String
What lifecycle state is the (refined) object class or object type definition? Raw object class definition should always return `null` here.@Nullable String
@Nullable ItemMerger
getMergerInstance
(@NotNull MergeStrategy strategy, @Nullable OriginMarker originMarker) @Nullable NaturalKeyDefinition
Version of data model in which the item is likely to be removed.@NotNull Collection<ShadowSimpleAttributeDefinition<?>>
Returns the definition of primary identifier attributes of a resource object.Names of primary identifiers.Returns a prism definition for the prism object/objects carrying the resource object/objects.Definition of search hierarchy scope.@NotNull Collection<ShadowSimpleAttributeDefinition<?>>
Returns the definition of secondary identifier attributes of a resource object.Names of secondary identifiers.@NotNull ShadowMarkingRules
Returns compiled patterns denoting protected objects or other kinds of marks.getSimpleAttributeInboundDefinition
(ItemName itemName) static ShadowCachingPolicyType
Class<?>
Returns a compile-time class that is used to represent items.@NotNull QName
Returns a name of the type for this definition.@NotNull ResourceObjectVolatilityType
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
For types: is the type abstract so that it should not be instantiated directly? For items: TODOboolean
boolean
Elaborate items are complicated data structure that may deviate from normal principles of the system.boolean
True for definitions that are more important than others and that should be emphasized during presentation.boolean
Experimental functionality is not stable and it may be changed in any future release without any warning.boolean
Marks item that could be ignored by SCM tools (e.g.boolean
boolean
This means that this particular definition (of an item or of a type) is part of the runtime schema, e.g.mutator()
Returns an interface to mutate this definition.protected void
void
replaceAttributeDefinition
(@NotNull QName itemName, @Nullable ItemDefinition<?> newDefinition) Replaces a definition for given item name with a provided one.@Nullable ItemName
resolveFrameworkName
(@NotNull String frameworkName) Resolves framework-specific name (like `__NAME__`) to midPoint name (like `ri:dn`), if available.void
revive
(PrismContext prismContext) TODO: Is revive necessary if prism context is static? TODO document (if it's found to be necessary)static void
void
trimAttributesTo
(@NotNull Collection<ItemPath> paths) void
validate()
Executes some basic checks on this object type.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, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.schema.processor.AssociationDefinitionStore
findAssociationDefinitionRequired, findAssociationDefinitionRequired, getNamesOfAssociations
Methods inherited from interface com.evolveum.midpoint.schema.processor.AttributeDefinitionStore
containsAttributeDefinition, findAttributeDefinition, findAttributeDefinition, findAttributeDefinitionRequired, findAttributeDefinitionRequired, findAttributeDefinitionStrictlyRequired, findAttributeDefinitionStrictlyRequired, findReferenceAttributeDefinitionRequired, findReferenceAttributeDefinitionRequired, findShadowAttributeDefinitionRequired, findSimpleAttributeDefinition, findSimpleAttributeDefinition, findSimpleAttributeDefinitionRequired, findSimpleAttributeDefinitionRequired, findSimpleAttributeDefinitionRequired, findSimpleAttributeDefinitionStrictlyRequired, findSimpleAttributeDefinitionStrictlyRequired, getAllSimpleAttributesNames, getAttributeDefinitions, getAttributeNames, getReferenceAttributesNames, getSimpleAttributeDefinitions, hasIndexOnlyAttributes, instantiateAttribute
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
Methods inherited from interface com.evolveum.midpoint.prism.Definition
checkMutableOnExposing, debugDump, getMutabilityFlag, getSchemaContextDefinition
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutable
Methods inherited from interface com.evolveum.midpoint.schema.processor.IdentifiersDefinitionStore
getAllIdentifiers, getAllIdentifiersNames, getPrimaryIdentifierRequired, getSecondaryIdentifierRequired, isIdentifier, isPrimaryIdentifier, isSecondaryIdentifier
Methods inherited from interface com.evolveum.midpoint.prism.LocalItemDefinitionStore
containsItemDefinition, findContainerDefinition, findItemDefinition, findLocalItemDefinition, findLocalItemDefinition, findPropertyDefinition, findReferenceDefinition
Methods inherited from interface com.evolveum.midpoint.schema.processor.ResourceObjectDefinition
areCredentialsCached, assertAttached, canRepresent, composite, createBlankShadow, createBlankShadowWithPrimaryId, createBlankShadowWithTag, createPrimaryIdentification, createShadowSearchQuery, deepClone, findReferenceAttributeDefinition, getActivationBidirectionalMappingType, getActivationFetchStrategy, getAssociationDefinitionsFor, getAssociationsComplexTypeDefinition, getAttributesComplexTypeDefinition, getCompileTimeClass, getDebugDumpClassName, getDefaultOperationPolicyOid, getDescriptionAttribute, getDescriptionAttributeName, getDisplayNameAttribute, getDisplayNameAttributeName, getHumanReadableName, getIdentification, getInstantiationOrder, getLastLoginTimestampFetchStrategy, getNamingAttribute, getNamingAttributeName, getNativeObjectClassDefinition, getObjectClassDefinition, getObjectClassLocalName, getObjectClassName, getPasswordFetchStrategy, getPasswordInbound, getPasswordOutbound, getReferenceAttributeDefinitions, getReferenceAttributesComplexTypeDefinition, getResourceOid, getShortIdentification, getSimpleAttributesComplexTypeDefinition, getStaticSubTypes, getSuperType, getTypeDefinition, getTypeIdentification, isActivationCached, isAuxiliaryObjectClassPropertyCached, isCachingEnabled, isDefaultFor, isEffectivelyCached, matchesObjectClassName, queryFor, replaceAttributeDefinition, toPrismObjectDefinition, toShadowAssociationsContainerDefinition, toShadowAttributesContainerDefinition
Methods inherited from interface com.evolveum.midpoint.schema.processor.ResourceObjectInboundDefinition
getFocusSpecification, getSynchronizationReactions
Methods inherited from interface com.evolveum.midpoint.prism.schema.SchemaLookup.Aware
schemaLookup
Methods inherited from interface com.evolveum.midpoint.prism.TypeDefinition
isAssignableFrom
-
Field Details
-
delineation
@NotNull protected final @NotNull DeeplyFreezableReference<ResourceObjectTypeDelineation> delineation"Compiled" object set delineation.
-
-
Method Details
-
getBasicResourceInformation
Description copied from interface:ResourceObjectDefinition
The 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:
getBasicResourceInformation
in interfaceResourceObjectDefinition
-
getAttributeDefinitions
@NotNull public @NotNull List<? extends ShadowAttributeDefinition<?,?, getAttributeDefinitions()?, ?>> Description copied from interface:AttributeDefinitionStore
Returns all attribute definitions as an unmodifiable collection. Should be the same content as returned by `getDefinitions`. The returned value is aList
because of the contract ofComplexTypeDefinition.getDefinitions()
.- Specified by:
getAttributeDefinitions
in interfaceAttributeDefinitionStore
- Specified by:
getAttributeDefinitions
in interfaceResourceObjectInboundDefinition
-
getAssociationDefinitions
- Specified by:
getAssociationDefinitions
in interfaceAssociationDefinitionStore
-
findSimpleAttributeDefinition
@Nullable public <T> @Nullable ShadowSimpleAttributeDefinition<T> findSimpleAttributeDefinition(QName name, boolean caseInsensitive) Description copied from interface:AttributeDefinitionStore
Finds a simple attribute definition by looking at the property name. Returns null if nothing is found.- Specified by:
findSimpleAttributeDefinition
in interfaceAttributeDefinitionStore
- Parameters:
name
- property definition namecaseInsensitive
- if true, ignoring the case- Returns:
- found property definition or null
-
findAssociationDefinition
- Specified by:
findAssociationDefinition
in interfaceAssociationDefinitionStore
-
getPrimaryIdentifiers
Description copied from interface:IdentifiersDefinitionStore
Returns 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:
getPrimaryIdentifiers
in interfaceIdentifiersDefinitionStore
- Returns:
- definition of identifier attributes
-
getSecondaryIdentifiers
Description copied from interface:IdentifiersDefinitionStore
Returns 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:
getSecondaryIdentifiers
in interfaceIdentifiersDefinitionStore
- Returns:
- definition of secondary identifier attributes
-
getPrimaryIdentifiersNames
Names of primary identifiers. The list is modifiable until the whole definition is frozen.- Specified by:
getPrimaryIdentifiersNames
in interfaceIdentifiersDefinitionStore
- See Also:
-
getSecondaryIdentifiersNames
Names of secondary identifiers. The list is modifiable until the whole definition is frozen.- Specified by:
getSecondaryIdentifiersNames
in interfaceIdentifiersDefinitionStore
- See Also:
-
getDisplayName
Description copied from interface:PrismPresentationDefinition
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 interfacePrismPresentationDefinition
- Returns:
- display name string or catalog key
-
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:
-
getDocumentation
Description copied from interface:PrismPresentationDefinition
Must containstag because of html tags used in text. - Specified by:
getDocumentation
in interfacePrismPresentationDefinition
-
getDelineation
Description copied from interface:ResourceObjectDefinition
Returns 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:
getDelineation
in interfaceResourceObjectDefinition
-
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:
-
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:
-
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:
-
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
- Specified by:
getDefaultInboundMappingEvaluationPhases
in interfaceResourceObjectInboundDefinition
- See Also:
-
getLifecycleState
Description copied from interface:ResourceObjectDefinition
What lifecycle state is the (refined) object class or object type definition? Raw object class definition should always return `null` here.- Specified by:
getLifecycleState
in interfaceResourceObjectDefinition
- See Also:
-
getObjectMultiplicity
- Specified by:
getObjectMultiplicity
in interfaceResourceObjectDefinition
- See Also:
-
getProjectionPolicy
- Specified by:
getProjectionPolicy
in interfaceResourceObjectDefinition
- See Also:
-
getPrismObjectDefinition
Description copied from interface:ResourceObjectDefinition
Returns a prism definition for the prism object/objects carrying the resource object/objects.- Specified by:
getPrismObjectDefinition
in interfaceResourceObjectDefinition
-
getAuxiliaryDefinitions
Description copied from interface:ResourceObjectDefinition
TODO define semantics (it's different forCompositeObjectDefinition
and the others!- Specified by:
getAuxiliaryDefinitions
in interfaceResourceObjectDefinition
-
hasAuxiliaryObjectClass
Description copied from interface:ResourceObjectDefinition
TODO define semantics (it's different forCompositeObjectDefinition
and the others!- Specified by:
hasAuxiliaryObjectClass
in interfaceResourceObjectDefinition
-
getAuxiliaryObjectClassMappings
- Specified by:
getAuxiliaryObjectClassMappings
in interfaceResourceObjectDefinition
- Specified by:
getAuxiliaryObjectClassMappings
in interfaceResourceObjectInboundDefinition
- See Also:
-
getShadowMarkingRules
Description copied from interface:ResourceObjectDefinition
Returns compiled patterns denoting protected objects or other kinds of marks. Use only in the parsed state.- Specified by:
getShadowMarkingRules
in interfaceResourceObjectDefinition
- See Also:
-
getPasswordDefinition
Description copied from interface:ResourceObjectDefinition
- Specified by:
getPasswordDefinition
in interfaceResourceObjectDefinition
-
getLastLoginTimestampDefinition
@Nullable public @Nullable ResourceLastLoginTimestampDefinitionType getLastLoginTimestampDefinition()Description copied from interface:ResourceObjectDefinition
- Specified by:
getLastLoginTimestampDefinition
in interfaceResourceObjectDefinition
-
getSecurityPolicyRef
- Specified by:
getSecurityPolicyRef
in interfaceResourceObjectDefinition
- See Also:
-
getActivationSchemaHandling
- Specified by:
getActivationSchemaHandling
in interfaceResourceObjectDefinition
- See Also:
-
getEnabledCapability
public <T extends CapabilityType> T getEnabledCapability(@NotNull @NotNull Class<T> capabilityClass, ResourceType resource) Description copied from interface:ResourceObjectDefinition
Checks 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:
getEnabledCapability
in interfaceResourceObjectDefinition
-
equals
-
hashCode
public int hashCode() -
clone
Description copied from interface:ResourceObjectDefinition
Returns a mutable definition. BEWARE, the mutableCompositeObjectDefinition
is significantly slower than its immutable counterpart. See MID-9156.- Specified by:
clone
in interfaceDefinition
- Specified by:
clone
in interfaceResourceObjectDefinition
- Overrides:
clone
in classObject
-
copyDefinitionDataFrom
protected void copyDefinitionDataFrom(@NotNull @NotNull LayerType layer, @NotNull @NotNull ResourceObjectDefinition source) -
revive
Description copied from interface:Revivable
TODO: Is revive necessary if prism context is static? TODO document (if it's found to be necessary) -
performFreeze
protected void performFreeze()- Overrides:
performFreeze
in classAbstractFreezable
-
accept
- Specified by:
accept
in interfaceVisitable<Definition>
-
accept
- Specified by:
accept
in interfaceSmartVisitable<Definition>
- Returns:
- false if we already was here
-
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
-
debugDump
public static String debugDump(int indent, LayerType layer, AbstractResourceObjectDefinitionImpl _this) -
addDebugDumpHeaderExtension
-
addDebugDumpTrailer
-
getDefinitions
Description copied from interface:LocalItemDefinitionStore
Returns all item definitions in this store.- Specified by:
getDefinitions
in interfaceLocalItemDefinitionStore
-
getTypeName
Description copied from interface:Definition
Returns 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:
getTypeName
in interfaceAbstractTypeDefinition
- Specified by:
getTypeName
in interfaceDefinition
- Returns:
- the type name
-
isRuntimeSchema
public boolean isRuntimeSchema()Description copied from interface:Definition
This 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:
isRuntimeSchema
in interfaceDefinition
-
isAbstract
public boolean isAbstract()Description copied from interface:Definition
For types: is the type abstract so that it should not be instantiated directly? For items: TODO- Specified by:
isAbstract
in interfaceDefinition
-
isDeprecated
public boolean isDeprecated()- Specified by:
isDeprecated
in interfacePrismLifecycleDefinition
-
isRemoved
public boolean isRemoved()- Specified by:
isRemoved
in interfacePrismLifecycleDefinition
-
isOptionalCleanup
public boolean isOptionalCleanup()Description copied from interface:Definition
Marks item that could be ignored by SCM tools (e.g. Git), or removed before commit.- Specified by:
isOptionalCleanup
in interfaceDefinition
-
getRemovedSince
- Specified by:
getRemovedSince
in interfacePrismLifecycleDefinition
-
isExperimental
public boolean isExperimental()Description copied from interface:PrismLifecycleDefinition
Experimental functionality is not stable and it may be changed in any future release without any warning. Use at your own risk.- Specified by:
isExperimental
in interfacePrismLifecycleDefinition
-
getPlannedRemoval
Description copied from interface:PrismLifecycleDefinition
Version 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:
getPlannedRemoval
in interfacePrismLifecycleDefinition
-
isElaborate
public boolean isElaborate()Description copied from interface:Definition
Elaborate 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:
isElaborate
in interfaceDefinition
-
getDeprecatedSince
- Specified by:
getDeprecatedSince
in interfacePrismLifecycleDefinition
-
getDisplayHint
Description copied from interface:PrismPresentationDefinition
Enumeration annotation that specifies how/whether the item should be displayed. It is also a replacement for the old "emphasized" annotation.- Specified by:
getDisplayHint
in interfacePrismPresentationDefinition
-
getMergerIdentifier
- Specified by:
getMergerIdentifier
in interfaceDefinition
-
getNaturalKeyConstituents
- Specified by:
getNaturalKeyConstituents
in interfaceDefinition
-
getMergerInstance
@Nullable public @Nullable ItemMerger getMergerInstance(@NotNull @NotNull MergeStrategy strategy, @Nullable @Nullable OriginMarker originMarker) - Specified by:
getMergerInstance
in interfaceDefinition
-
getNaturalKeyInstance
- Specified by:
getNaturalKeyInstance
in interfaceDefinition
-
isEmphasized
public boolean isEmphasized()Description copied from interface:PrismPresentationDefinition
True 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:
isEmphasized
in interfacePrismPresentationDefinition
-
getDisplayOrder
Description copied from interface:PrismPresentationDefinition
Specifies 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:
getDisplayOrder
in interfacePrismPresentationDefinition
-
getHelp
Description copied from interface:PrismPresentationDefinition
Returns 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:
getHelp
in interfacePrismPresentationDefinition
- Returns:
- help string or catalog key
-
getDocumentationPreview
Description copied from interface:PrismPresentationDefinition
Returns only a first sentence of documentation.- Specified by:
getDocumentationPreview
in interfacePrismPresentationDefinition
-
getTypeClass
Description copied from interface:Definition
Returns 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:
getTypeClass
in interfaceDefinition
-
getAnnotation
Description copied from interface:Definition
Returns 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:
getAnnotation
in interfaceDefinition
-
getAnnotations
Description copied from interface:Definition
Returns all annotations, as unmodifiable map. Nullable by design, to avoid creating lots of empty maps.- Specified by:
getAnnotations
in interfaceDefinition
-
getSchemaMigrations
- Specified by:
getSchemaMigrations
in interfacePrismLifecycleDefinition
-
getDiagrams
- Specified by:
getDiagrams
in interfacePrismPresentationDefinition
-
findItemDefinition
public <ID extends ItemDefinition<?>> ID findItemDefinition(@NotNull @NotNull ItemPath path, @NotNull @NotNull Class<ID> clazz) Description copied from interface:LocalItemDefinitionStore
Returns 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:
findItemDefinition
in interfaceLocalItemDefinitionStore
-
forLayerMutable
@NotNull public @NotNull ResourceObjectDefinition forLayerMutable(@NotNull @NotNull LayerType layer) Description copied from interface:ResourceObjectDefinition
Creates a layer-specific mutable version of this definition.- Specified by:
forLayerMutable
in interfaceResourceObjectDefinition
-
forLayerImmutable
@NotNull public @NotNull ResourceObjectDefinition forLayerImmutable(@NotNull @NotNull LayerType layer) Description copied from interface:ResourceObjectDefinition
AsResourceObjectDefinition.forLayerMutable(LayerType)
but returns immutable definition.- Specified by:
forLayerImmutable
in interfaceResourceObjectDefinition
-
cloneInLayer
@NotNull protected abstract @NotNull AbstractResourceObjectDefinitionImpl cloneInLayer(@NotNull @NotNull LayerType layer) Returns mutable copy. -
getCurrentLayer
Description copied from interface:LayeredDefinition
Gets the current point-of-view: on which layer do we look at the data?- Specified by:
getCurrentLayer
in interfaceLayeredDefinition
-
replaceAttributeDefinition
public void replaceAttributeDefinition(@NotNull @NotNull QName itemName, @Nullable @Nullable ItemDefinition<?> newDefinition) Description copied from interface:ResourceObjectDefinition
Replaces a definition for given item name with a provided one.- Specified by:
replaceAttributeDefinition
in interfaceResourceObjectDefinition
-
add
-
getConfiguredAuxiliaryObjectClassNames
Description copied from interface:ResourceObjectDefinition
Returns the names of auxiliary object classes that are "statically" defined for this object type (or object class, in the future). For dynamically composed definitions (CompositeObjectDefinition
only the statically-defined ones (i.e. those from the structural definition) are returned.- Specified by:
getConfiguredAuxiliaryObjectClassNames
in interfaceResourceObjectDefinition
-
trimAttributesTo
- Specified by:
trimAttributesTo
in interfaceResourceObjectDefinition
-
validate
Description copied from interface:ResourceObjectDefinition
Executes some basic checks on this object type. Moved from `validateObjectClassDefinition()` method inResourceTypeUtil
. TODO review this method- Specified by:
validate
in interfaceResourceObjectDefinition
- Throws:
SchemaException
-
getDefinitionBean
Description copied from interface:ResourceObjectDefinition
Returns the configuration bean for this object type or class.- Specified by:
getDefinitionBean
in interfaceResourceObjectDefinition
-
getEffectiveShadowCachingPolicy
Description copied from interface:ResourceObjectDefinition
Returns 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:
getEffectiveShadowCachingPolicy
in interfaceResourceObjectDefinition
-
resolveFrameworkName
Description copied from interface:FrameworkNameResolver
Resolves framework-specific name (like `__NAME__`) to midPoint name (like `ri:dn`), if available.- Specified by:
resolveFrameworkName
in interfaceFrameworkNameResolver
-
getSimpleAttributeInboundDefinition
public ResourceObjectInboundDefinition.ItemInboundDefinition getSimpleAttributeInboundDefinition(ItemName itemName) - Specified by:
getSimpleAttributeInboundDefinition
in interfaceResourceObjectInboundDefinition
-
getReferenceAttributeInboundDefinition
public ResourceObjectInboundDefinition.ItemInboundDefinition getReferenceAttributeInboundDefinition(ItemName itemName) - Specified by:
getReferenceAttributeInboundDefinition
in interfaceResourceObjectInboundDefinition
-
getCorrelation
- Specified by:
getCorrelation
in interfaceResourceObjectInboundDefinition
-
mutator
Description copied from interface:Definition
Returns an interface to mutate this definition.- Specified by:
mutator
in interfaceDefinition
-
getSystemDefaultPolicy
-
setSystemDefaultPolicy
-