com.atlassian.jira.imports.project.parser
Class ProjectRoleActorParserImpl
java.lang.Object
com.atlassian.jira.imports.project.parser.ProjectRoleActorParserImpl
- All Implemented Interfaces:
- ProjectRoleActorParser
public class ProjectRoleActorParserImpl
- extends Object
- implements ProjectRoleActorParser
- Since:
- v3.13
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectRoleActorParserImpl
public ProjectRoleActorParserImpl()
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.