com.atlassian.jira.util
Class ImportUtils

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

public class ImportUtils
extends java.lang.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.

See Also:
BugzillaImportBean, MantisImportBean

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 java.lang.String stripHTMLStrings(java.lang.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 java.lang.String stripHTMLStrings(java.lang.String str)
Remove any HTML from text contents.

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


Copyright © 2002-2010 Atlassian. All Rights Reserved.