Interface IWithLinkedOslcResources

All Superinterfaces:
IAdaptable, IChangeListener, IHasCustomValues, IHasValues, IPObject, IUniqueObject, IWorkflowObject
All Known Subinterfaces:
IModule, IWorkItem

public interface IWithLinkedOslcResources extends IWorkflowObject
Since:
3.17.2
  • Field Details

  • Method Details

    • addLinkedOslcResource

      boolean addLinkedOslcResource(@NotNull URI uri, @NotNull IEnumOption role, @Nullable String label)
      Adds the OSLC link. If the link already exists, it will NOT add another one. Links are the same, when URI and link role are equal.
      Parameters:
      uri - The URI of the OSLC link.
      role - The role of the OSLC link.
      label - The label (can be null).
      Returns:
      true if a link was added.
      Since:
      3.10.1
    • getLinkedOslcResourceStruct

      @Nullable ILinkedOslcResourceStruct getLinkedOslcResourceStruct(@NotNull URI uri, @NotNull IEnumOption role)
      get the existing OSLC link struct.
      Parameters:
      uri - The URI of the OSLC link.
      role - The role of the OSLC link.
      Returns:
      ILinkedOslcResourceStruct link struct.
      Since:
      3.22.1
    • getLinkedOslcResourcesStructs

      @NotNull Collection<ILinkedOslcResourceStruct> getLinkedOslcResourcesStructs()
      Returns the collection of ILinkedOslcResourceStruct structures contained in this item.
      Since:
      3.10.1
    • removeLinkedOslcResource

      boolean removeLinkedOslcResource(@NotNull URI uri, @NotNull IEnumOption role)
      Removes the OSLC link based on URI and role regardless of revision. Does nothing, if there is no such link.
      Parameters:
      uri - The URI of the OSLC link.
      role - The role of the OSLC link.
      Returns:
      true if the link was removed
      Since:
      3.10.1