Class ResourceTypeChange

java.lang.Object
com.sodius.oslc.server.process.types.ResourceTypeChange

public class ResourceTypeChange extends Object
Encapsulates a resource type change data.
Since:
3.9.0
  • Method Details

    • getContainer

      public String getContainer()
      Gets the container id.
      Returns:
      the container id.
    • getArtifactType

      public ArtifactType getArtifactType()
      Gets the artifact type.
      Returns:
      the artifact type.
    • getPreviousType

      public Optional<URI> getPreviousType()
      Gets the previous resource type URI.
      Returns:
      an empty Optional if no resource type was mapped previously; the contained reference otherwise.
    • getCurrentType

      public Optional<URI> getCurrentType()
      Gets the current resource type URI.
      Returns:
      an empty Optional if no resource type is currently mapped; the contained reference otherwise.
    • isFirstCurrentTypeDomain

      public boolean isFirstCurrentTypeDomain()
      Returns whether the current resource type's domain is mapped to the container for the first time.

      A domain is considered mapped for the first time when no artifact type in the container had an effective resource type mapping to any resource type sharing the same namespace as the current type, before this change.

      Returns:
      true if this is the first mapping to the current type's domain in the container; false otherwise.
      Since:
      4.2.0
    • isLastPreviousTypeDomain

      public boolean isLastPreviousTypeDomain()
      Returns whether the previous resource type's domain is no longer mapped in the container.

      A domain is considered last when, after this change, no artifact type in the container maps to any resource type sharing the same namespace as the previous type.

      Returns:
      true if this was the last mapping to the previous type's domain in the container; false otherwise.
      Since:
      4.2.0