Interface DirectLink

All Superinterfaces:
ComplexTypeConditionHandler<DirectLink>, IdConditionable<DirectLink,Relation>, InterQueryRestrictableElement<DirectLink>, PropertiesCarrier<DirectLink>, PropertiesConditionable<DirectLink>, QualifierConditionable<DirectLink>, QueryLink<DirectLink>, SupportsInvisibility<QueryLink<DirectLink>>, TypeConditionable<DirectLink>

Represent a query about a relation directly connecting two CIs, or a CI to itself. This query link has:
  • A type, which is either "any type" (managed_relationship), a specific type with all of its derived types or with the specific type only, with no derived types.
  • An optional properties condition that limits the relations matching this QueryLink to those that match the given property condition. For example, the link has a specific value for an attribute.
  • An optional IDs condition that limits the world-links matching to a specific set.
  • An optional set of properties to load on each item in the result.
  • An optional set of complex type conditions which specifies a complex conditions on the type of the query element. Each complex condition can add or remove class types to be matched in the result. NOTE: The type of the link can be ignored for the results if needed. Just create a complex condition and declare this type to be ignored in the result. In this case, the results will only be matched to the complex type conditions and not to the type of the link.
Since:
UCMDB 9.0
  • Method Details

    • withLinkOfType

      DirectLink withLinkOfType(String type)
      Convenience method, equivalent to calling ofType(type)
    • strictlyWithLinkOfType

      DirectLink strictlyWithLinkOfType(String type)
      Convenience method, equivalent to calling strictlyOfType(type)