19 package org.sleuthkit.autopsy.keywordsearch;
21 import java.util.Date;
22 import java.util.List;
34 KeywordList(String name, Date created, Date modified, Boolean useForIngest, Boolean ingestMessages, List<Keyword> keywords,
boolean locked) {
44 KeywordList(String name, Date created, Date modified, Boolean useForIngest, Boolean ingestMessages, List<Keyword> keywords) {
52 KeywordList(List<Keyword> keywords) {
53 this(
"",
new Date(0),
new Date(0),
false,
false,
keywords,
false);
61 if (getClass() != obj.getClass()) {
65 if ((this.name == null) ? (other.
name != null) : !this.name.equals(other.
name)) {
81 Date getDateCreated() {
85 Date getDateModified() {
89 Boolean getUseForIngest() {
93 void setUseForIngest(
boolean use) {
94 this.useForIngest = use;
97 Boolean getIngestMessages() {
101 void setIngestMessages(
boolean ingestMessages) {
105 List<Keyword> getKeywords() {
109 boolean hasKeyword(Keyword keyword) {
110 return keywords.contains(keyword);
113 boolean hasKeyword(String keyword) {
115 for (Keyword k : keywords) {
116 if (k.getQuery().equals(keyword)) {
boolean equals(Object obj)