Skip to content
Snippets Groups Projects
Unverified Commit 9cba6b3a authored by Brian Carrier's avatar Brian Carrier Committed by GitHub
Browse files

Merge pull request #1332 from sleuthkit/comments

Updated Tag comments, expose dataSourceObjId for IG
parents cd73574b 50b7dbb3
Branches
No related tags found
Loading
...@@ -543,7 +543,7 @@ public Content getDataSource() throws TskCoreException { ...@@ -543,7 +543,7 @@ public Content getDataSource() throws TskCoreException {
* *
* @return The object id of the data source. * @return The object id of the data source.
*/ */
long getDataSourceObjectId() { public long getDataSourceObjectId() {
return dataSourceObjectId; return dataSourceObjectId;
} }
......
...@@ -29,8 +29,8 @@ public class ContentTag extends Tag { ...@@ -29,8 +29,8 @@ public class ContentTag extends Tag {
private final long endByteOffset; private final long endByteOffset;
// Clients of the org.sleuthkit.datamodel package should not directly create these objects. // Clients of the org.sleuthkit.datamodel package should not directly create these objects.
ContentTag(long id, Content content, TagName name, String comment, long beginByteOffset, long endByteOffset, String userName) { ContentTag(long tagID, Content content, TagName name, String comment, long beginByteOffset, long endByteOffset, String userName) {
super(id, name, comment, userName); super(tagID, name, comment, userName);
this.content = content; this.content = content;
this.beginByteOffset = beginByteOffset; this.beginByteOffset = beginByteOffset;
this.endByteOffset = endByteOffset; this.endByteOffset = endByteOffset;
......
...@@ -25,20 +25,25 @@ ...@@ -25,20 +25,25 @@
public abstract class Tag { public abstract class Tag {
static long ID_NOT_SET = -1; static long ID_NOT_SET = -1;
private long id = ID_NOT_SET; private long tagID = ID_NOT_SET;
private final TagName name; private final TagName name;
private final String comment; private final String comment;
private final String userName; private final String userName;
Tag(long id, TagName name, String comment, String userName) { Tag(long tagID, TagName name, String comment, String userName) {
this.id = id; this.tagID = tagID;
this.name = name; this.name = name;
this.comment = comment; this.comment = comment;
this.userName = userName; this.userName = userName;
} }
/**
* Get Tag ID (unique amongst tags)
*
* @return
*/
public long getId() { public long getId() {
return id; return tagID;
} }
public TagName getName() { public TagName getName() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment