Class ProjectRoleActorParserImpl
java.lang.Object
com.atlassian.jira.imports.project.parser.ProjectRoleActorParserImpl
- All Implemented Interfaces:
ProjectRoleActorParser
- Since:
- v3.13
-
Field Summary
Fields inherited from interface com.atlassian.jira.imports.project.parser.ProjectRoleActorParser
PROJECT_ROLE_ACTOR_ENTITY_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEntityRepresentation
(ExternalProjectRoleActor projectRoleActor) Gets an EntityRepresentation that contains the correct attributes based on the populated fields in the provided ProjectRoleActor.Transforms a set of attributes into anExternalProjectRoleActor
.
-
Constructor Details
-
ProjectRoleActorParserImpl
public ProjectRoleActorParserImpl()
-
-
Method Details
-
parse
Description copied from interface:ProjectRoleActorParser
Transforms a set of attributes into anExternalProjectRoleActor
.- Specified by:
parse
in interfaceProjectRoleActorParser
- Parameters:
attributes
- is a map of key value pairs that represent the attributes of an ExternalProjectRoleActor. The following attributes are required, otherwise a ParseException will be thrown:
- id (required)
- projectroleid (required)
- roletype (required)
- roletypeparameter (required)
- Returns:
- a populated
ExternalProjectRoleActor
, never null. - Throws:
ParseException
- If the attributes are invalid.
-
getEntityRepresentation
Description copied from interface:ProjectRoleActorParser
Gets an EntityRepresentation that contains the correct attributes based on the populated fields in the provided ProjectRoleActor.- Specified by:
getEntityRepresentation
in interfaceProjectRoleActorParser
- Parameters:
projectRoleActor
- contains the populated fields that will end up in the EntityRepresentations map.- Returns:
- an EntityRepresentation that can be persisted using OfBiz.
-