Class WorklogParserImpl
java.lang.Object
com.atlassian.jira.imports.project.parser.WorklogParserImpl
- All Implemented Interfaces:
WorklogParser
- Since:
- v3.13
-
Field Summary
Fields inherited from interface com.atlassian.jira.imports.project.parser.WorklogParser
WORKLOG_ENTITY_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEntityRepresentation(ExternalWorklog worklog) Gets an EntityRepresentation that contains the correct attributes based on the populated fields in the provided worklog.Parses the worklog data from the backup XML.
-
Constructor Details
-
WorklogParserImpl
public WorklogParserImpl()
-
-
Method Details
-
parse
Description copied from interface:WorklogParserParses the worklog data from the backup XML.- Specified by:
parsein interfaceWorklogParser- Parameters:
attributes- is a map of key value pairs that represent the attributes of an ExternalWorklog. The following attributes are required, otherwise a ParseException will be thrown:
- id (required)
- issue (required)
- Returns:
- an ExternalWorklog if the attributes contain the required fields
- Throws:
ParseException- if the required fields are not found in the attributes map
-
getEntityRepresentation
Description copied from interface:WorklogParserGets an EntityRepresentation that contains the correct attributes based on the populated fields in the provided worklog.- Specified by:
getEntityRepresentationin interfaceWorklogParser- Parameters:
worklog- contains the populated fields that will end up in the EntityRepresentations map- Returns:
- an EntityRepresentation that can be persisted using OfBiz
-