Autopsy
4.9.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits Closeable.
Classes | |
class | TagNameAlreadyExistsException |
Public Member Functions | |
BlackboardArtifactTag | addBlackboardArtifactTag (BlackboardArtifact artifact, TagName tagName) throws TskCoreException |
BlackboardArtifactTag | addBlackboardArtifactTag (BlackboardArtifact artifact, TagName tagName, String comment) throws TskCoreException |
ContentTag | addContentTag (Content content, TagName tagName) throws TskCoreException |
ContentTag | addContentTag (Content content, TagName tagName, String comment) throws TskCoreException |
ContentTag | addContentTag (Content content, TagName tagName, String comment, long beginByteOffset, long endByteOffset) throws TskCoreException |
synchronized TagName | addTagName (String displayName) throws TagNameAlreadyExistsException, TskCoreException |
synchronized TagName | addTagName (String displayName, String description) throws TagNameAlreadyExistsException, TskCoreException |
synchronized TagName | addTagName (String displayName, String description, TagName.HTML_COLOR color) throws TagNameAlreadyExistsException, TskCoreException |
synchronized TagName | addTagName (String displayName, String description, TagName.HTML_COLOR color, TskData.FileKnown knownStatus) throws TagNameAlreadyExistsException, TskCoreException |
void | close () throws IOException |
void | deleteBlackboardArtifactTag (BlackboardArtifactTag tag) throws TskCoreException |
void | deleteContentTag (ContentTag tag) throws TskCoreException |
List< BlackboardArtifactTag > | getAllBlackboardArtifactTags () throws TskCoreException |
List< ContentTag > | getAllContentTags () throws TskCoreException |
List< TagName > | getAllTagNames () throws TskCoreException |
BlackboardArtifactTag | getBlackboardArtifactTagByTagID (long tagId) throws TskCoreException |
List< BlackboardArtifactTag > | getBlackboardArtifactTagsByArtifact (BlackboardArtifact artifact) throws TskCoreException |
List< BlackboardArtifactTag > | getBlackboardArtifactTagsByTagName (TagName tagName) throws TskCoreException |
List< BlackboardArtifactTag > | getBlackboardArtifactTagsByTagName (TagName tagName, long dsObjId) throws TskCoreException |
long | getBlackboardArtifactTagsCountByTagName (TagName tagName) throws TskCoreException |
long | getBlackboardArtifactTagsCountByTagName (TagName tagName, long dsObjId) throws TskCoreException |
long | getBlackboardArtifactTagsCountByTagNameForUser (TagName tagName, String userName) throws TskCoreException |
long | getBlackboardArtifactTagsCountByTagNameForUser (TagName tagName, long dsObjId, String userName) throws TskCoreException |
ContentTag | getContentTagByTagID (long tagId) throws TskCoreException |
List< ContentTag > | getContentTagsByContent (Content content) throws TskCoreException |
List< ContentTag > | getContentTagsByTagName (TagName tagName) throws TskCoreException |
List< ContentTag > | getContentTagsByTagName (TagName tagName, long dsObjId) throws TskCoreException |
long | getContentTagsCountByTagName (TagName tagName) throws TskCoreException |
long | getContentTagsCountByTagName (TagName tagName, long dsObjId) throws TskCoreException |
long | getContentTagsCountByTagNameForUser (TagName tagName, String userName) throws TskCoreException |
long | getContentTagsCountByTagNameForUser (TagName tagName, long dsObjId, String userName) throws TskCoreException |
Map< String, TagName > | getDisplayNamesToTagNamesMap () throws TskCoreException |
List< TagName > | getTagNamesInUse () throws TskCoreException |
List< TagName > | getTagNamesInUse (long dsObjId) throws TskCoreException |
List< TagName > | getTagNamesInUseForUser (String userName) throws TskCoreException |
List< TagName > | getTagNamesInUseForUser (long dsObjId, String userName) throws TskCoreException |
boolean | tagNameExists (String tagDisplayName) |
Static Public Member Functions | |
static boolean | containsIllegalCharacters (String tagDisplayName) |
static List< String > | getNotableTagDisplayNames () |
static String | getNotableTagLabel () |
static List< String > | getStandardTagNames () |
static Set< String > | getTagDisplayNames () throws TskCoreException |
Private Attributes | |
final SleuthkitCase | caseDb |
Static Private Attributes | |
static final Logger | LOGGER = Logger.getLogger(TagsManager.class.getName()) |
A per case Autopsy service that manages the addition of content and artifact tags to the case database.
Definition at line 47 of file TagsManager.java.
BlackboardArtifactTag org.sleuthkit.autopsy.casemodule.services.TagsManager.addBlackboardArtifactTag | ( | BlackboardArtifact | artifact, |
TagName | tagName | ||
) | throws TskCoreException |
Tags an artifact.
artifact | The artifact to tag. |
tagName | The representation of the desired tag type in the case database, which can be obtained by calling getTagNames and/or addTagName. |
TskCoreException | If there is an error adding the tag to the case database. |
Definition at line 622 of file TagsManager.java.
Referenced by org.sleuthkit.autopsy.actions.AddBlackboardArtifactTagAction.addTag(), and org.sleuthkit.autopsy.actions.ReplaceBlackboardArtifactTagAction.replaceTag().
BlackboardArtifactTag org.sleuthkit.autopsy.casemodule.services.TagsManager.addBlackboardArtifactTag | ( | BlackboardArtifact | artifact, |
TagName | tagName, | ||
String | comment | ||
) | throws TskCoreException |
Tags an artifact.
artifact | The artifact to tag. |
tagName | The representation of the desired tag type in the case database, which can be obtained by calling getTagNames and/or addTagName. |
comment | A comment to store with the tag. |
TskCoreException | If there is an error adding the tag to the case database. |
Definition at line 640 of file TagsManager.java.
References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.notifyBlackBoardArtifactTagAdded().
ContentTag org.sleuthkit.autopsy.casemodule.services.TagsManager.addContentTag | ( | Content | content, |
TagName | tagName | ||
) | throws TskCoreException |
Tags a content object.
content | The content to tag. |
tagName | The representation of the desired tag type in the case database, which can be obtained by calling getTagNames and/or addTagName. |
TskCoreException | If there is an error adding the tag to the case database. |
Definition at line 383 of file TagsManager.java.
Referenced by org.sleuthkit.autopsy.casemodule.services.TagsManager.addContentTag(), org.sleuthkit.autopsy.actions.AddContentTagAction.addTag(), and org.sleuthkit.autopsy.actions.ReplaceContentTagAction.replaceTag().
ContentTag org.sleuthkit.autopsy.casemodule.services.TagsManager.addContentTag | ( | Content | content, |
TagName | tagName, | ||
String | comment | ||
) | throws TskCoreException |
Tags a content object.
content | The content to tag. |
tagName | The representation of the desired tag type in the case database, which can be obtained by calling getTagNames and/or addTagName. |
comment | A comment to store with the tag. |
TskCoreException | If there is an error adding the tag to the case database. |
Definition at line 401 of file TagsManager.java.
References org.sleuthkit.autopsy.casemodule.services.TagsManager.addContentTag().
ContentTag org.sleuthkit.autopsy.casemodule.services.TagsManager.addContentTag | ( | Content | content, |
TagName | tagName, | ||
String | comment, | ||
long | beginByteOffset, | ||
long | endByteOffset | ||
) | throws TskCoreException |
Tags a content object or a section of a content object.
content | The content to tag. |
tagName | The representation of the desired tag type in the case database, which can be obtained by calling getTagNames and/or addTagName. |
comment | A comment to store with the tag. |
beginByteOffset | Designates the beginning of a tagged section. |
endByteOffset | Designates the end of a tagged section. |
TskCoreException | If there is an error adding the tag to the case database. |
Definition at line 421 of file TagsManager.java.
References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.notifyContentTagAdded().
synchronized TagName org.sleuthkit.autopsy.casemodule.services.TagsManager.addTagName | ( | String | displayName | ) | throws TagNameAlreadyExistsException, TskCoreException |
Adds a tag name entry to the case database and adds a corresponding tag type to the current user's custom tag types.
displayName | The display name for the new tag type. |
TagNameAlreadyExistsException | If the tag name already exists in the case database. |
TskCoreException | If there is an error adding the tag name to the case database. |
Definition at line 293 of file TagsManager.java.
Referenced by org.sleuthkit.autopsy.casemodule.services.TagsManager.addTagName(), org.sleuthkit.autopsy.actions.AddTagAction.TagMenu.getAndAddTag(), and org.sleuthkit.autopsy.actions.GetTagNameDialog.okButtonActionPerformed().
synchronized TagName org.sleuthkit.autopsy.casemodule.services.TagsManager.addTagName | ( | String | displayName, |
String | description | ||
) | throws TagNameAlreadyExistsException, TskCoreException |
Adds a tag name entry to the case database and adds a corresponding tag type to the current user's custom tag types.
displayName | The display name for the new tag type. |
description | The description for the new tag type. |
TagNameAlreadyExistsException | If the tag name already exists in the case database. |
TskCoreException | If there is an error adding the tag name to the case database. |
Definition at line 312 of file TagsManager.java.
References org.sleuthkit.autopsy.casemodule.services.TagsManager.addTagName().
synchronized TagName org.sleuthkit.autopsy.casemodule.services.TagsManager.addTagName | ( | String | displayName, |
String | description, | ||
TagName.HTML_COLOR | color | ||
) | throws TagNameAlreadyExistsException, TskCoreException |
Adds a tag name entry to the case database and adds a corresponding tag type to the current user's custom tag types.
displayName | The display name for the new tag type. |
description | The description for the new tag type. |
color | The color to associate with the new tag type. |
TagNameAlreadyExistsException | If the tag name already exists. |
TskCoreException | If there is an error adding the tag name to the case database. |
Definition at line 331 of file TagsManager.java.
References org.sleuthkit.autopsy.casemodule.services.TagsManager.addTagName().
synchronized TagName org.sleuthkit.autopsy.casemodule.services.TagsManager.addTagName | ( | String | displayName, |
String | description, | ||
TagName.HTML_COLOR | color, | ||
TskData.FileKnown | knownStatus | ||
) | throws TagNameAlreadyExistsException, TskCoreException |
Adds a tag name entry to the case database and adds a corresponding tag type to the current user's custom tag types.
displayName | The display name for the new tag type. |
description | The description for the new tag type. |
color | The color to associate with the new tag type. |
knownStatus | The knownStatus to be used for the tag when correlating on the tagged item |
TagNameAlreadyExistsException | If the tag name already exists. |
TskCoreException | If there is an error adding the tag name to the case database. |
Definition at line 352 of file TagsManager.java.
void org.sleuthkit.autopsy.casemodule.services.TagsManager.close | ( | ) | throws IOException |
Closes the tags manager.
IOException | If there is a problem closing the tags manager. |
Definition at line 866 of file TagsManager.java.
|
static |
Tests whether or not a given tag display name contains an illegal character.
tagDisplayName | Display name of a tag. |
Definition at line 60 of file TagsManager.java.
Referenced by org.sleuthkit.autopsy.actions.GetTagNameDialog.okButtonActionPerformed().
void org.sleuthkit.autopsy.casemodule.services.TagsManager.deleteBlackboardArtifactTag | ( | BlackboardArtifactTag | tag | ) | throws TskCoreException |
Deletes an artifact tag.
tag | The tag to delete. |
TskCoreException | If there is an error deleting the tag from the case database. |
Definition at line 658 of file TagsManager.java.
References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.notifyBlackBoardArtifactTagDeleted().
Referenced by org.sleuthkit.autopsy.actions.DeleteBlackboardArtifactTagAction.actionPerformed(), org.sleuthkit.autopsy.actions.DeleteFileBlackboardArtifactTagAction.deleteTag(), and org.sleuthkit.autopsy.actions.ReplaceBlackboardArtifactTagAction.replaceTag().
void org.sleuthkit.autopsy.casemodule.services.TagsManager.deleteContentTag | ( | ContentTag | tag | ) | throws TskCoreException |
Deletes a content tag.
tag | The tag to delete. |
TskCoreException | If there is an error deleting the tag from the case database. |
Definition at line 440 of file TagsManager.java.
References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.notifyContentTagDeleted().
Referenced by org.sleuthkit.autopsy.actions.DeleteContentTagAction.actionPerformed(), org.sleuthkit.autopsy.actions.DeleteFileContentTagAction.deleteTag(), and org.sleuthkit.autopsy.actions.ReplaceContentTagAction.replaceTag().
List<BlackboardArtifactTag> org.sleuthkit.autopsy.casemodule.services.TagsManager.getAllBlackboardArtifactTags | ( | ) | throws TskCoreException |
Gets all artifact tags for the current case.
TskCoreException | If there is an error getting the tags from the case database. |
Definition at line 675 of file TagsManager.java.
Referenced by org.sleuthkit.autopsy.timeline.db.EventsRepository.DBPopulationWorker.call().
List<ContentTag> org.sleuthkit.autopsy.casemodule.services.TagsManager.getAllContentTags | ( | ) | throws TskCoreException |
Gets all content tags for the current case.
TskCoreException | If there is an error getting the tags from the case database. |
Definition at line 457 of file TagsManager.java.
Referenced by org.sleuthkit.autopsy.timeline.db.EventsRepository.DBPopulationWorker.call().
List<TagName> org.sleuthkit.autopsy.casemodule.services.TagsManager.getAllTagNames | ( | ) | throws TskCoreException |
Gets a list of all tag names currently in the case database.
TskCoreException | If there is an error querying the case database. |
Definition at line 153 of file TagsManager.java.
Referenced by org.sleuthkit.autopsy.casemodule.services.TagsManager.getTagDisplayNames().
BlackboardArtifactTag org.sleuthkit.autopsy.casemodule.services.TagsManager.getBlackboardArtifactTagByTagID | ( | long | tagId | ) | throws TskCoreException |
Gets an artifact tag by tag id.
tagId | The tag id of interest. |
TskCoreException | If there is an error getting the tag from the case database. |
Definition at line 775 of file TagsManager.java.
List<BlackboardArtifactTag> org.sleuthkit.autopsy.casemodule.services.TagsManager.getBlackboardArtifactTagsByArtifact | ( | BlackboardArtifact | artifact | ) | throws TskCoreException |
Gets artifact tags for a particular artifact.
artifact | The artifact of interest. |
TskCoreException | If there is an error getting the tags from the case database. |
Definition at line 825 of file TagsManager.java.
Referenced by org.sleuthkit.autopsy.datamodel.BlackboardArtifactNode.addTagProperty(), org.sleuthkit.autopsy.datamodel.BlackboardArtifactNode.getAllTagsFromDatabase(), org.sleuthkit.autopsy.timeline.datamodel.FilteredEventsModel.handleArtifactTagDeleted(), org.sleuthkit.autopsy.timeline.db.EventsRepository.DBPopulationWorker.insertEventForArtifact(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.BlackboardTagTask.run(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.TagDefinitionChangeTask.run(), and org.sleuthkit.autopsy.timeline.ui.listvew.ListTimeline.TaggedCell.updateItem().
List<BlackboardArtifactTag> org.sleuthkit.autopsy.casemodule.services.TagsManager.getBlackboardArtifactTagsByTagName | ( | TagName | tagName | ) | throws TskCoreException |
Gets artifact tags by tag name.
tagName | The representation of the desired tag type in the case database, which can be obtained by calling getTagNames and/or addTagName. |
TskCoreException | If there is an error getting the tags from the case database. |
Definition at line 792 of file TagsManager.java.
Referenced by org.sleuthkit.autopsy.datamodel.Tags.BlackboardArtifactTagNodeFactory.createKeys(), and org.sleuthkit.autopsy.casemodule.services.TagsManager.getBlackboardArtifactTagsCountByTagNameForUser().
List<BlackboardArtifactTag> org.sleuthkit.autopsy.casemodule.services.TagsManager.getBlackboardArtifactTagsByTagName | ( | TagName | tagName, |
long | dsObjId | ||
) | throws TskCoreException |
Gets artifact tags by tag name, for specified data source.
tagName | The representation of the desired tag type in the case database, which can be obtained by calling getTagNames and/or addTagName. |
dsObjId | data source object id |
TskCoreException | If there is an error getting the tags from the case database. |
Definition at line 810 of file TagsManager.java.
long org.sleuthkit.autopsy.casemodule.services.TagsManager.getBlackboardArtifactTagsCountByTagName | ( | TagName | tagName | ) | throws TskCoreException |
Gets an artifact tags count by tag name.
tagName | The representation of the desired tag type in the case database, which can be obtained by calling getTagNames and/or addTagName. |
TskCoreException | If there is an error getting the tags count from the case database. |
Definition at line 691 of file TagsManager.java.
Referenced by org.sleuthkit.autopsy.datamodel.Tags.TagNameNode.updateDisplayName(), and org.sleuthkit.autopsy.datamodel.Tags.BlackboardArtifactTagTypeNode.updateDisplayName().
long org.sleuthkit.autopsy.casemodule.services.TagsManager.getBlackboardArtifactTagsCountByTagName | ( | TagName | tagName, |
long | dsObjId | ||
) | throws TskCoreException |
Gets an artifact tags count by tag name, for the given data source.
tagName | The representation of the desired tag type in the case database, which can be obtained by calling getTagNames and/or addTagName. |
dsObjId | data source object id |
TskCoreException | If there is an error getting the tags count from the case database. |
Definition at line 734 of file TagsManager.java.
long org.sleuthkit.autopsy.casemodule.services.TagsManager.getBlackboardArtifactTagsCountByTagNameForUser | ( | TagName | tagName, |
String | userName | ||
) | throws TskCoreException |
Gets an artifact tags count by tag name for a specific user.
tagName | The representation of the desired tag type in the case database, which can be obtained by calling getTagNames and/or addTagName. |
userName | - the user name that you want to get tags for |
TskCoreException | If there is an error getting the tags count from the case database. |
Definition at line 709 of file TagsManager.java.
References org.sleuthkit.autopsy.casemodule.services.TagsManager.getBlackboardArtifactTagsByTagName().
Referenced by org.sleuthkit.autopsy.datamodel.Tags.TagNameNode.updateDisplayName(), and org.sleuthkit.autopsy.datamodel.Tags.BlackboardArtifactTagTypeNode.updateDisplayName().
long org.sleuthkit.autopsy.casemodule.services.TagsManager.getBlackboardArtifactTagsCountByTagNameForUser | ( | TagName | tagName, |
long | dsObjId, | ||
String | userName | ||
) | throws TskCoreException |
Gets an artifact tags count by tag name, for the given data source and user.
tagName | The representation of the desired tag type in the case database, which can be obtained by calling getTagNames and/or addTagName. |
dsObjId | data source object id |
userName | - the user name that you want to get tags for |
TskCoreException | If there is an error getting the tags count from the case database. |
Definition at line 754 of file TagsManager.java.
References org.sleuthkit.autopsy.casemodule.services.TagsManager.getBlackboardArtifactTagsByTagName().
ContentTag org.sleuthkit.autopsy.casemodule.services.TagsManager.getContentTagByTagID | ( | long | tagId | ) | throws TskCoreException |
Gets a content tag by tag id.
tagId | The tag id of interest. |
TskCoreException | If there is an error getting the tag from the case database. |
Definition at line 558 of file TagsManager.java.
List<ContentTag> org.sleuthkit.autopsy.casemodule.services.TagsManager.getContentTagsByContent | ( | Content | content | ) | throws TskCoreException |
Gets content tags count by content.
content | The content of interest. |
TskCoreException | If there is an error getting the tags from the case database. |
Definition at line 605 of file TagsManager.java.
Referenced by org.sleuthkit.autopsy.datamodel.BlackboardArtifactNode.addTagProperty(), org.sleuthkit.autopsy.datamodel.BlackboardArtifactNode.getAllTagsFromDatabase(), org.sleuthkit.autopsy.report.TableReportGenerator.ArtifactData.getOrderedRowDataAsStrings(), org.sleuthkit.autopsy.timeline.datamodel.FilteredEventsModel.handleContentTagDeleted(), org.sleuthkit.autopsy.timeline.db.EventsRepository.DBPopulationWorker.insertEventsForFile(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.ContentTagTask.run(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.TagDefinitionChangeTask.run(), and org.sleuthkit.autopsy.timeline.ui.listvew.ListTimeline.TaggedCell.updateItem().
List<ContentTag> org.sleuthkit.autopsy.casemodule.services.TagsManager.getContentTagsByTagName | ( | TagName | tagName | ) | throws TskCoreException |
Gets content tags by tag name.
tagName | The tag name of interest. |
TskCoreException | If there is an error getting the tags from the case database. |
Definition at line 573 of file TagsManager.java.
Referenced by org.sleuthkit.autopsy.datamodel.Tags.ContentTagNodeFactory.createKeys(), org.sleuthkit.autopsy.report.taggedhashes.AddTaggedHashesToHashDb.generateReport(), and org.sleuthkit.autopsy.casemodule.services.TagsManager.getContentTagsCountByTagNameForUser().
List<ContentTag> org.sleuthkit.autopsy.casemodule.services.TagsManager.getContentTagsByTagName | ( | TagName | tagName, |
long | dsObjId | ||
) | throws TskCoreException |
Gets content tags by tag name, for the given data source.
tagName | The tag name of interest. |
dsObjId | data source object id |
TskCoreException | If there is an error getting the tags from the case database. |
Definition at line 590 of file TagsManager.java.
long org.sleuthkit.autopsy.casemodule.services.TagsManager.getContentTagsCountByTagName | ( | TagName | tagName | ) | throws TskCoreException |
Gets content tags count by tag name.
tagName | The representation of the desired tag type in the case database, which can be obtained by calling getTagNames and/or addTagName. |
TskCoreException | If there is an error getting the tags count from the case database. |
Definition at line 473 of file TagsManager.java.
Referenced by org.sleuthkit.autopsy.datamodel.Tags.TagNameNode.updateDisplayName(), and org.sleuthkit.autopsy.datamodel.Tags.ContentTagTypeNode.updateDisplayName().
long org.sleuthkit.autopsy.casemodule.services.TagsManager.getContentTagsCountByTagName | ( | TagName | tagName, |
long | dsObjId | ||
) | throws TskCoreException |
Gets content tags count by tag name, for the given data source
tagName | The representation of the desired tag type in the case database, which can be obtained by calling getTagNames and/or addTagName. |
dsObjId | data source object id |
TskCoreException | If there is an error getting the tags count from the case database. |
Definition at line 517 of file TagsManager.java.
long org.sleuthkit.autopsy.casemodule.services.TagsManager.getContentTagsCountByTagNameForUser | ( | TagName | tagName, |
String | userName | ||
) | throws TskCoreException |
Gets content tags count by tag name for the specified user.
tagName | The representation of the desired tag type in the case database, which can be obtained by calling getTagNames and/or addTagName. |
userName | - the user name that you want to get tags for |
TskCoreException | If there is an error getting the tags count from the case database. |
Definition at line 491 of file TagsManager.java.
References org.sleuthkit.autopsy.casemodule.services.TagsManager.getContentTagsByTagName().
Referenced by org.sleuthkit.autopsy.datamodel.Tags.TagNameNode.updateDisplayName(), and org.sleuthkit.autopsy.datamodel.Tags.ContentTagTypeNode.updateDisplayName().
long org.sleuthkit.autopsy.casemodule.services.TagsManager.getContentTagsCountByTagNameForUser | ( | TagName | tagName, |
long | dsObjId, | ||
String | userName | ||
) | throws TskCoreException |
Gets content tags count by tag name, for the given data source and user
tagName | The representation of the desired tag type in the case database, which can be obtained by calling getTagNames and/or addTagName. |
dsObjId | data source object id |
userName | - the user name that you want to get tags for |
TskCoreException | If there is an error getting the tags count from the case database. |
Definition at line 537 of file TagsManager.java.
References org.sleuthkit.autopsy.casemodule.services.TagsManager.getContentTagsByTagName().
Map<String, TagName> org.sleuthkit.autopsy.casemodule.services.TagsManager.getDisplayNamesToTagNamesMap | ( | ) | throws TskCoreException |
Gets a map of tag display names to tag name entries in the case database. It has keys for the display names of the standard tag types, the current user's custom tag types, and the tags in the case database. The value for a given key will be null if the corresponding tag type is defined, but a tag name entry has not yet added to the case database. In that case, addTagName may be called to add the tag name entry.
TskCoreException | if there is an error querying the case database. |
Order is important here. The keys (display names) for the current user's custom tag types are added to the map first, with null TagName values. If tag name entries exist for those keys, loading of the tag names from the database supplies the missing values. Standard tag names are added during the initialization of the case database.
Note that creating the map on demand increases the probability that the display names of newly added custom tag types and the display names of tags added to a multi-user case by other users appear in the map.
Definition at line 255 of file TagsManager.java.
Referenced by org.sleuthkit.autopsy.actions.AddBookmarkTagAction.actionPerformed(), org.sleuthkit.autopsy.actions.GetTagNameDialog.display(), org.sleuthkit.autopsy.actions.GetTagNameAndCommentDialog.display(), org.sleuthkit.autopsy.actions.AddTagAction.TagMenu.getAndAddTag(), org.sleuthkit.autopsy.actions.GetTagNameDialog.okButtonActionPerformed(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.TagDefinitionChangeTask.run(), and org.sleuthkit.autopsy.casemodule.services.TagsManager.tagNameExists().
|
static |
|
static |
Get String of text which is used to label tags as notable to the user.
Definition at line 80 of file TagsManager.java.
Referenced by org.sleuthkit.autopsy.actions.GetTagNameAndCommentDialog.display(), and org.sleuthkit.autopsy.report.TableReportGenerator.ArtifactData.getOrderedRowDataAsStrings().
|
static |
Returns a list of names of standard/predefined tags
Definition at line 129 of file TagsManager.java.
Referenced by org.sleuthkit.autopsy.actions.GetTagNameAndCommentDialog.display().
|
static |
Gets the set of display names of the currently available tag types. This includes the display names of the standard tag types, the current user's custom tag types, and the tags in the case database of the current case (if there is a current case).
TskCoreException | If there is a current case and there is an error querying the case database for tag types. |
Definition at line 95 of file TagsManager.java.
References org.sleuthkit.autopsy.casemodule.services.TagsManager.getAllTagNames(), org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), org.sleuthkit.autopsy.casemodule.Case.getServices(), and org.sleuthkit.autopsy.casemodule.services.Services.getTagsManager().
List<TagName> org.sleuthkit.autopsy.casemodule.services.TagsManager.getTagNamesInUse | ( | ) | throws TskCoreException |
Gets a list of all tag names currently in use in the case database for tagging content or artifacts.
TskCoreException | If there is an error querying the case database. |
Definition at line 165 of file TagsManager.java.
Referenced by org.sleuthkit.autopsy.datamodel.Tags.TagNameNodeFactory.createKeys().
List<TagName> org.sleuthkit.autopsy.casemodule.services.TagsManager.getTagNamesInUse | ( | long | dsObjId | ) | throws TskCoreException |
Selects all of the rows from the tag_names table in the case database for which there is at least one matching row in the content_tags or blackboard_artifact_tags tables, for the given data source object id.
dsObjId | data source object id |
TskCoreException |
Definition at line 208 of file TagsManager.java.
List<TagName> org.sleuthkit.autopsy.casemodule.services.TagsManager.getTagNamesInUseForUser | ( | String | userName | ) | throws TskCoreException |
Gets a list of all tag names currently in use in the case database for tagging content or artifacts by the specified user.
userName | - the user name that you want to get tags for |
TskCoreException | If there is an error querying the case database. |
Definition at line 179 of file TagsManager.java.
Referenced by org.sleuthkit.autopsy.datamodel.Tags.TagNameNodeFactory.createKeys().
List<TagName> org.sleuthkit.autopsy.casemodule.services.TagsManager.getTagNamesInUseForUser | ( | long | dsObjId, |
String | userName | ||
) | throws TskCoreException |
Selects all of the rows from the tag_names table in the case database for which there is at least one matching row in the content_tags or blackboard_artifact_tags tables, for the given data source object id and user.
dsObjId | data source object id |
userName | - the user name that you want to get tags for |
TskCoreException |
Definition at line 225 of file TagsManager.java.
boolean org.sleuthkit.autopsy.casemodule.services.TagsManager.tagNameExists | ( | String | tagDisplayName | ) |
Checks whether a tag name with a given display name exists in the case database.
tagDisplayName | The display name. |
Definition at line 848 of file TagsManager.java.
References org.sleuthkit.autopsy.casemodule.services.TagsManager.getDisplayNamesToTagNamesMap().
|
private |
Definition at line 50 of file TagsManager.java.
|
staticprivate |
Definition at line 49 of file TagsManager.java.
Copyright © 2012-2018 Basis Technology. Generated on: Tue Dec 18 2018
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.