Skip to content
Snippets Groups Projects
Commit 9fa154a4 authored by Kelly Kelly's avatar Kelly Kelly
Browse files

storing changes

parent 0ff9ba71
No related branches found
No related tags found
No related merge requests found
...@@ -130,7 +130,12 @@ public boolean isDataArtifactIngestModuleFactory() { ...@@ -130,7 +130,12 @@ public boolean isDataArtifactIngestModuleFactory() {
@Override @Override
public DataArtifactIngestModule createDataArtifactIngestModule(IngestModuleIngestJobSettings settings) { public DataArtifactIngestModule createDataArtifactIngestModule(IngestModuleIngestJobSettings settings) {
return new KwsDataArtifactIngestModule(); if (!(settings instanceof KeywordSearchJobSettings)) {
throw new IllegalArgumentException(NbBundle.getMessage(this.getClass(),
"KeywordSearchModuleFactory.createFileIngestModule.exception.msg"));
}
return new KwsDataArtifactIngestModule((KeywordSearchJobSettings) settings);
} }
@Override @Override
...@@ -140,7 +145,12 @@ public boolean isAnalysisResultIngestModuleFactory() { ...@@ -140,7 +145,12 @@ public boolean isAnalysisResultIngestModuleFactory() {
@Override @Override
public AnalysisResultIngestModule createAnalysisResultIngestModule(IngestModuleIngestJobSettings settings) { public AnalysisResultIngestModule createAnalysisResultIngestModule(IngestModuleIngestJobSettings settings) {
return new KwsAnalysisResultIngestModule(); if (!(settings instanceof KeywordSearchJobSettings)) {
throw new IllegalArgumentException(NbBundle.getMessage(this.getClass(),
"KeywordSearchModuleFactory.createFileIngestModule.exception.msg"));
}
return new KwsAnalysisResultIngestModule((KeywordSearchJobSettings) settings);
} }
} }
...@@ -41,7 +41,12 @@ public class KwsAnalysisResultIngestModule implements AnalysisResultIngestModule ...@@ -41,7 +41,12 @@ public class KwsAnalysisResultIngestModule implements AnalysisResultIngestModule
private static final int TSK_KEYWORD_HIT_TYPE_ID = BlackboardArtifact.Type.TSK_KEYWORD_HIT.getTypeID(); private static final int TSK_KEYWORD_HIT_TYPE_ID = BlackboardArtifact.Type.TSK_KEYWORD_HIT.getTypeID();
private IngestJobContext context; private IngestJobContext context;
private KeywordSearchService searchService; private KeywordSearchService searchService;
private final KeywordSearchJobSettings settings;
KwsAnalysisResultIngestModule(KeywordSearchJobSettings settings) {
this.settings = settings;
}
@Override @Override
public void startUp(IngestJobContext context) throws IngestModule.IngestModuleException { public void startUp(IngestJobContext context) throws IngestModule.IngestModuleException {
this.context = context; this.context = context;
......
...@@ -40,7 +40,12 @@ public class KwsDataArtifactIngestModule implements DataArtifactIngestModule { ...@@ -40,7 +40,12 @@ public class KwsDataArtifactIngestModule implements DataArtifactIngestModule {
private static final int TSK_ASSOCIATED_OBJECT_TYPE_ID = BlackboardArtifact.Type.TSK_ASSOCIATED_OBJECT.getTypeID(); private static final int TSK_ASSOCIATED_OBJECT_TYPE_ID = BlackboardArtifact.Type.TSK_ASSOCIATED_OBJECT.getTypeID();
private IngestJobContext context; private IngestJobContext context;
private KeywordSearchService searchService; private KeywordSearchService searchService;
private final KeywordSearchJobSettings settings;
KwsDataArtifactIngestModule(KeywordSearchJobSettings settings) {
this.settings = settings;
}
@Override @Override
public void startUp(IngestJobContext context) throws IngestModuleException { public void startUp(IngestJobContext context) throws IngestModuleException {
this.context = context; this.context = context;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment