public class

GlobalIdFactory

extends Object
java.lang.Object
   ↳ com.atlassian.jira.plugin.viewissue.issuelink.GlobalIdFactory

Class Overview

Factory for encoding and decoding globalIds.

Summary

Public Constructors
GlobalIdFactory()
Public Methods
static Map<StringString> decode(String globalId, List<String> keys)
Decode the given String to a Map of values.
static String encode(List<String> keys, Map<StringString> values)
Encode the given Map of values to a String.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GlobalIdFactory ()

Public Methods

public static Map<StringString> decode (String globalId, List<String> keys)

Decode the given String to a Map of values.

Parameters
globalId the String to decode
keys the order in which the keys should appear. If the keys are not in this order an IllegalArgumentException is thrown.
Returns
  • a Map of values

public static String encode (List<String> keys, Map<StringString> values)

Encode the given Map of values to a String.

Parameters
keys the order in which the keys will be appended to the result
values the values to encode as a String
Returns
  • a String