com.atlassian.jira.imports.project.parser
Class ProjectRoleActorParserImpl

java.lang.Object
  extended by com.atlassian.jira.imports.project.parser.ProjectRoleActorParserImpl
All Implemented Interfaces:
ProjectRoleActorParser

public class ProjectRoleActorParserImpl
extends Object
implements ProjectRoleActorParser

Since:
v3.13

Field Summary
 
Fields inherited from interface com.atlassian.jira.imports.project.parser.ProjectRoleActorParser
PROJECT_ROLE_ACTOR_ENTITY_NAME
 
Constructor Summary
ProjectRoleActorParserImpl()
           
 
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(Map attributes)
          Transforms a set of attributes into an ExternalProjectRoleActor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectRoleActorParserImpl

public ProjectRoleActorParserImpl()
Method Detail

parse

public ExternalProjectRoleActor parse(Map attributes)
                               throws ParseException
Description copied from interface: ProjectRoleActorParser
Transforms a set of attributes into an ExternalProjectRoleActor.

Specified by:
parse in interface ProjectRoleActorParser
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

public EntityRepresentation getEntityRepresentation(ExternalProjectRoleActor projectRoleActor)
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 interface ProjectRoleActorParser
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-2012 Atlassian. All Rights Reserved.