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 is tag where the null value meaning is determined by nullTagMeansAny.
See Also:
  • Constructor Details

    • 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 Details

    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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 interface ShortDumpable
      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 interface HumanReadableDescribable
    • toHumanReadableDescription

      public String toHumanReadableDescription(boolean writeOid)
    • debugDump

      public String debugDump(int indent)
      Specified by:
      debugDump in interface DebugDumpable
    • clone

      public ProjectionContextFilter clone()
      Overrides:
      clone in class Object