-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f7f645
commit 97377ca
Showing
4 changed files
with
83 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
philter-services/src/main/java/ai/philterd/philter/services/RedactionHubFilterResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package ai.philterd.philter.services; | ||
|
||
import ai.philterd.phileas.model.objects.Explanation; | ||
import ai.philterd.phileas.model.responses.FilterResponse; | ||
|
||
import java.util.Map; | ||
|
||
public class RedactionHubFilterResponse extends FilterResponse { | ||
|
||
private final String signature; | ||
private final String indexedId; | ||
|
||
public RedactionHubFilterResponse(String filteredText, String context, String documentId, int piece, Explanation explanation, Map<String, String> attributes, String signature, String indexedId) { | ||
super(filteredText, context, documentId, piece, explanation, attributes); | ||
this.signature = signature; | ||
this.indexedId = indexedId; | ||
} | ||
|
||
public String getSignature() { | ||
return signature; | ||
} | ||
|
||
public String getIndexedId() { | ||
return indexedId; | ||
} | ||
|
||
} |
25 changes: 0 additions & 25 deletions
25
philter-services/src/main/java/ai/philterd/philter/services/SignedFilterResponse.java
This file was deleted.
Oops, something went wrong.