com.atlassian.jira.imports.project.parser
Interface ProjectRoleActorParser

All Known Implementing Classes:
ProjectRoleActorParserImpl

public interface ProjectRoleActorParser

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

Since:
v3.13

Field Summary
static java.lang.String PROJECT_ROLE_ACTOR_ENTITY_NAME
          Defines the element name that the parser will handle.
 
Method Summary
 EntityRepresentation getEntityRepresentation(ExternalProjectRoleActor projectRoleActor)
          Gets an EntityRepresentation that contains the correct attributes based on the populated fields in the provided ProjectRoleActor.
 ExternalProjectRoleActor parse(java.util.Map attributes)
          Transforms a set of attributes into an ExternalProjectRoleActor.
 

Field Detail

PROJECT_ROLE_ACTOR_ENTITY_NAME

static final java.lang.String PROJECT_ROLE_ACTOR_ENTITY_NAME
Defines the element name that the parser will handle.

See Also:
Constant Field Values
Method Detail

parse

ExternalProjectRoleActor parse(java.util.Map attributes)
                               throws ParseException
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:
a populated ExternalProjectRoleActor, never null.
Throws:
ParseException - If the attributes are invalid.

getEntityRepresentation

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.


Copyright © 2002-2010 Atlassian. All Rights Reserved.