Class ResourceTypeChange
java.lang.Object
com.sodius.oslc.server.process.types.ResourceTypeChange
Encapsulates a resource type change data.
- Since:
- 3.9.0
-
Method Summary
Modifier and TypeMethodDescriptionGets the artifact type.Gets the container id.Gets the current resource type URI.Gets the previous resource type URI.booleanReturns whether thecurrent resource type's domain is mapped to the container for the first time.booleanReturns whether theprevious resource type's domain is no longer mapped in the container.
-
Method Details
-
getContainer
Gets the container id.- Returns:
- the container id.
-
getArtifactType
Gets the artifact type.- Returns:
- the artifact type.
-
getPreviousType
Gets the previous resource type URI.- Returns:
- an empty
Optionalif no resource type was mapped previously; the contained reference otherwise.
-
getCurrentType
Gets the current resource type URI.- Returns:
- an empty
Optionalif no resource type is currently mapped; the contained reference otherwise.
-
isFirstCurrentTypeDomain
public boolean isFirstCurrentTypeDomain()Returns whether thecurrent 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:
trueif this is the first mapping to the current type's domain in the container;falseotherwise.- Since:
- 4.2.0
-
isLastPreviousTypeDomain
public boolean isLastPreviousTypeDomain()Returns whether theprevious 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:
trueif this was the last mapping to the previous type's domain in the container;falseotherwise.- Since:
- 4.2.0
-