Class ResourceObjectIdentifier<T>

java.lang.Object
com.evolveum.midpoint.schema.processor.ResourceObjectIdentifier<T>
All Implemented Interfaces:
ShortDumpable, Serializable
Direct Known Subclasses:
ResourceObjectIdentifier.Primary, ResourceObjectIdentifier.Secondary

public abstract class ResourceObjectIdentifier<T> extends Object implements Serializable, ShortDumpable
Specialized class that wraps a single-valued non-null primary or secondary identifier attribute. The intended use is in method parameters and internal data structures where it ensures the requirements on the identifiers being passed on or stored.
See Also:
  • Method Details

    • primaryFromIdentifiers

      @NotNull public static ResourceObjectIdentifier.Primary<?> primaryFromIdentifiers(@NotNull @NotNull ResourceObjectDefinition objectDefinition, @NotNull @NotNull Collection<ShadowSimpleAttribute<?>> identifiers, Object errorCtx) throws SchemaException
      Throws:
      SchemaException
    • getAttribute

      @NotNull public @NotNull ShadowSimpleAttribute<T> getAttribute()
    • getRealValue

      @NotNull public T getRealValue()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getName

      @NotNull public @NotNull ItemName getName()
    • getValue

      @NotNull public @NotNull PrismPropertyValue<T> getValue()
    • getSearchPath

      public ItemPath getSearchPath()
    • getDefinition

      @NotNull public @NotNull ShadowSimpleAttributeDefinition<T> getDefinition()
    • 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.
    • getOrigValue

      @NotNull public @NotNull Object getOrigValue()
    • getStringOrigValue

      @NotNull public @NotNull String getStringOrigValue()
      This may be quite courageous. But (especially) ConnId requires String values of identifiers. So, this is the place to change the way non-String values are to be handled.
    • getNormValue

      @NotNull public @NotNull Object getNormValue()
    • getMatchingRuleName

      public QName getMatchingRuleName()
    • normalizationAwareEqFilter

      @NotNull public @NotNull ObjectFilter normalizationAwareEqFilter() throws SchemaException
      Throws:
      SchemaException
    • plainEqFilter

      @NotNull public @NotNull ObjectFilter plainEqFilter()