Interface IdConditionable<E,T extends Element>

Type Parameters:
E - the extending element type, used for method chaining.
T - the type of elements (CIs or Relations) that can be used for the withIdsOf(T...) methods.
All Known Subinterfaces:
DirectLink, IndirectLinkStepFromPart, IndirectLinkStepLinkPart, IndirectLinkStepToPart, QueryNode, ReachableSetStepFromPart, ReachableSetStepLinkPart, ReachableSetStepToPart

public interface IdConditionable<E,T extends Element>
Indicates that the extending element may have an IDs condition.
Since:
UCMDB 9.0
  • Method Summary

    Modifier and Type
    Method
    Description
    ids()
    Returns the ids previously set using any of the "withIds..." methods, or an empty collection if none of these methods was used.
    withIds(UcmdbId... ids)
    Restricts the set of matching elements to those having the specified IDs.
    Restricts the set of matching elements to those having the IDs returned by the given iterable.
    Restricts the set of matching elements to those having the IDs returned by the given iterable.
    withIdsFromStrings(String... idsAsStrings)
    Restricts the set of matching elements to those having the specified IDs.
    withIdsOf(Iterable<? extends T> elements)
    Restricts the set of matching elements to those whose IDs are specified by the elements in the returned by the iterable.
    withIdsOf(T... elements)
    Restricts the set of matching elements to those whose IDs are specified by the elements in the set.
  • Method Details

    • withIds

      E withIds(UcmdbId... ids)
      Restricts the set of matching elements to those having the specified IDs.
      Returns:
      this object. The returned object can be used for method chaining.
      See Also:
    • withIds

      E withIds(Iterable<UcmdbId> ids)
      Restricts the set of matching elements to those having the IDs returned by the given iterable.
      Returns:
      this object. The returned object can be used for method chaining.
      See Also:
    • withIdsFromStrings

      E withIdsFromStrings(String... idsAsStrings)
      Restricts the set of matching elements to those having the specified IDs. The ID strings can be obtained with UcmdbId.getAsString()
      Returns:
      this object. The returned object can be used for method chaining.
      See Also:
    • withIdsFromStrings

      E withIdsFromStrings(Iterable<String> idsAsStrings)
      Restricts the set of matching elements to those having the IDs returned by the given iterable. The ID strings can be obtained with UcmdbId.getAsString()
      Returns:
      this object. The returned object can be used for method chaining.
      See Also:
    • withIdsOf

      E withIdsOf(T... elements)
      Restricts the set of matching elements to those whose IDs are specified by the elements in the set.
      Returns:
      this object (to allow method chaining)
      See Also:
    • withIdsOf

      E withIdsOf(Iterable<? extends T> elements)
      Restricts the set of matching elements to those whose IDs are specified by the elements in the returned by the iterable.
      Returns:
      this object (to allow method chaining)
      See Also:
    • ids

      Returns the ids previously set using any of the "withIds..." methods, or an empty collection if none of these methods was used.
      See Also: