Class ProcessingScope
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.sync.tasks.ProcessingScope
-
- All Implemented Interfaces:
DebugDumpable
public class ProcessingScope extends Object implements DebugDumpable
Specifies the basic scope of synchronization (or potentially other resource-related) activity, usually given by [resource, kind, intent, object class name] tuple. Any custom filtering is not represented here. We keep the following: - resolved resource, - resolved object type or class definition, - original kind, intent, and object class name values (if specified). A special case is the scope for a single shadow (seeof(ResourceType, ShadowType)
). In this case we resolve the definition but keep kind, intent, and object class unspecified. We don't expect any search or similar operation to be invoked based on these values. See also: -SyncTaskHelper
- MID-7470
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ProcessingScope.PostSearchFilterImpl
Specifies which objects are to be synchronized.
-
Field Summary
Fields Modifier and Type Field Description @NotNull ResourceType
resource
The resolved resource.-
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
checkResourceUp()
ItemDefinitionProvider
createItemDefinitionProvider()
ReturnsItemDefinitionProvider
for bucketing over objects in this object class.String
debugDump(int indent)
String
getContextDescription()
@NotNull ResourceOperationCoordinates
getCoords()
@NotNull PostSearchFilter
getPostSearchFilter()
@NotNull QName
getResolvedObjectClassName()
@NotNull ResourceType
getResource()
@Nullable ResourceObjectDefinition
getResourceObjectDefinition()
String
getResourceOid()
@NotNull ObjectReferenceType
getResourceRef()
static ProcessingScope
of(@NotNull ResourceType resource, @NotNull ResourceObjectSetType resourceObjectSet)
static ProcessingScope
of(@NotNull ResourceType resource, @NotNull ShadowType shadow)
See the note in class-level javadoc.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
Field Detail
-
resource
@NotNull public final @NotNull ResourceType resource
The resolved resource.
-
-
Method Detail
-
of
public static ProcessingScope of(@NotNull @NotNull ResourceType resource, @NotNull @NotNull ResourceObjectSetType resourceObjectSet) throws ActivityRunException
- Throws:
ActivityRunException
-
of
public static ProcessingScope of(@NotNull @NotNull ResourceType resource, @NotNull @NotNull ShadowType shadow) throws ActivityRunException, SchemaException
See the note in class-level javadoc.- Throws:
ActivityRunException
SchemaException
-
getCoords
@NotNull public @NotNull ResourceOperationCoordinates getCoords()
-
getResource
@NotNull public @NotNull ResourceType getResource()
-
getResourceRef
@NotNull public @NotNull ObjectReferenceType getResourceRef()
-
getResourceObjectDefinition
@Nullable public @Nullable ResourceObjectDefinition getResourceObjectDefinition()
-
getResolvedObjectClassName
@NotNull public @NotNull QName getResolvedObjectClassName()
-
getPostSearchFilter
@NotNull public @NotNull PostSearchFilter getPostSearchFilter()
-
getContextDescription
public String getContextDescription()
-
getResourceOid
public String getResourceOid()
-
checkResourceUp
public void checkResourceUp()
-
createItemDefinitionProvider
public ItemDefinitionProvider createItemDefinitionProvider()
ReturnsItemDefinitionProvider
for bucketing over objects in this object class.
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
-