Class ProjectionContextFilter
- java.lang.Object
-
- com.evolveum.midpoint.model.api.context.ProjectionContextFilter
-
- All Implemented Interfaces:
DebugDumpable
,HumanReadableDescribable
,ShortDumpable
,Serializable
,Cloneable
@Experimental public class ProjectionContextFilter extends Object implements Serializable, DebugDumpable, ShortDumpable, HumanReadableDescribable, Cloneable
Used to find a matching projection context. Originally, `ResourceShadowDiscriminator` (now removed) was used for this purpose. Also,ProjectionContextKey
can be used; but this class provides more explicit filtering behavior. Null values here mean "does not matter". An exception istag
where the null value meaning is determined bynullTagMeansAny
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description ProjectionContextFilter(@Nullable String resourceOid, @Nullable ShadowKindType kind, @Nullable String intent)
By not specifying the tag the caller says it does not matter.ProjectionContextFilter(@Nullable String resourceOid, @Nullable ShadowKindType kind, @Nullable String intent, @Nullable String tag)
By specifying the tag the caller indicates it wants the exact match.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectionContextFilter
clone()
String
debugDump(int indent)
@Nullable Boolean
getGone()
@Nullable String
getIntent()
@Nullable ShadowKindType
getKind()
@Nullable String
getResourceOid()
@Nullable String
getTag()
ProjectionContextFilter
gone(Boolean gone)
boolean
matches(@NotNull ProjectionContextKey key)
void
shortDump(StringBuilder sb)
Show the content of the object intended for diagnostics.void
shortDump(StringBuilder sb, boolean writeOid)
String
toHumanReadableDescription()
String
toHumanReadableDescription(boolean writeOid)
String
toString()
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, 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
-
-
-
-
Constructor Detail
-
ProjectionContextFilter
public ProjectionContextFilter(@Nullable @Nullable String resourceOid, @Nullable @Nullable ShadowKindType kind, @Nullable @Nullable String intent, @Nullable @Nullable String tag)
By specifying the tag the caller indicates it wants the exact match.
-
ProjectionContextFilter
public ProjectionContextFilter(@Nullable @Nullable String resourceOid, @Nullable @Nullable ShadowKindType kind, @Nullable @Nullable String intent)
By not specifying the tag the caller says it does not matter.
-
-
Method Detail
-
getResourceOid
@Nullable public @Nullable String getResourceOid()
-
getKind
@Nullable public @Nullable ShadowKindType getKind()
-
getIntent
@Nullable public @Nullable String getIntent()
-
getTag
@Nullable public @Nullable String getTag()
-
getGone
@Nullable public @Nullable Boolean getGone()
-
gone
public ProjectionContextFilter gone(Boolean gone)
-
matches
public boolean matches(@NotNull @NotNull ProjectionContextKey key)
-
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.
-
shortDump
public void shortDump(StringBuilder sb, boolean writeOid)
-
toHumanReadableDescription
public String toHumanReadableDescription()
- Specified by:
toHumanReadableDescription
in interfaceHumanReadableDescribable
-
toHumanReadableDescription
public String toHumanReadableDescription(boolean writeOid)
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
clone
public ProjectionContextFilter clone()
-
-