Package com.atlassian.jira.util
Class ImportUtils
java.lang.Object
com.atlassian.jira.util.ImportUtils
Utility code originally written to support various importers. Contains methods for bypassing security schemes,
reindexing issues, creating new issue types, resolutions, custom fields, and various other useful bits of code.
It's used by JIM (JIRA Importers Plugin)
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic booleanstatic voidsetEnableNotifications(boolean enable) static voidsetIndexIssues(boolean index) static voidsetSubvertSecurityScheme(boolean subvert) Whether to subvert the security scheme or not.static StringstripHTMLStrings(String str) Remove any HTML from text contents.
-
Method Details
-
setSubvertSecurityScheme
public static void setSubvertSecurityScheme(boolean subvert) Whether to subvert the security scheme or not. This is done on a thread local basis, so the subversion only occurs for this thread / request.Other classes may alter their behaviour based on the value you pass.
- Parameters:
subvert- Whether to subvert the scheme or not.
-
isSubvertSecurityScheme
public static boolean isSubvertSecurityScheme() -
setIndexIssues
public static void setIndexIssues(boolean index) -
setEnableNotifications
public static void setEnableNotifications(boolean enable) -
isEnableNotifications
public static boolean isEnableNotifications() -
isIndexIssues
public static boolean isIndexIssues() -
stripHTMLStrings
Remove any HTML from text contents.- Parameters:
str- Text with HTML (eg <a href="...">..</a> links).- Returns:
- str without HTML
-