com.atlassian.jira.bc.dataimport
Enum DataImportService.ImportError

java.lang.Object
  extended by java.lang.Enum<DataImportService.ImportError>
      extended by com.atlassian.jira.bc.dataimport.DataImportService.ImportError
All Implemented Interfaces:
Serializable, Comparable<DataImportService.ImportError>
Enclosing interface:
DataImportService

public static enum DataImportService.ImportError
extends Enum<DataImportService.ImportError>

Returned by the DataImportService.ImportResult from a call to DataImportService.doImport(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.bc.dataimport.DataImportService.ImportValidationResult, TaskProgressSink)


Enum Constant Summary
CUSTOM_PATH_EXCEPTION
          The index or attachment path provided by the data was not valid.
NONE
          No error happened.
UPGRADE_EXCEPTION
          An error occurred when the data was being upgraded to the latest version.
V1_LICENSE_EXCEPTION
          The license provided (either via the input or from the data) was an old version 1 license that is no longer compatible with this version of JIRA.
 
Method Summary
static DataImportService.ImportError valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataImportService.ImportError[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final DataImportService.ImportError NONE
No error happened.


UPGRADE_EXCEPTION

public static final DataImportService.ImportError UPGRADE_EXCEPTION
An error occurred when the data was being upgraded to the latest version.


V1_LICENSE_EXCEPTION

public static final DataImportService.ImportError V1_LICENSE_EXCEPTION
The license provided (either via the input or from the data) was an old version 1 license that is no longer compatible with this version of JIRA.


CUSTOM_PATH_EXCEPTION

public static final DataImportService.ImportError CUSTOM_PATH_EXCEPTION
The index or attachment path provided by the data was not valid. Meaning it didn't exist or the directory was not writable.

Method Detail

values

public static DataImportService.ImportError[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DataImportService.ImportError c : DataImportService.ImportError.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DataImportService.ImportError valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2002-2012 Atlassian. All Rights Reserved.