Interface UpdatableLinkedOslcResourcesField

All Superinterfaces:
CanRender<Renderer<? extends Renderer<?>>>, Field, Iterable<LinkedOslcResource>, IterableField<LinkedOslcResource>, IterableWithSize<LinkedOslcResource>, LinkedOslcResourcesField

public interface UpdatableLinkedOslcResourcesField extends LinkedOslcResourcesField
Since:
3.17.2
  • Method Details

    • addLinkedOslcResource

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

      boolean removeLinkedOslcResource(@NotNull String uri, @NotNull String role)
      Removes a link to an OSLC resource. Does nothing, if there is no such link.
      Parameters:
      uri - The URI of the OSLC link.
      roleId - The id of the link role for this OSLC link.
      Returns:
      true if a link was removed.