Class UserAssociationParserImpl
java.lang.Object
com.atlassian.jira.imports.project.parser.UserAssociationParserImpl
- All Implemented Interfaces:
UserAssociationParser
- Since:
- v3.13
-
Field Summary
Fields inherited from interface com.atlassian.jira.imports.project.parser.UserAssociationParser
ASSOCIATION_TYPE_VOTE_ISSUE, ASSOCIATION_TYPE_WATCH_ISSUE, USER_ASSOCIATION_ENTITY_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseVoter(Map attributes) Parses the voter data from the backup XML.parseWatcher(Map attributes) Parses the watcher data from the backup XML.
-
Constructor Details
-
UserAssociationParserImpl
public UserAssociationParserImpl()
-
-
Method Details
-
parseVoter
Description copied from interface:UserAssociationParserParses the voter data from the backup XML.- Specified by:
parseVoterin interfaceUserAssociationParser- 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
- Throws:
ParseException- if the required fields are not found in the attributes map
-
parseWatcher
Description copied from interface:UserAssociationParserParses the watcher data from the backup XML.- Specified by:
parseWatcherin interfaceUserAssociationParser- 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
- Throws:
ParseException- if the required fields are not found in the attributes map
-