Class ItemValueMetadataProcessingSpec
- java.lang.Object
-
- com.evolveum.midpoint.model.common.mapping.metadata.ItemValueMetadataProcessingSpec
-
- All Implemented Interfaces:
DebugDumpable
,ShortDumpable
public class ItemValueMetadataProcessingSpec extends Object implements ShortDumpable, DebugDumpable
Specification of value metadata processing for a given data item: mappings that should be applied and item definitions driving e.g. storage and applicability of built-in processing of individual metadata items. Information present here is derived from e.g. object templates and metadata mappings attached to data mappings. It is already processed regarding applicability of metadata processing to individual data items.
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMetadataMappings(List<MetadataMappingType> mappingsToAdd)
void
addPathsToIgnore(@NotNull List<ItemPathType> pathsToIgnore)
String
debugDump(int indent)
static ItemValueMetadataProcessingSpec
forScope(@NotNull MetadataMappingScopeType scope)
@NotNull Collection<MetadataMappingType>
getMappings()
@NotNull MetadataMappingScopeType
getScope()
Collection<ItemPath>
getTransientPaths()
boolean
isEmpty()
boolean
isFullProcessing(ItemPath itemPath)
void
populateFromCurrentFocusTemplate(ModelContext<?> lensContext, ItemPath dataPath, ObjectResolver objectResolver, String contextDesc, Task task, OperationResult result)
void
populateFromCurrentFocusTemplate(ItemPath dataPath, ObjectResolver objectResolver, String contextDesc, Task task, OperationResult result)
void
shortDump(StringBuilder sb)
Show the content of the object intended for diagnostics.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
-
-
-
Method Detail
-
forScope
public static ItemValueMetadataProcessingSpec forScope(@NotNull @NotNull MetadataMappingScopeType scope)
-
populateFromCurrentFocusTemplate
public void populateFromCurrentFocusTemplate(ItemPath dataPath, ObjectResolver objectResolver, String contextDesc, Task task, OperationResult result) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException
-
populateFromCurrentFocusTemplate
public void populateFromCurrentFocusTemplate(ModelContext<?> lensContext, ItemPath dataPath, ObjectResolver objectResolver, String contextDesc, Task task, OperationResult result) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException
-
isEmpty
public boolean isEmpty()
-
addMetadataMappings
public void addMetadataMappings(List<MetadataMappingType> mappingsToAdd)
-
getMappings
@NotNull public @NotNull Collection<MetadataMappingType> getMappings()
-
isFullProcessing
public boolean isFullProcessing(ItemPath itemPath) throws SchemaException
- Throws:
SchemaException
-
getTransientPaths
public Collection<ItemPath> getTransientPaths()
-
getScope
@NotNull public @NotNull MetadataMappingScopeType getScope()
-
shortDump
public void shortDump(StringBuilder sb)
Description copied from interface:ShortDumpable
Show the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.- Specified by:
shortDump
in interfaceShortDumpable
- Parameters:
sb
- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
addPathsToIgnore
public void addPathsToIgnore(@NotNull @NotNull List<ItemPathType> pathsToIgnore)
-
-