com.atlassian.jira.util
Class ImportUtils

java.lang.Object
  extended by com.atlassian.jira.util.ImportUtils

public class ImportUtils
extends Object

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
static boolean isEnableNotifications()
           
static boolean isIndexIssues()
           
static boolean isSubvertSecurityScheme()
           
static void setEnableNotifications(boolean enable)
           
static void setIndexIssues(boolean index)
           
static void setSubvertSecurityScheme(boolean subvert)
          Whether to subvert the security scheme or not.
static String stripHTMLStrings(String str)
          Remove any HTML from text contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.
See Also:
ManagerFactory.getPermissionManager()

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

public static String stripHTMLStrings(String str)
Remove any HTML from text contents.

Parameters:
str - Text with HTML (eg <a href="...">..</a> links).
Returns:
str without HTML


Copyright © 2002-2014 Atlassian. All Rights Reserved.