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 Date |
lastSynchronizationDate
Date of the last synchronization with Confluence
|
private Map<String,String> |
properties
The properties, read from 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
|
private Visibility |
visibility
Visibility of the requirement.
|
Constructor and Description |
---|
Requirement() |
Requirement(String applinkId,
String spaceKey,
String key,
Integer baselineNumber) |
Requirement(String applinkId,
String spaceKey,
String key,
Integer baselineNumber,
String textExcerpt,
String htmlExcerpt,
Date lastSynchronizationDate,
Visibility visibility)
Build a bean with all its information.
|
Requirement(String spaceKey,
String key,
String genericUrl,
String htmlExcerpt)
A basic builder.
|
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 relationship
private String htmlExcerpt
private String textExcerpt
private Date lastSynchronizationDate
@Internal private Map<String,String> properties
private Visibility visibility
public Requirement()
public Requirement(String applinkId, String spaceKey, String key, Integer baselineNumber, String textExcerpt, String htmlExcerpt, Date lastSynchronizationDate, Visibility visibility)
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(DBRemoteRequirement requirement)
public String getUrl()
public String getKeyAndVersion()
public com.google.common.collect.ImmutableList<Serializable> getPrimaryKey()
public static String canonicalKeyOf(DBRemoteRequirement 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, DBRemoteRequirement 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 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 Date getLastSynchronizationDate()
public Integer getBaselineNumber()
public void setBaselineNumber(Integer baselineNumber)
public String getTextExcerpt()
public void setTextExcerpt(String textExcerpt)
public Visibility getVisibility()
public void setVisibility(Visibility visibility)
Copyright © 2022 Requirement Yogi. All rights reserved.