public interface UserAssociationParser
Modifier and Type | Field and Description |
---|---|
static String |
ASSOCIATION_TYPE_VOTE_ISSUE |
static String |
ASSOCIATION_TYPE_WATCH_ISSUE |
static String |
USER_ASSOCIATION_ENTITY_NAME |
Modifier and Type | Method and Description |
---|---|
ExternalVoter |
parseVoter(Map attributes)
Parses the voter data from the backup XML.
|
ExternalWatcher |
parseWatcher(Map attributes)
Parses the watcher data from the backup XML.
|
static final String USER_ASSOCIATION_ENTITY_NAME
static final String ASSOCIATION_TYPE_VOTE_ISSUE
static final String ASSOCIATION_TYPE_WATCH_ISSUE
ExternalVoter parseVoter(Map attributes) throws ParseException
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:ParseException
- if the required fields are not found in the attributes mapExternalWatcher parseWatcher(Map attributes) throws ParseException
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:ParseException
- if the required fields are not found in the attributes mapCopyright © 2002-2024 Atlassian. All Rights Reserved.