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();
322 super(osAcctInstances);
331 return getDataModelObjects();
356 return getDataModelObjects();
404 super(personObjectIDs);
413 return getDataModelObjects();
423 private final Person person;
434 this.person = person;
452 return getDataModelObjects();
462 private final Person person;
473 this.person = person;
491 return getDataModelObjects();
default Optional< Long > getDataSourceId()
List< OsAccount > getOsAcounts()
List< Person > getPersons()
List< Long > getPersonIds()
List< Long > getOsAccountObjectIds()
List< Long > getHostIds()
List< OsAccountInstance > getOsAccountInstances()
List< ScoreChange > getScoreChanges()
List< Long > getAnalysisResultObjectIds()
Optional< Long > getDataSourceId()
List< Long > getHostIds()