Support legacy API

This commit is contained in:
eugene.livis 2024-04-10 16:00:39 -04:00
parent c84579f49f
commit 91fd4caee9

View File

@ -546,6 +546,22 @@ public class TagsManager implements Closeable {
return addTagName(displayName, description, color, TskData.TagType.SUSPICIOUS);
}
/**
*
* @param displayName
* @param description
* @param color
* @param knownStatus
* @return
* @throws org.sleuthkit.autopsy.casemodule.services.TagsManager.TagNameAlreadyExistsException
* @throws TskCoreException
* @deprecated addTagName(String displayName, String description, TagName.HTML_COLOR color, TskData.TagType tagType) should be used instead
*/
@Deprecated
public TagName addTagName(String displayName, String description, TagName.HTML_COLOR color, TskData.FileKnown knownStatus) throws TagNameAlreadyExistsException, TskCoreException {
return addTagName(displayName, description, color, TskData.TagType.convertFileKnownToTagType(knownStatus));
}
/**
* Adds a tag name entry to the case database and adds a corresponding tag
* type to the current user's custom tag types.