public class Requirement extends Object
Modifier and Type | Field and Description |
---|---|
private String |
applinkDisplayUrl
The applink display url.
|
private String |
applinkId
The applink ID.
|
private String |
applinkName
The applink name.
|
private Integer |
baselineNumber
The version
|
private String |
genericUrl
The generic url of the requirement,
relative to the target application.
|
private String |
htmlExcerpt
The HTML excerpt
|
static String |
JSON_TYPE |
private String |
key
The requirement key itself
|
private boolean |
outOfSync
True if the requirement's links or html are desynchronized with Confluence
|
private String |
relationship
Relationship to the Jira issue
|
private String |
spaceKey
The space key.
|
private String |
textExcerpt
The HTML excerpt, once its text was extracted
|
Constructor and Description |
---|
Requirement() |
Requirement(String applinkId,
String spaceKey,
String key,
Integer baselineNumber) |
Requirement(String spaceKey,
String key,
String genericUrl,
String htmlExcerpt)
A basic builder.
|
Requirement(String applinkId,
String applinkName,
String applinkDisplayUrl,
String spaceKey,
String key,
Integer baselineNumber,
String textExcerpt,
String htmlExcerpt,
boolean outOfSync)
Build a bean with all its information.
|
public static final String JSON_TYPE
private String applinkId
private String applinkName
private String applinkDisplayUrl
private String genericUrl
private String spaceKey
private String key
private Integer baselineNumber
private String htmlExcerpt
private String textExcerpt
private String relationship
private boolean outOfSync
public Requirement()
public Requirement(String applinkId, String applinkName, String applinkDisplayUrl, String spaceKey, String key, Integer baselineNumber, String textExcerpt, String htmlExcerpt, boolean outOfSync)
htmlExcerpt
- The HTML. You MUST ensure you've called the antisamy() on this before setting.textExcerpt
- The text. Directly deduced from the htmlExcerpt.public Requirement(String spaceKey, String key, String genericUrl, String htmlExcerpt)
htmlExcerpt
- The excerpt. You must ensure you've called the antisamy() on the HTML before setting the value.public static Requirement buildWithoutExcerpt(AORemoteRequirement requirement)
public String getUrl()
public String getKeyAndVersion()
public com.google.common.collect.ImmutableList<Serializable> getPrimaryKey()
public static String canonicalKeyOf(AORemoteRequirement requirement)
public String getCanonicalKey()
public static Requirement parseCanonicalKey(String canonicalKey)
canonicalKey
- the key, in the format returned by getCanonicalKey()
.public static boolean isEqualAndIgnoreExcerpt(Requirement requirement, AORemoteRequirement aoRemoteRequirement)
public String getApplinkId()
public void setApplinkId(String applinkId)
public String getApplinkName()
public void setApplinkName(String applinkName)
public String getApplinkDisplayUrl()
public void setApplinkDisplayUrl(String applinkDisplayUrl)
public boolean hasApplink()
public String getGenericUrl()
public void setGenericUrl(String genericUrl)
public String getSpaceKey()
public void setSpaceKey(String spaceKey)
public String getKey()
public void setKey(String key)
public String getHtmlExcerpt()
public void setHtmlExcerpt(String htmlExcerpt)
public String getRelationship()
public Requirement setRelationship(String relationship)
public boolean isOutOfSync()
public void setOutOfSync(boolean outOfSync)
public Integer getBaselineNumber()
public void setBaselineNumber(Integer baselineNumber)
public String getTextExcerpt()
public void setTextExcerpt(String textExcerpt)
Copyright © 2022 Requirement Yogi. All rights reserved.