com.atlassian.jira.imports.project.core.ProjectImportResults |
Known Indirect Subclasses |
Used to store the results of the actual importing of the project. This includes statistics on what was created and any error messages that may have been generated during the import.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns false if the number of allowed errors have been exceeded, true otherwise
| |||||||||||
Adds the given Error message to the error list.
| |||||||||||
Add an import result.
| |||||||||||
Returns the number of created attachments.
| |||||||||||
Returns a list of all the errors that were added to this result object.
| |||||||||||
Returns the number of attachments the import expected it could create before doing the actual import.
| |||||||||||
Returns the number of issues the import expected it could create before doing the actual import.
| |||||||||||
Returns the number of users the import expected it could create before doing the actual import.
| |||||||||||
Returns the count of all groups added to the specified role
| |||||||||||
Returns the
I18nHelper associated with this Project Import. | |||||||||||
This uses the start time and the end time to determine how long the actual import took.
| |||||||||||
Returns the created/updated project that the import imported into.
| |||||||||||
Returns the number of created issues.
| |||||||||||
Get the results.
| |||||||||||
Returns the role names of all roles that have had a group or user added to it.
| |||||||||||
Returns the number of created users.
| |||||||||||
Returns the count of all users added to the specified role
| |||||||||||
Adds to the count of created attachments.
| |||||||||||
Adds to the count of created issues.
| |||||||||||
Should be called to increment the count of groups added to a specific role.
| |||||||||||
Should be called to increment the count of users added to a specific role.
| |||||||||||
Adds to the count of created users.
| |||||||||||
Returns true if the import completed all steps of the import, false otherwise.
| |||||||||||
The time, as milliseconds, that the import ended.
| |||||||||||
Should be called with true if all steps of the import were able to proceed (i.e.
| |||||||||||
Sets the imported project, this is the project that exists in JIRA.
|
Returns false if the number of allowed errors have been exceeded, true otherwise
Adds the given Error message to the error list.
If the error limit is reached, then we throw an AbortImportException
to stop the import.
error | the error message. |
---|
Add an import result. This method is provided to enable plugins to supply counts of items imported. Plugins should try to display only a small amount of the most relevant information so as not to overwhelm the user and clutter the results.
count | Number of objects imported |
---|---|
msgKey | Key to a label message for the objects imported |
Returns the number of created attachments.
Returns a list of all the errors that were added to this result object.
Returns the number of attachments the import expected it could create before doing the actual import.
Returns the number of issues the import expected it could create before doing the actual import.
Returns the number of users the import expected it could create before doing the actual import.
Returns the count of all groups added to the specified role
roleName | the role you want the count for, this should be the role name as provided in the increment method |
---|
Returns the I18nHelper
associated with this Project Import.
This can be used to localise error messages before they are added in this ProjectImportResult.
I18nHelper
associated with this Project Import.
This uses the start time and the end time to determine how long the actual import took.
Returns the created/updated project that the import imported into.
Returns the number of created issues.
@Internal
classes and interfaces can not expect to be compatible with any version
other than the version they were compiled against (even minor version and milestone releases may break binary
compatibility with respect to @Internal
elements).
Get the results. The results consist of a Pair consisting of a resolved description and the number of those objects imported.
e.g.
Returns the role names of all roles that have had a group or user added to it.
Returns the number of created users.
Returns the count of all users added to the specified role
roleName | the role you want the count for, this should be the role name as provided in the increment method |
---|
Adds to the count of created attachments.
Adds to the count of created issues.
Should be called to increment the count of groups added to a specific role.
roleName | uniquely identifies the project role by its human readable name, this should not be the role id. |
---|
Should be called to increment the count of users added to a specific role.
roleName | uniquely identifies the project role by its human readable name, this should not be the role id. |
---|
Adds to the count of created users.
Returns true if the import completed all steps of the import, false otherwise. This method can return true and the getErrors can return errors. This will not return true if the errors went over the allowable threshold, and the Import was aborted.
The time, as milliseconds, that the import ended. This must be set in order to get the import duration.
endTime | the time the import has stopped in milliseconds |
---|
Should be called with true if all steps of the import were able to proceed (i.e. no AbortImportException was thrown).
importCompleted | true if completed, false otherwise. |
---|
Sets the imported project, this is the project that exists in JIRA.
importedProject | the imported project, this is the project that exists in JIRA. |
---|