Package gov.nist.secauto.oscal.lib.model
Class Risk
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Risk
-
@MetaschemaAssembly(formalName="Identified Risk", description="An identified risk.", name="risk", metaschema=OscalAssessmentCommonMetaschema.class) @ValueConstraints(allowedValues=@AllowedValues(level=ERROR,target="prop[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\')]/@name",values={@AllowedValue(value="false-positive",description="The risk has been confirmed to be a false positive."),@AllowedValue(value="accepted",description="The risk has been accepted. No further action will be taken."),@AllowedValue(value="risk-adjusted",description="The risk has been adjusted."),@AllowedValue(value="priority",description="A numeric value indicating the sequence in which risks should be addressed. (Lower numbers are higher priority)")}), matches=@Matches(level=ERROR,target="prop[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\') and @name=\'priority\']/@value",typeAdapter=gov.nist.secauto.metaschema.model.common.datatype.adapter.IntegerAdapter.class)) public class Risk extends ObjectAn identified risk.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRisk.MitigatingFactorDescribes an existing mitigating factor that may affect the overall determination of the risk, with an optional link to an implementation statement in the SSP.static classRisk.RelatedObservationRelates the finding to a set of referenced observations that were used to determine the finding.static classRisk.RiskLogA log of all risk-related tasks taken.
-
Constructor Summary
Constructors Constructor Description Risk()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddCharacterization(Characterization item)Add a newCharacterizationitem to the underlying collection.booleanaddLink(Link item)Add a newLinkitem to the underlying collection.booleanaddMitigatingFactor(Risk.MitigatingFactor item)Add a newRisk.MitigatingFactoritem to the underlying collection.booleanaddOrigin(Origin item)Add a newOriginitem to the underlying collection.booleanaddProp(Property item)Add a newPropertyitem to the underlying collection.booleanaddRelatedObservation(Risk.RelatedObservation item)Add a newRisk.RelatedObservationitem to the underlying collection.booleanaddResponse(Response item)Add a newResponseitem to the underlying collection.booleanaddThreatId(ThreatId item)Add a newThreatIditem to the underlying collection.List<Characterization>getCharacterizations()ZonedDateTimegetDeadline()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetDescription()List<Link>getLinks()List<Risk.MitigatingFactor>getMitigatingFactors()List<Origin>getOrigins()List<Property>getProps()List<Risk.RelatedObservation>getRelatedObservations()List<Response>getRemediations()Risk.RiskLoggetRiskLog()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetStatement()StringgetStatus()List<ThreatId>getThreatIds()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLinegetTitle()UUIDgetUuid()booleanremoveCharacterization(Characterization item)Remove the first matchingCharacterizationitem from the underlying collection.booleanremoveLink(Link item)Remove the first matchingLinkitem from the underlying collection.booleanremoveMitigatingFactor(Risk.MitigatingFactor item)Remove the first matchingRisk.MitigatingFactoritem from the underlying collection.booleanremoveOrigin(Origin item)Remove the first matchingOriginitem from the underlying collection.booleanremoveProp(Property item)Remove the first matchingPropertyitem from the underlying collection.booleanremoveRelatedObservation(Risk.RelatedObservation item)Remove the first matchingRisk.RelatedObservationitem from the underlying collection.booleanremoveResponse(Response item)Remove the first matchingResponseitem from the underlying collection.booleanremoveThreatId(ThreatId item)Remove the first matchingThreatIditem from the underlying collection.voidsetCharacterizations(List<Characterization> value)voidsetDeadline(ZonedDateTime value)voidsetDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetLinks(List<Link> value)voidsetMitigatingFactors(List<Risk.MitigatingFactor> value)voidsetOrigins(List<Origin> value)voidsetProps(List<Property> value)voidsetRelatedObservations(List<Risk.RelatedObservation> value)voidsetRemediations(List<Response> value)voidsetRiskLog(Risk.RiskLog value)voidsetStatement(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetStatus(String value)voidsetThreatIds(List<ThreatId> value)voidsetTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)voidsetUuid(UUID value)StringtoString()
-
-
-
Constructor Detail
-
Risk
public Risk()
-
-
Method Detail
-
getTitle
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine getTitle()
-
setTitle
public void setTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)
-
getDescription
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline getDescription()
-
setDescription
public void setDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
-
getStatement
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline getStatement()
-
setStatement
public void setStatement(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
-
addProp
public boolean addProp(Property item)
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
addLink
public boolean addLink(Link item)
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getOrigins
public List<Origin> getOrigins()
-
setOrigins
public void setOrigins(List<Origin> value)
-
addOrigin
public boolean addOrigin(Origin item)
Add a newOriginitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeOrigin
public boolean removeOrigin(Origin item)
Remove the first matchingOriginitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getThreatIds
public List<ThreatId> getThreatIds()
-
setThreatIds
public void setThreatIds(List<ThreatId> value)
-
addThreatId
public boolean addThreatId(ThreatId item)
Add a newThreatIditem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeThreatId
public boolean removeThreatId(ThreatId item)
Remove the first matchingThreatIditem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getCharacterizations
public List<Characterization> getCharacterizations()
-
setCharacterizations
public void setCharacterizations(List<Characterization> value)
-
addCharacterization
public boolean addCharacterization(Characterization item)
Add a newCharacterizationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeCharacterization
public boolean removeCharacterization(Characterization item)
Remove the first matchingCharacterizationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getMitigatingFactors
public List<Risk.MitigatingFactor> getMitigatingFactors()
-
setMitigatingFactors
public void setMitigatingFactors(List<Risk.MitigatingFactor> value)
-
addMitigatingFactor
public boolean addMitigatingFactor(Risk.MitigatingFactor item)
Add a newRisk.MitigatingFactoritem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeMitigatingFactor
public boolean removeMitigatingFactor(Risk.MitigatingFactor item)
Remove the first matchingRisk.MitigatingFactoritem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getDeadline
public ZonedDateTime getDeadline()
-
setDeadline
public void setDeadline(ZonedDateTime value)
-
getRemediations
public List<Response> getRemediations()
-
setRemediations
public void setRemediations(List<Response> value)
-
addResponse
public boolean addResponse(Response item)
Add a newResponseitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeResponse
public boolean removeResponse(Response item)
Remove the first matchingResponseitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRiskLog
public Risk.RiskLog getRiskLog()
-
setRiskLog
public void setRiskLog(Risk.RiskLog value)
-
getRelatedObservations
public List<Risk.RelatedObservation> getRelatedObservations()
-
setRelatedObservations
public void setRelatedObservations(List<Risk.RelatedObservation> value)
-
addRelatedObservation
public boolean addRelatedObservation(Risk.RelatedObservation item)
Add a newRisk.RelatedObservationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRelatedObservation
public boolean removeRelatedObservation(Risk.RelatedObservation item)
Remove the first matchingRisk.RelatedObservationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
-