Skip to content
Snippets Groups Projects
Commit 17680aa2 authored by eugene.livis's avatar eugene.livis
Browse files

Added comments

parent b2f39352
No related branches found
No related tags found
No related merge requests found
...@@ -11994,7 +11994,9 @@ public List<ContentTag> getContentTagsByTagName(TagName tagName) throws TskCoreE ...@@ -11994,7 +11994,9 @@ public List<ContentTag> getContentTagsByTagName(TagName tagName) throws TskCoreE
} }
   
/** /**
* Gets content tags by tag name, for the given data source. * Gets content tags by tag name, for the given data source. This includes
* looking up all Content objects that have entries in tsk_files, as well as
* all OsAccounts (which do not have entries in tsk_files).
* *
* @param tagName The tag name of interest. * @param tagName The tag name of interest.
* @param dsObjId data source object id * @param dsObjId data source object id
...@@ -12013,6 +12015,11 @@ public List<ContentTag> getContentTagsByTagName(TagName tagName, long dsObjId) t ...@@ -12013,6 +12015,11 @@ public List<ContentTag> getContentTagsByTagName(TagName tagName, long dsObjId) t
try { try {
connection = connections.getConnection(); connection = connections.getConnection();
// NOTE: Getting all content tags by tag name for a given data source includes
// looking up all Content objects that have entries in tsk_files, as well as
// all OsAccounts. OsAccounts do not have corresponding entries in tsk_files so we
// have to do a separate query to look them up, and then do a UNION of the results.
// "SELECT content_tags.tag_id, content_tags.obj_id, content_tags.tag_name_id, content_tags.comment, content_tags.begin_byte_offset, content_tags.end_byte_offset, tag_names.display_name, tag_names.description, tag_names.color, tag_names.knownStatus, tag_names.tag_set_id, tsk_examiners.login_name " // "SELECT content_tags.tag_id, content_tags.obj_id, content_tags.tag_name_id, content_tags.comment, content_tags.begin_byte_offset, content_tags.end_byte_offset, tag_names.display_name, tag_names.description, tag_names.color, tag_names.knownStatus, tag_names.tag_set_id, tsk_examiners.login_name "
// + "FROM content_tags " // + "FROM content_tags "
// + "JOIN tsk_os_accounts acc ON content_tags.obj_id = acc.os_account_obj_id " // + "JOIN tsk_os_accounts acc ON content_tags.obj_id = acc.os_account_obj_id "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment