|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
BugzillaImportBean
,
MantisImportBean
Constructor Summary | |
ImportUtils()
|
Method Summary | |
static int |
createOrFindIssueType(java.lang.String name,
int nextIssueTypeId,
java.lang.String description,
java.lang.String iconUrl)
Creates a new issue type (if it doesn't already exist). |
static org.ofbiz.core.entity.GenericValue |
createOrFindNumberCustomField(java.lang.String customFieldName,
java.lang.String defaultValue)
Create a numeric customfield |
static int |
createOrFindResolution(java.lang.String name,
int nextResolutionId,
java.lang.String description)
Creates a new resolution (if it doesn't already exist). |
static org.ofbiz.core.entity.GenericValue |
createOrFindSelectListCustomField(java.lang.String customFieldName,
java.util.List values,
java.lang.String defaultValue)
Create a drop-down list customfield. |
static org.ofbiz.core.entity.GenericValue |
createOrFindStringCustomField(java.lang.String customFieldName,
java.lang.String defaultValue)
Create a short text customfield |
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 |
Constructor Detail |
public ImportUtils()
Method Detail |
public static void setSubvertSecurityScheme(boolean subvert)
Other classes may alter their behaviour based on the value you pass.
subvert
- Whether to subvert the scheme or not.ManagerFactory.getPermissionManager()
public static boolean isSubvertSecurityScheme()
public static void setIndexIssues(boolean index)
public static void setEnableNotifications(boolean enable)
public static boolean isEnableNotifications()
public static boolean isIndexIssues()
public static org.ofbiz.core.entity.GenericValue createOrFindSelectListCustomField(java.lang.String customFieldName, java.util.List values, java.lang.String defaultValue) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
public static org.ofbiz.core.entity.GenericValue createOrFindNumberCustomField(java.lang.String customFieldName, java.lang.String defaultValue) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
public static org.ofbiz.core.entity.GenericValue createOrFindStringCustomField(java.lang.String customFieldName, java.lang.String defaultValue) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
public static int createOrFindResolution(java.lang.String name, int nextResolutionId, java.lang.String description) throws org.ofbiz.core.entity.GenericEntityException
name
- eg. "Obsolete", "More Info Needed",.nextResolutionId
- A unique (eg 100+) id for this custom resolutiondescription
- Resolution description
org.ofbiz.core.entity.GenericEntityException
public static int createOrFindIssueType(java.lang.String name, int nextIssueTypeId, java.lang.String description, java.lang.String iconUrl) throws org.ofbiz.core.entity.GenericEntityException
name
- eg. "Obsolete", "More Info Needed",.nextIssueTypeId
- A unique (eg 100+) id for this new issue typedescription
- Issue type description
org.ofbiz.core.entity.GenericEntityException
public static java.lang.String stripHTMLStrings(java.lang.String str)
str
- Text with HTML (eg .. links).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |