19 package org.sleuthkit.datamodel;
21 import com.google.common.collect.ImmutableSet;
22 import java.util.ArrayList;
23 import java.util.Collections;
24 import java.util.List;
25 import java.util.Optional;
40 return Optional.ofNullable(null);
52 private final List<T> dataModelObjects;
62 this.dataModelObjects =
new ArrayList<>();
63 this.dataModelObjects.addAll(dataModelObjects);
71 List<T> getDataModelObjects() {
72 return Collections.unmodifiableList(dataModelObjects);
83 private final Long dataSourceObjectId;
92 super(scoreChanges.asList());
93 this.dataSourceObjectId = dataSourceObjectId;
94 scoreChanges.stream().forEach(chg -> {
95 if (!chg.getDataSourceObjectId().equals(dataSourceObjectId)) {
96 throw new IllegalArgumentException(
"All data source object IDs in List<ScoreChange> must match dataSourceObjectId");
103 return Optional.ofNullable(dataSourceObjectId);
112 return getDataModelObjects();
130 super(deletedResultObjIds);
139 return getDataModelObjects();
164 return getDataModelObjects();
221 return getDataModelObjects();
246 return getDataModelObjects();
295 super(accountObjectIds);
304 return getDataModelObjects();
321 super(mergedAccounts);
331 return getDataModelObjects();
341 private final Long sourceOsAccountId;
342 private final Long destinationOsAccountId;
345 this.sourceOsAccountId = sourceOsAccountId;
346 this.destinationOsAccountId = destinationOsAccountId;
354 return sourceOsAccountId;
362 return destinationOsAccountId;
379 super(osAcctInstances);
388 return getDataModelObjects();
413 return getDataModelObjects();
461 super(personObjectIDs);
470 return getDataModelObjects();
480 private final Person person;
491 this.person = person;
509 return getDataModelObjects();
519 private final Person person;
530 this.person = person;
548 return getDataModelObjects();
565 return getDataModelObjects();
620 return getDataModelObjects();
645 return getDataModelObjects();
669 return getDataModelObjects();
default Optional< Long > getDataSourceId()
TagNamesUpdatedTskEvent(List< TagName > tagNames)
List< OsAccount > getOsAcounts()
List< Person > getPersons()
List< Long > getPersonIds()
List< Long > getOsAccountObjectIds()
List< Long > getHostIds()
List< MergedAccountsPair > getMergedAccountPairs()
TagNamesDeletedTskEvent(List< Long > tagNameIds)
TagSetsDeletedTskEvent(List< Long > tagSetIds)
List< TagSet > getTagSets()
List< OsAccountInstance > getOsAccountInstances()
Long getSourceOsAccountId()
List< TagName > getTagNames()
List< ScoreChange > getScoreChanges()
MergedAccountsPair(Long sourceOsAccountId, Long destinationOsAccountId)
List< Long > getTagSetIds()
TagSetsAddedTskEvent(List< TagSet > tagSets)
TagNamesAddedTskEvent(List< TagName > tagNames)
List< Long > getAnalysisResultObjectIds()
Long getDestinationOsAccountId()
TagNamesTskEvent(List< TagName > tagNames)
Optional< Long > getDataSourceId()
List< Long > getTagNameIds()
List< Long > getHostIds()