public class EntityPropertyParserImpl extends Object implements EntityPropertyParser
ENTITY_PROPERTY_ENTITY_NAME
Constructor and Description |
---|
EntityPropertyParserImpl() |
Modifier and Type | Method and Description |
---|---|
EntityRepresentation |
getEntityRepresentation(ExternalEntityProperty entityProperty,
Long newEntityId)
Gets an EntityRepresentation that contains the correct attributes based on the populated fields in the provided
entity property.
|
ExternalEntityProperty |
parse(Map<String,String> attributes)
Parses the entity property data from the backup XML.
|
public ExternalEntityProperty parse(Map<String,String> attributes) throws ParseException
EntityPropertyParser
parse
in interface EntityPropertyParser
attributes
- is a map of key value pairs that represent the attributes of an ExternalEntityProperty. The
following attributes are required, otherwise a ParseException will be thrown:ParseException
- if the required fields are not found in the attributes mappublic EntityRepresentation getEntityRepresentation(ExternalEntityProperty entityProperty, Long newEntityId)
EntityPropertyParser
getEntityRepresentation
in interface EntityPropertyParser
entityProperty
- contains the populated fields that will end up in the EntityRepresentations mapnewEntityId
- new id for external entityCopyright © 2002-2015 Atlassian. All Rights Reserved.