public interface

ProjectRoleActorParser

com.atlassian.jira.imports.project.parser.ProjectRoleActorParser
Known Indirect Subclasses

Class Overview

Converts projectRoleActor xml in a JIRA backup to an object representation.

Summary

Constants
String PROJECT_ROLE_ACTOR_ENTITY_NAME Defines the element name that the parser will handle.
Public Methods
EntityRepresentation getEntityRepresentation(ExternalProjectRoleActor projectRoleActor)
Gets an EntityRepresentation that contains the correct attributes based on the populated fields in the provided ProjectRoleActor.
ExternalProjectRoleActor parse(Map attributes)
Transforms a set of attributes into an ExternalProjectRoleActor.

Constants

public static final String PROJECT_ROLE_ACTOR_ENTITY_NAME

Defines the element name that the parser will handle.

Constant Value: "ProjectRoleActor"

Public Methods

public EntityRepresentation getEntityRepresentation (ExternalProjectRoleActor projectRoleActor)

Gets an EntityRepresentation that contains the correct attributes based on the populated fields in the provided ProjectRoleActor.

Parameters
projectRoleActor contains the populated fields that will end up in the EntityRepresentations map.
Returns
  • an EntityRepresentation that can be persisted using OfBiz.

public ExternalProjectRoleActor parse (Map attributes)

Transforms a set of attributes into an ExternalProjectRoleActor.

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
Throws
ParseException If the attributes are invalid.