@Entity public class RequirementImpl extends BambooEntityObject implements Requirement
ImmutableRequirement.MatchTypeEQUALS, EXISTS, REGEX| Constructor and Description |
|---|
RequirementImpl() |
RequirementImpl(Requirement requirement) |
RequirementImpl(String key,
boolean regexMatch,
String match) |
RequirementImpl(String key,
boolean regexMatch,
String match,
boolean readonly) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
belongsToPlugin() |
int |
compareTo(Object obj) |
boolean |
equals(Object o) |
String |
getKey()
Represents the requirement.
|
String |
getMatchType()
String representation of the type of match the requirement needs.
|
String |
getMatchValue()
A match requirement value.
|
long |
getOwnerId()
The identifier of this
Requirement that is used to identify it uniquely for all Requirements
created by ImmutableRequirement.getPluginModuleKey() |
String |
getPluginModuleKey()
The
ModuleDescriptor.getKey() that is responsible for the Lifecycle of this Requirement |
RequirementSet |
getRequirementSet() |
ImmutableRequirement.MatchType |
getTypeOfMatch() |
int |
hashCode() |
Boolean |
isReadonly()
If a requirement is readonly, it cannot be removed through the UI (the backend can do what it wants, however)
|
boolean |
isRegexMatch()
Is this a regex match requirement or exact match requirement.
|
boolean |
isSystemRequirement()
Is this a system requirement? System requirements are builder/jdk requirements which cannot be
removed from the plan.
|
void |
setKey(String key) |
void |
setMatchValue(String matchValue) |
void |
setOwnerId(long uniqueIdentifier) |
void |
setPluginModuleKey(String pluginModuleKey) |
void |
setReadonly(Boolean readonly) |
void |
setRegexMatch(Boolean regexMatch) |
void |
setRequirementSet(RequirementSet requirementSet) |
String |
toString() |
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDatefinalize, getClass, notify, notifyAll, wait, wait, waitsetIdgetIdpublic RequirementImpl()
public RequirementImpl(String key, boolean regexMatch, String match, boolean readonly)
public RequirementImpl(@NotNull
Requirement requirement)
public boolean isSystemRequirement()
RequirementisSystemRequirement in interface Requirement@NotNull public String getKey()
ImmutableRequirementCapability getKey().getKey in interface ImmutableRequirementpublic void setKey(String key)
setKey in interface Requirementpublic String getMatchValue()
ImmutableRequirement
The regex must match the Capability value.
getMatchValue in interface ImmutableRequirementpublic void setMatchValue(String matchValue)
public boolean isRegexMatch()
RequirementisRegexMatch in interface RequirementisRegexMatch in interface ImmutableRequirementpublic void setRegexMatch(Boolean regexMatch)
public Boolean isReadonly()
ImmutableRequirementisReadonly in interface ImmutableRequirementpublic void setReadonly(Boolean readonly)
setReadonly in interface Requirementpublic RequirementSet getRequirementSet()
getRequirementSet in interface RequirementRequirement is linked topublic void setRequirementSet(RequirementSet requirementSet)
setRequirementSet in interface Requirementpublic String getMatchType()
RequirementgetMatchType in interface Requirement@NotNull public ImmutableRequirement.MatchType getTypeOfMatch()
getTypeOfMatch in interface ImmutableRequirementpublic String getPluginModuleKey()
ImmutableRequirementModuleDescriptor.getKey() that is responsible for the Lifecycle of this RequirementgetPluginModuleKey in interface ImmutableRequirementpublic void setPluginModuleKey(String pluginModuleKey)
setPluginModuleKey in interface Requirementpublic long getOwnerId()
ImmutableRequirementRequirement that is used to identify it uniquely for all Requirements
created by ImmutableRequirement.getPluginModuleKey()getOwnerId in interface ImmutableRequirementpublic void setOwnerId(long uniqueIdentifier)
setOwnerId in interface Requirementpublic boolean belongsToPlugin()
belongsToPlugin in interface RequirementRequirement belongs to a pluginpublic int hashCode()
hashCode in class com.atlassian.core.bean.EntityObjectpublic boolean equals(Object o)
equals in class com.atlassian.core.bean.EntityObjectpublic int compareTo(Object obj)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.