public class

UserAssociationParserImpl

extends Object
implements UserAssociationParser
java.lang.Object
   ↳ com.atlassian.jira.imports.project.parser.UserAssociationParserImpl

Summary

[Expand]
Inherited Constants
From interface com.atlassian.jira.imports.project.parser.UserAssociationParser
Public Constructors
UserAssociationParserImpl()
Public Methods
ExternalVoter parseVoter(Map attributes)
Parses the voter data from the backup XML.
ExternalWatcher parseWatcher(Map attributes)
Parses the watcher data from the backup XML.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.imports.project.parser.UserAssociationParser

Public Constructors

public UserAssociationParserImpl ()

Public Methods

public ExternalVoter parseVoter (Map attributes)

Parses the voter data from the backup XML.

Parameters
attributes is a map of key value pairs that represent the attributes of an ExternalVoter. The parser will only create an ExternalVoter if the sinkNodeEntity attribute is provided an is 'Issue' AND the associationType attribute is provided and is 'VoteIssue'. The following attributes are required, otherwise a ParseException will be thrown:
  • sinkNodeId (represents issue id, required)
  • sourceName (represents voter, required)
Returns
  • an ExternalVoter if the attributes contain the required fields, null otherwise

public ExternalWatcher parseWatcher (Map attributes)

Parses the watcher data from the backup XML.

Parameters
attributes is a map of key value pairs that represent the attributes of an ExternalWatcher. The parser will only create an ExternalWatcher if the sinkNodeEntity attribute is provided an is 'Issue' AND the associationType attribute is provided and is 'WatchIssue'. The following attributes are required, otherwise a ParseException will be thrown:
  • sinkNodeId (represents issue id, required)
  • sourceName (represents watcher, required)
Returns
  • an ExternalWatcher if the attributes contain the required fields, null otherwise