Publicize tag API for use with reporting

This commit is contained in:
Devin148 2012-12-10 11:12:31 -05:00
parent 446447fa8b
commit f93a1b0443

View File

@ -122,7 +122,7 @@ public class Tags {
* Get a list of all the tag names. * Get a list of all the tag names.
* @return a list of all tag names. * @return a list of all tag names.
*/ */
static String[] getTagNames() { public static String[] getTagNames() {
Set<String> names = new HashSet<String>(); Set<String> names = new HashSet<String>();
//List<String> names = new ArrayList<String>(); //List<String> names = new ArrayList<String>();
try { try {
@ -153,7 +153,7 @@ public class Tags {
* @param name of the requested tags * @param name of the requested tags
* @return a list of all tag artifacts with the given name * @return a list of all tag artifacts with the given name
*/ */
static List<BlackboardArtifact> getTagsByName(String name) { public static List<BlackboardArtifact> getTagsByName(String name) {
try { try {
Case currentCase = Case.getCurrentCase(); Case currentCase = Case.getCurrentCase();
SleuthkitCase skCase = currentCase.getSleuthkitCase(); SleuthkitCase skCase = currentCase.getSleuthkitCase();