Interface IDProviderChange
- All Known Subinterfaces:
DatasetChange
IDProvider based change operation.- Since:
- 5.2.210505
-
Method Summary
Modifier and TypeMethodDescription@NotNull Map<ChangeType, RevisionChangeDetail> Get revision change details for this element change.@NotNull Collection<Language> If the change is limited to a set of languages, the set of changed languages is returned by this method.@NotNull IDProviderGet the element the of this change operation.@NotNull EventInfoProvides the lightweight event info object containing metadata about the element change operation, as seen in the filter.booleanReturns whether at least one of thechanged languagesis a first release.booleanisFirstRelease(@NotNull Language... languages) Returns whether this release is the initial release of the element or dataset for the given languages.
-
Method Details
-
getEventInfo
Provides the lightweight event info object containing metadata about the element change operation, as seen in the filter.- Returns:
- The event info object corresponding to this change.
- Since:
- 5.2.210505
-
getChangeDetails
Get revision change details for this element change.- Returns:
- Change details for this element change.
- Since:
- 5.2.250102
- See Also:
-
getChangedLanguages
If the change is limited to a set of languages, the set of changed languages is returned by this method. If the change is not limited to a set of languages or is not known, all project languages are returned here.- Returns:
- The changed languages or all project languages, if unknown or not limited.
- Since:
- 5.2.250102
-
getElement
Get the element the of this change operation.- Returns:
- The element.
- Throws:
IllegalStateException- Thrown if the element was not found.- Since:
- 5.2.210505
-
isFirstRelease
Returns whether this release is the initial release of the element or dataset for the given languages.- If called with no arguments, checks all
changed languages- equivalent tohasFirstRelease(). - If called with one or more languages, returns
trueif at least one of the given languages is released for the first time. Languages not ingetChangedLanguages()are treated as not a first release.
This method is only meaningful for release changes (
EventInfo.EventType.ELEMENT_RELEASED/EventInfo.EventType.ENTITY_RELEASED); it returnsfalsefor all other event types.For datasets: only supported for temporal schemas. Non-temporal schemas always return
false.Note: This call resolves the pre-event release state and may hit the server on the first invocation. The result is cached per change instance.
- Parameters:
languages- The languages to check. If empty, all changed languages are checked.- Returns:
trueif at least one of the given (or changed) languages has no prior release revision.- Since:
- 5.2.260903
- If called with no arguments, checks all
-
hasFirstRelease
@Experimental boolean hasFirstRelease()Returns whether at least one of thechanged languagesis a first release.Equivalent to
isFirstRelease(Language...)called with no arguments.This method is only meaningful for release changes (
EventInfo.EventType.ELEMENT_RELEASED/EventInfo.EventType.ENTITY_RELEASED); it returnsfalsefor all other event types.When the language scope of the change is unknown,
getChangedLanguages()returns all project languages;hasFirstRelease()then probes across all of them.Note: This call resolves the pre-event release state and may hit the server on the first invocation. The result is cached per change instance, so repeated calls do not cause additional server round-trips.
- Returns:
trueif at least one changed language is released for the first time by this event.- Since:
- 5.2.260903
-