Sleuth Kit Java Bindings (JNI)
4.12.1
Java bindings for using The Sleuth Kit
|
Inherits org.sleuthkit.datamodel.Content.
Inherited by org.sleuthkit.datamodel.AbstractFile, org.sleuthkit.datamodel.FileSystem, org.sleuthkit.datamodel.HostAddress, org.sleuthkit.datamodel.Image, org.sleuthkit.datamodel.OsAccount, org.sleuthkit.datamodel.Pool, org.sleuthkit.datamodel.UnsupportedContent, org.sleuthkit.datamodel.Volume, and org.sleuthkit.datamodel.VolumeSystem.
Public Member Functions | |
boolean | equals (Object obj) |
Score | getAggregateScore () throws TskCoreException |
List< AnalysisResult > | getAllAnalysisResults () throws TskCoreException |
ArrayList< BlackboardArtifact > | getAllArtifacts () throws TskCoreException |
long | getAllArtifactsCount () throws TskCoreException |
List< DataArtifact > | getAllDataArtifacts () throws TskCoreException |
List< AnalysisResult > | getAnalysisResults (BlackboardArtifact.Type artifactType) throws TskCoreException |
ArrayList< BlackboardArtifact > | getArtifacts (String artifactTypeName) throws TskCoreException |
ArrayList< BlackboardArtifact > | getArtifacts (int artifactTypeID) throws TskCoreException |
ArrayList< BlackboardArtifact > | getArtifacts (BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException |
long | getArtifactsCount (String artifactTypeName) throws TskCoreException |
long | getArtifactsCount (int artifactTypeID) throws TskCoreException |
long | getArtifactsCount (ARTIFACT_TYPE type) throws TskCoreException |
List< Content > | getChildren () throws TskCoreException |
int | getChildrenCount () throws TskCoreException |
List< Long > | getChildrenIds () throws TskCoreException |
Content | getDataSource () throws TskCoreException |
BlackboardArtifact | getGenInfoArtifact () throws TskCoreException |
BlackboardArtifact | getGenInfoArtifact (boolean create) throws TskCoreException |
ArrayList< BlackboardAttribute > | getGenInfoAttributes (ATTRIBUTE_TYPE attr_type) throws TskCoreException |
Set< String > | getHashSetNames () throws TskCoreException |
long | getId () |
String | getName () |
Content | getParent () throws TskCoreException |
Optional< Long > | getParentId () throws TskCoreException |
SleuthkitCase | getSleuthkitCase () |
String | getUniquePath () throws TskCoreException |
boolean | hasChildren () throws TskCoreException |
int | hashCode () |
AnalysisResultAdded | newAnalysisResult (BlackboardArtifact.Type artifactType, Score score, String conclusion, String configuration, String justification, Collection< BlackboardAttribute > attributesList) throws TskCoreException |
AnalysisResultAdded | newAnalysisResult (BlackboardArtifact.Type artifactType, Score score, String conclusion, String configuration, String justification, Collection< BlackboardAttribute > attributesList, long dataSourceId) throws TskCoreException |
BlackboardArtifact | newArtifact (int artifactTypeID) throws TskCoreException |
BlackboardArtifact | newArtifact (BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException |
DataArtifact | newDataArtifact (BlackboardArtifact.Type artifactType, Collection< BlackboardAttribute > attributesList, Long osAccountId) throws TskCoreException |
DataArtifact | newDataArtifact (BlackboardArtifact.Type artifactType, Collection< BlackboardAttribute > attributesList, Long osAccountId, long dataSourceId) throws TskCoreException |
DataArtifact | newDataArtifact (BlackboardArtifact.Type artifactType, Collection< BlackboardAttribute > attributesList) throws TskCoreException |
String | toString () |
String | toString (boolean preserveState) |
Public Member Functions inherited from org.sleuthkit.datamodel.Content | |
public< T > T | accept (ContentVisitor< T > v) |
void | close () |
long | getArtifactsCount (BlackboardArtifact.ARTIFACT_TYPE type) throws TskCoreException |
ArrayList< BlackboardAttribute > | getGenInfoAttributes (BlackboardAttribute.ATTRIBUTE_TYPE attr_type) throws TskCoreException |
long | getSize () |
int | read (byte[] buf, long offset, long len) throws TskCoreException |
Public Member Functions inherited from org.sleuthkit.datamodel.SleuthkitVisitableItem | |
public< T > T | accept (SleuthkitItemVisitor< T > v) |
Static Public Attributes | |
static final long | UNKNOWN_ID = -1 |
Protected Member Functions | |
AbstractContent (SleuthkitCase db, long obj_id, String name) | |
Protected Attributes | |
long | parentId |
Implements some general methods from the Content interface common across many content sub types
Definition at line 42 of file AbstractContent.java.
|
protected |
Definition at line 57 of file AbstractContent.java.
References org.sleuthkit.datamodel.AbstractContent.UNKNOWN_ID.
Referenced by org.sleuthkit.datamodel.AbstractContent.equals().
boolean org.sleuthkit.datamodel.AbstractContent.equals | ( | Object | obj | ) |
Definition at line 310 of file AbstractContent.java.
References org.sleuthkit.datamodel.AbstractContent.AbstractContent(), and org.sleuthkit.datamodel.AbstractContent.getChildrenCount().
Referenced by org.sleuthkit.datamodel.AbstractFile.getUniquePath().
Score org.sleuthkit.datamodel.AbstractContent.getAggregateScore | ( | ) | throws TskCoreException |
Returns the final score for the content object.
TskCoreException | if critical error occurred within tsk core. |
Implements org.sleuthkit.datamodel.Content.
Definition at line 512 of file AbstractContent.java.
References org.sleuthkit.datamodel.ScoringManager.getAggregateScore(), and org.sleuthkit.datamodel.SleuthkitCase.getScoringManager().
List<AnalysisResult> org.sleuthkit.datamodel.AbstractContent.getAllAnalysisResults | ( | ) | throws TskCoreException |
Get all analysis results associated with this content.
TskCoreException | If critical error occurred within tsk core. |
Implements org.sleuthkit.datamodel.Content.
Definition at line 502 of file AbstractContent.java.
References org.sleuthkit.datamodel.Blackboard.getAnalysisResults(), and org.sleuthkit.datamodel.SleuthkitCase.getBlackboard().
ArrayList<BlackboardArtifact> org.sleuthkit.datamodel.AbstractContent.getAllArtifacts | ( | ) | throws TskCoreException |
Get all artifacts associated with this content
TskCoreException | if critical error occurred within tsk core |
Implements org.sleuthkit.datamodel.Content.
Definition at line 497 of file AbstractContent.java.
References org.sleuthkit.datamodel.SleuthkitCase.getMatchingArtifacts().
long org.sleuthkit.datamodel.AbstractContent.getAllArtifactsCount | ( | ) | throws TskCoreException |
Get count of all artifacts associated with this content
TskCoreException | if critical error occurred within tsk core |
Implements org.sleuthkit.datamodel.Content.
Definition at line 537 of file AbstractContent.java.
References org.sleuthkit.datamodel.SleuthkitCase.getBlackboardArtifactsCount().
List<DataArtifact> org.sleuthkit.datamodel.AbstractContent.getAllDataArtifacts | ( | ) | throws TskCoreException |
Get all data artifacts associated with this content.
TskCoreException | If critical error occurred within tsk core. |
Implements org.sleuthkit.datamodel.Content.
Definition at line 507 of file AbstractContent.java.
References org.sleuthkit.datamodel.SleuthkitCase.getBlackboard().
List<AnalysisResult> org.sleuthkit.datamodel.AbstractContent.getAnalysisResults | ( | BlackboardArtifact.Type | artifactType | ) | throws TskCoreException |
Get all analysis results associated with this content, that have the given type.
artifactType | Type to look up. |
TskCoreException | If critical error occurred within tsk core. |
Implements org.sleuthkit.datamodel.Content.
Definition at line 517 of file AbstractContent.java.
References org.sleuthkit.datamodel.Blackboard.getAnalysisResults(), and org.sleuthkit.datamodel.SleuthkitCase.getBlackboard().
ArrayList<BlackboardArtifact> org.sleuthkit.datamodel.AbstractContent.getArtifacts | ( | String | artifactTypeName | ) | throws TskCoreException |
Get all artifacts associated with this content that have the given type name
artifactTypeName | name of the type to look up |
TskCoreException | if critical error occurred within tsk core |
Implements org.sleuthkit.datamodel.Content.
Definition at line 422 of file AbstractContent.java.
References org.sleuthkit.datamodel.Blackboard.getArtifactType(), and org.sleuthkit.datamodel.SleuthkitCase.getBlackboard().
Referenced by org.sleuthkit.datamodel.AbstractContent.getArtifacts(), and org.sleuthkit.datamodel.AbstractContent.getHashSetNames().
ArrayList<BlackboardArtifact> org.sleuthkit.datamodel.AbstractContent.getArtifacts | ( | int | artifactTypeID | ) | throws TskCoreException |
Get all artifacts associated with this content that have the given type id
artifactTypeID | type id to look up |
TskCoreException | if critical error occurred within tsk core |
Implements org.sleuthkit.datamodel.Content.
Definition at line 427 of file AbstractContent.java.
References org.sleuthkit.datamodel.SleuthkitCase.getBlackboardArtifacts(), org.sleuthkit.datamodel.AbstractContent.getGenInfoArtifact(), and org.sleuthkit.datamodel.BlackboardArtifact.ARTIFACT_TYPE.TSK_GEN_INFO.
ArrayList<BlackboardArtifact> org.sleuthkit.datamodel.AbstractContent.getArtifacts | ( | BlackboardArtifact.ARTIFACT_TYPE | type | ) | throws TskCoreException |
Get all artifacts associated with this content that have the given type
type | type to look up |
TskCoreException | if critical error occurred within tsk core |
Implements org.sleuthkit.datamodel.Content.
Definition at line 445 of file AbstractContent.java.
References org.sleuthkit.datamodel.AbstractContent.getArtifacts().
long org.sleuthkit.datamodel.AbstractContent.getArtifactsCount | ( | String | artifactTypeName | ) | throws TskCoreException |
Get count of all artifacts associated with this content that have the given type name
artifactTypeName | name of the type to look up |
TskCoreException | if critical error occurred within tsk core |
Implements org.sleuthkit.datamodel.Content.
Definition at line 522 of file AbstractContent.java.
References org.sleuthkit.datamodel.SleuthkitCase.getBlackboardArtifactsCount().
long org.sleuthkit.datamodel.AbstractContent.getArtifactsCount | ( | int | artifactTypeID | ) | throws TskCoreException |
Get count of all artifacts associated with this content that have the given type id
artifactTypeID | type id to look up |
TskCoreException | if critical error occurred within tsk core |
Implements org.sleuthkit.datamodel.Content.
Definition at line 527 of file AbstractContent.java.
References org.sleuthkit.datamodel.SleuthkitCase.getBlackboardArtifactsCount().
long org.sleuthkit.datamodel.AbstractContent.getArtifactsCount | ( | ARTIFACT_TYPE | type | ) | throws TskCoreException |
Definition at line 532 of file AbstractContent.java.
References org.sleuthkit.datamodel.SleuthkitCase.getBlackboardArtifactsCount().
List<Content> org.sleuthkit.datamodel.AbstractContent.getChildren | ( | ) | throws TskCoreException |
Gets all children of this abstract content, if any.
TskCoreException | if there was an error querying the case database. |
Implements org.sleuthkit.datamodel.Content.
Definition at line 191 of file AbstractContent.java.
References org.sleuthkit.datamodel.AbstractContent.getSleuthkitCase().
Referenced by org.sleuthkit.datamodel.FileSystem.getRootDirectory(), and org.sleuthkit.datamodel.AbstractFile.listFiles().
int org.sleuthkit.datamodel.AbstractContent.getChildrenCount | ( | ) | throws TskCoreException |
Returns count of children objects. Note, this should be more efficient than getting children and counting them.
TskCoreException | if critical error occurred within tsk core |
Implements org.sleuthkit.datamodel.Content.
Definition at line 112 of file AbstractContent.java.
References org.sleuthkit.datamodel.AbstractContent.getSleuthkitCase().
Referenced by org.sleuthkit.datamodel.AbstractContent.equals(), and org.sleuthkit.datamodel.AbstractContent.hashCode().
List<Long> org.sleuthkit.datamodel.AbstractContent.getChildrenIds | ( | ) | throws TskCoreException |
Gets the object ids of objects, if any, that are children of this abstract content.
TskCoreException | if there was an error querying the case database. |
Implements org.sleuthkit.datamodel.Content.
Definition at line 211 of file AbstractContent.java.
References org.sleuthkit.datamodel.AbstractContent.getSleuthkitCase().
Content org.sleuthkit.datamodel.AbstractContent.getDataSource | ( | ) | throws TskCoreException |
Gets the root data source (image, virtual directory, etc.) of this content.
TskCoreException | if critical error occurred within tsk core |
Implements org.sleuthkit.datamodel.Content.
Definition at line 223 of file AbstractContent.java.
References org.sleuthkit.datamodel.Content.getDataSource(), and org.sleuthkit.datamodel.AbstractContent.getParent().
Referenced by org.sleuthkit.datamodel.FsContent.getDataSource(), org.sleuthkit.datamodel.VolumeSystem.getVolumeSystemHandle(), org.sleuthkit.datamodel.AbstractContent.newAnalysisResult(), org.sleuthkit.datamodel.AbstractContent.newDataArtifact(), and org.sleuthkit.datamodel.FileSystem.read().
BlackboardArtifact org.sleuthkit.datamodel.AbstractContent.getGenInfoArtifact | ( | ) | throws TskCoreException |
Return the TSK_GEN_INFO artifact for the file so that individual attributes can be added to it. Creates one if it does not already exist.
TskCoreException |
Implements org.sleuthkit.datamodel.Content.
Definition at line 450 of file AbstractContent.java.
Referenced by org.sleuthkit.datamodel.AbstractContent.getArtifacts(), org.sleuthkit.datamodel.AbstractContent.getGenInfoAttributes(), and org.sleuthkit.datamodel.AbstractContent.newArtifact().
BlackboardArtifact org.sleuthkit.datamodel.AbstractContent.getGenInfoArtifact | ( | boolean | create | ) | throws TskCoreException |
Return the TSK_GEN_INFO artifact for the file so that individual attributes can be added to it. If one does not create, behavior depends on the create argument.
create | If true, an artifact will be created if it does not already exist. |
TskCoreException |
Implements org.sleuthkit.datamodel.Content.
Definition at line 455 of file AbstractContent.java.
References org.sleuthkit.datamodel.SleuthkitCase.getBlackboardArtifacts(), org.sleuthkit.datamodel.AbstractContent.newDataArtifact(), and org.sleuthkit.datamodel.BlackboardArtifact.ARTIFACT_TYPE.TSK_GEN_INFO.
ArrayList<BlackboardAttribute> org.sleuthkit.datamodel.AbstractContent.getGenInfoAttributes | ( | ATTRIBUTE_TYPE | attr_type | ) | throws TskCoreException |
Definition at line 477 of file AbstractContent.java.
References org.sleuthkit.datamodel.BlackboardArtifact.getAttributes(), and org.sleuthkit.datamodel.AbstractContent.getGenInfoArtifact().
Set<String> org.sleuthkit.datamodel.AbstractContent.getHashSetNames | ( | ) | throws TskCoreException |
Get the names of all the hashsets that this content is in.
TskCoreException | if critical error occurred within tsk core |
Implements org.sleuthkit.datamodel.Content.
Definition at line 542 of file AbstractContent.java.
References org.sleuthkit.datamodel.AbstractContent.getArtifacts(), org.sleuthkit.datamodel.AbstractAttribute.getValueString(), org.sleuthkit.datamodel.BlackboardArtifact.ARTIFACT_TYPE.TSK_HASHSET_HIT, and org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_SET_NAME.
long org.sleuthkit.datamodel.AbstractContent.getId | ( | ) |
Returns the unique object ID that was assigned to it in the database. This is a Sleuth Kit database-assigned number.
Implements org.sleuthkit.datamodel.Content.
Definition at line 178 of file AbstractContent.java.
Referenced by org.sleuthkit.datamodel.AbstractFile.addAttributes(), org.sleuthkit.datamodel.SleuthkitCase.addCarvedFiles(), org.sleuthkit.datamodel.blackboardutils.attributes.MessageAttachments.FileAttachment.FileAttachment(), org.sleuthkit.datamodel.Image.getContentSize(), org.sleuthkit.datamodel.VirtualDirectory.getDataSource(), org.sleuthkit.datamodel.DerivedFile.getDerivedMethod(), org.sleuthkit.datamodel.AbstractFile.getFileSystem(), org.sleuthkit.datamodel.SleuthkitCase.getFileSystems(), org.sleuthkit.datamodel.LayoutFile.getNumParts(), org.sleuthkit.datamodel.AbstractFile.getRanges(), org.sleuthkit.datamodel.Pool.getSize(), org.sleuthkit.datamodel.SpecialDirectory.isDataSource(), org.sleuthkit.datamodel.LocalDirectory.isRoot(), org.sleuthkit.datamodel.AbstractContent.newDataArtifact(), org.sleuthkit.datamodel.AbstractFile.save(), org.sleuthkit.datamodel.Image.setDisplayName(), and org.sleuthkit.datamodel.SleuthkitCase.updateDerivedFile().
String org.sleuthkit.datamodel.AbstractContent.getName | ( | ) |
Get the name of this content object (does not include parent path)
Implements org.sleuthkit.datamodel.Content.
Definition at line 69 of file AbstractContent.java.
Referenced by org.sleuthkit.datamodel.SleuthkitCase.addCarvedFiles(), org.sleuthkit.datamodel.SleuthkitCase.addLocalDirectory(), org.sleuthkit.datamodel.SleuthkitCase.addVirtualDirectory(), org.sleuthkit.datamodel.AbstractFile.close(), org.sleuthkit.datamodel.blackboardutils.attributes.MessageAttachments.FileAttachment.FileAttachment(), org.sleuthkit.datamodel.LayoutFile.getNumParts(), org.sleuthkit.datamodel.Image.getSize(), org.sleuthkit.datamodel.AbstractContent.getUniquePath(), org.sleuthkit.datamodel.Volume.getUniquePath(), org.sleuthkit.datamodel.Image.getUniquePath(), org.sleuthkit.datamodel.AbstractFile.getUniquePath(), org.sleuthkit.datamodel.AbstractFile.save(), and org.sleuthkit.datamodel.SleuthkitCase.updateDerivedFile().
Content org.sleuthkit.datamodel.AbstractContent.getParent | ( | ) | throws TskCoreException |
TskCoreException |
Implements org.sleuthkit.datamodel.Content.
Definition at line 126 of file AbstractContent.java.
References org.sleuthkit.datamodel.SleuthkitCase.getContentById(), and org.sleuthkit.datamodel.AbstractContent.getParentId().
Referenced by org.sleuthkit.datamodel.AbstractContent.getDataSource(), org.sleuthkit.datamodel.Pool.getSize(), org.sleuthkit.datamodel.AbstractContent.getUniquePath(), org.sleuthkit.datamodel.Volume.getUniquePath(), org.sleuthkit.datamodel.LocalDirectory.isRoot(), org.sleuthkit.datamodel.Volume.read(), org.sleuthkit.datamodel.AbstractContent.toString(), and org.sleuthkit.datamodel.SleuthkitCase.updateDerivedFile().
Optional<Long> org.sleuthkit.datamodel.AbstractContent.getParentId | ( | ) | throws TskCoreException |
Returns the parent object id of the content or empty if no parent can be identified.
TskCoreException |
Definition at line 153 of file AbstractContent.java.
Referenced by org.sleuthkit.datamodel.AbstractContent.getParent().
SleuthkitCase org.sleuthkit.datamodel.AbstractContent.getSleuthkitCase | ( | ) |
Gets handle of SleuthkitCase to which this content belongs
Definition at line 305 of file AbstractContent.java.
Referenced by org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addAttachments(), org.sleuthkit.datamodel.AbstractFile.addAttributes(), org.sleuthkit.datamodel.LocalFilesDataSource.getAcquisitionDetails(), org.sleuthkit.datamodel.Image.getAcquisitionDetails(), org.sleuthkit.datamodel.LocalFilesDataSource.getAcquisitionToolName(), org.sleuthkit.datamodel.Image.getAcquisitionToolName(), org.sleuthkit.datamodel.LocalFilesDataSource.getAcquisitionToolSettings(), org.sleuthkit.datamodel.Image.getAcquisitionToolSettings(), org.sleuthkit.datamodel.LocalFilesDataSource.getAcquisitionToolVersion(), org.sleuthkit.datamodel.Image.getAcquisitionToolVersion(), org.sleuthkit.datamodel.AbstractFile.getAttributes(), org.sleuthkit.datamodel.VolumeSystem.getChildren(), org.sleuthkit.datamodel.Pool.getChildren(), org.sleuthkit.datamodel.AbstractContent.getChildren(), org.sleuthkit.datamodel.Volume.getChildren(), org.sleuthkit.datamodel.Image.getChildren(), org.sleuthkit.datamodel.AbstractContent.getChildrenCount(), org.sleuthkit.datamodel.VolumeSystem.getChildrenIds(), org.sleuthkit.datamodel.Pool.getChildrenIds(), org.sleuthkit.datamodel.AbstractContent.getChildrenIds(), org.sleuthkit.datamodel.Volume.getChildrenIds(), org.sleuthkit.datamodel.Image.getChildrenIds(), org.sleuthkit.datamodel.AbstractFile.getDataSource(), org.sleuthkit.datamodel.LocalFilesDataSource.getDateAdded(), org.sleuthkit.datamodel.Image.getDateAdded(), org.sleuthkit.datamodel.DerivedFile.getDerivedMethod(), org.sleuthkit.datamodel.AbstractFile.getFileSystem(), org.sleuthkit.datamodel.Image.getFileSystems(), org.sleuthkit.datamodel.LocalFilesDataSource.getHost(), org.sleuthkit.datamodel.Image.getHost(), org.sleuthkit.datamodel.Image.getImageHandle(), org.sleuthkit.datamodel.Image.getMd5(), org.sleuthkit.datamodel.FsContent.getParentDirectory(), org.sleuthkit.datamodel.AbstractFile.getRanges(), org.sleuthkit.datamodel.Image.getSha1(), org.sleuthkit.datamodel.Image.getSha256(), org.sleuthkit.datamodel.AbstractContent.hasChildren(), org.sleuthkit.datamodel.AbstractFile.save(), org.sleuthkit.datamodel.LocalFilesDataSource.setAcquisitionDetails(), org.sleuthkit.datamodel.Image.setAcquisitionDetails(), org.sleuthkit.datamodel.LocalFilesDataSource.setAcquisitionToolDetails(), org.sleuthkit.datamodel.Image.setAcquisitionToolDetails(), org.sleuthkit.datamodel.LocalFilesDataSource.setDisplayName(), org.sleuthkit.datamodel.Image.setDisplayName(), org.sleuthkit.datamodel.Image.setMD5(), org.sleuthkit.datamodel.Image.setSha1(), org.sleuthkit.datamodel.Image.setSha256(), and org.sleuthkit.datamodel.Image.setSizes().
String org.sleuthkit.datamodel.AbstractContent.getUniquePath | ( | ) | throws TskCoreException |
Implements org.sleuthkit.datamodel.Content.
Definition at line 79 of file AbstractContent.java.
References org.sleuthkit.datamodel.AbstractContent.getName(), org.sleuthkit.datamodel.AbstractContent.getParent(), and org.sleuthkit.datamodel.Content.getUniquePath().
Referenced by org.sleuthkit.datamodel.AbstractContent.toString().
boolean org.sleuthkit.datamodel.AbstractContent.hasChildren | ( | ) | throws TskCoreException |
Returns true if the content object has children objects. Note, this should be more efficient than getting children and checking it empty.
TskCoreException | if critical error occurred within tsk core |
Implements org.sleuthkit.datamodel.Content.
Definition at line 100 of file AbstractContent.java.
References org.sleuthkit.datamodel.AbstractContent.getSleuthkitCase().
int org.sleuthkit.datamodel.AbstractContent.hashCode | ( | ) |
Definition at line 336 of file AbstractContent.java.
References org.sleuthkit.datamodel.AbstractContent.getChildrenCount().
AnalysisResultAdded org.sleuthkit.datamodel.AbstractContent.newAnalysisResult | ( | BlackboardArtifact.Type | artifactType, |
Score | score, | ||
String | conclusion, | ||
String | configuration, | ||
String | justification, | ||
Collection< BlackboardAttribute > | attributesList | ||
) | throws TskCoreException |
Create and add an analysis result associated with this content.
artifactType | Type of analysis result artifact to create. |
score | Score associated with this analysis. |
conclusion | Conclusion from the analysis, may be empty. |
configuration | Configuration element associated with this analysis, may be empty. |
justification | Justification |
attributesList | Additional attributes to attach to this analysis result artifact. |
TskCoreException | if critical error occurred within tsk core. |
Implements org.sleuthkit.datamodel.Content.
Definition at line 368 of file AbstractContent.java.
References org.sleuthkit.datamodel.SleuthkitCase.beginTransaction(), org.sleuthkit.datamodel.SleuthkitCase.CaseDbTransaction.commit(), org.sleuthkit.datamodel.SleuthkitCase.getBlackboard(), org.sleuthkit.datamodel.AbstractContent.getDataSource(), org.sleuthkit.datamodel.Content.getId(), org.sleuthkit.datamodel.Blackboard.newAnalysisResult(), and org.sleuthkit.datamodel.SleuthkitCase.CaseDbTransaction.rollback().
Referenced by org.sleuthkit.datamodel.AbstractContent.newArtifact().
AnalysisResultAdded org.sleuthkit.datamodel.AbstractContent.newAnalysisResult | ( | BlackboardArtifact.Type | artifactType, |
Score | score, | ||
String | conclusion, | ||
String | configuration, | ||
String | justification, | ||
Collection< BlackboardAttribute > | attributesList, | ||
long | dataSourceId | ||
) | throws TskCoreException |
Create and add an analysis result associated with this content.
artifactType | Type of analysis result artifact to create. |
score | Score associated with this analysis. |
conclusion | Conclusion from the analysis, may be empty. |
configuration | Configuration element associated with this analysis, may be empty. |
justification | Justification |
attributesList | Additional attributes to attach to this analysis result artifact. |
dataSourceId | The data source for the analysis result |
TskCoreException | if critical error occurred within tsk core. |
Implements org.sleuthkit.datamodel.Content.
Definition at line 384 of file AbstractContent.java.
References org.sleuthkit.datamodel.SleuthkitCase.beginTransaction(), org.sleuthkit.datamodel.SleuthkitCase.CaseDbTransaction.commit(), org.sleuthkit.datamodel.SleuthkitCase.getBlackboard(), org.sleuthkit.datamodel.Blackboard.newAnalysisResult(), and org.sleuthkit.datamodel.SleuthkitCase.CaseDbTransaction.rollback().
BlackboardArtifact org.sleuthkit.datamodel.AbstractContent.newArtifact | ( | int | artifactTypeID | ) | throws TskCoreException |
Create and add an artifact associated with this content to the blackboard
artifactTypeID | id of the artifact type (if the id doesn't already exist an exception will be thrown) |
TskCoreException | if critical error occurred within tsk core |
Implements org.sleuthkit.datamodel.Content.
Definition at line 348 of file AbstractContent.java.
References org.sleuthkit.datamodel.AnalysisResultAdded.getAnalysisResult(), org.sleuthkit.datamodel.Blackboard.getArtifactType(), org.sleuthkit.datamodel.SleuthkitCase.getBlackboard(), org.sleuthkit.datamodel.AbstractContent.getGenInfoArtifact(), org.sleuthkit.datamodel.AbstractContent.newAnalysisResult(), org.sleuthkit.datamodel.AbstractContent.newDataArtifact(), org.sleuthkit.datamodel.Score.SCORE_UNKNOWN, and org.sleuthkit.datamodel.BlackboardArtifact.ARTIFACT_TYPE.TSK_GEN_INFO.
Referenced by org.sleuthkit.datamodel.AbstractContent.newArtifact().
BlackboardArtifact org.sleuthkit.datamodel.AbstractContent.newArtifact | ( | BlackboardArtifact.ARTIFACT_TYPE | type | ) | throws TskCoreException |
Create and add an artifact associated with this content to the blackboard
type | artifact enum tyoe |
TskCoreException | if critical error occurred within tsk core |
Implements org.sleuthkit.datamodel.Content.
Definition at line 417 of file AbstractContent.java.
References org.sleuthkit.datamodel.AbstractContent.newArtifact().
DataArtifact org.sleuthkit.datamodel.AbstractContent.newDataArtifact | ( | BlackboardArtifact.Type | artifactType, |
Collection< BlackboardAttribute > | attributesList, | ||
Long | osAccountId | ||
) | throws TskCoreException |
Create and add a data artifact associated with this content.
artifactType | Type of analysis result artifact to create. |
attributesList | Additional attributes to attach to this data artifact. |
osAccountId | The OS account id associated with the artifact. May be null. |
TskCoreException | If a critical error occurred within tsk core. |
Implements org.sleuthkit.datamodel.Content.
Definition at line 400 of file AbstractContent.java.
References org.sleuthkit.datamodel.SleuthkitCase.getBlackboard(), org.sleuthkit.datamodel.AbstractContent.getDataSource(), org.sleuthkit.datamodel.AbstractContent.getId(), and org.sleuthkit.datamodel.Blackboard.newDataArtifact().
Referenced by org.sleuthkit.datamodel.AbstractContent.getGenInfoArtifact(), org.sleuthkit.datamodel.AbstractContent.newArtifact(), and org.sleuthkit.datamodel.AbstractContent.newDataArtifact().
DataArtifact org.sleuthkit.datamodel.AbstractContent.newDataArtifact | ( | BlackboardArtifact.Type | artifactType, |
Collection< BlackboardAttribute > | attributesList, | ||
Long | osAccountId, | ||
long | dataSourceId | ||
) | throws TskCoreException |
Create and add a data artifact associated with this content.
artifactType | Type of analysis result artifact to create. |
attributesList | Additional attributes to attach to this data artifact. |
osAccountId | The OS account id associated with the artifact. May be null. |
dataSourceId | The data source id of the artifact |
TskCoreException | If a critical error occurred within tsk core. |
Implements org.sleuthkit.datamodel.Content.
Definition at line 405 of file AbstractContent.java.
References org.sleuthkit.datamodel.SleuthkitCase.getBlackboard(), and org.sleuthkit.datamodel.Blackboard.newDataArtifact().
DataArtifact org.sleuthkit.datamodel.AbstractContent.newDataArtifact | ( | BlackboardArtifact.Type | artifactType, |
Collection< BlackboardAttribute > | attributesList | ||
) | throws TskCoreException |
Create and add a data artifact associated with this abstract file. This method creates the data artifact with the os account id associated with this abstract file if one exists.
artifactType | Type of data artifact to create. |
attributesList | Additional attributes to attach to this data artifact. |
TskCoreException | If a critical error occurred within tsk core. |
Implements org.sleuthkit.datamodel.Content.
Definition at line 410 of file AbstractContent.java.
References org.sleuthkit.datamodel.AbstractContent.newDataArtifact().
String org.sleuthkit.datamodel.AbstractContent.toString | ( | ) |
Definition at line 556 of file AbstractContent.java.
String org.sleuthkit.datamodel.AbstractContent.toString | ( | boolean | preserveState | ) |
Definition at line 560 of file AbstractContent.java.
References org.sleuthkit.datamodel.Content.getId(), org.sleuthkit.datamodel.AbstractContent.getParent(), and org.sleuthkit.datamodel.AbstractContent.getUniquePath().
|
protected |
Definition at line 51 of file AbstractContent.java.
|
static |
Definition at line 45 of file AbstractContent.java.
Referenced by org.sleuthkit.datamodel.AbstractContent.AbstractContent(), org.sleuthkit.datamodel.AbstractFile.getFileSystem(), and org.sleuthkit.datamodel.LocalFile.LocalFile().
Copyright © 2011-2021 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.