Class Risk
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDescribes 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 classRelates the finding to a set of referenced observations that were used to determine the finding.static classA log of all risk-related tasks taken. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newCharacterizationitem to the underlying collection.booleanAdd a newLinkitem to the underlying collection.booleanAdd a newRisk.MitigatingFactoritem to the underlying collection.booleanAdd a newOriginitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd 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.Get the "Characterization".Get the "Risk Resolution Deadline".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Risk Description".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDataGet the "Mitigating Factor".Get the "Origin".getProps()Get the "Property".Get the "Related Observation".Get the "Risk Response".Get the "Risk Log".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Risk Statement".Get the "Risk Status".Get the "Threat ID".dev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "Risk Title".getUuid()Get the "Risk Universally Unique Identifier".booleanRemove the first matchingCharacterizationitem from the underlying collection.booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanRemove 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.booleanRemove 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) Set the "Characterization".voidsetDeadline(ZonedDateTime value) Set the "Risk Resolution Deadline".voidsetDescription(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Risk Description".voidSet the "Link".voidSet the "Mitigating Factor".voidsetOrigins(List<Origin> value) Set the "Origin".voidSet the "Property".voidSet the "Related Observation".voidsetRemediations(List<Response> value) Set the "Risk Response".voidsetRiskLog(Risk.RiskLog value) Set the "Risk Log".voidsetStatement(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Risk Statement".voidSet the "Risk Status".voidsetThreatIds(List<ThreatId> value) Set the "Threat ID".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Risk Title".voidSet the "Risk Universally Unique Identifier".toString()
-
Constructor Details
-
Risk
public Risk()Constructs a newdev.metaschema.oscal.lib.model.Riskinstance with no metadata. -
Risk
Constructs a newdev.metaschema.oscal.lib.model.Riskinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getUuid
Get the "Risk Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this risk elsewhere in this or other OSCAL instances. The locally defined UUID of the
riskcan be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.- Returns:
- the uuid value
-
setUuid
Set the "Risk Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this risk elsewhere in this or other OSCAL instances. The locally defined UUID of the
riskcan be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.- Parameters:
value- the uuid value to set
-
getTitle
Get the "Risk Title".The title for this risk.
- Returns:
- the title value
-
setTitle
Set the "Risk Title".The title for this risk.
- Parameters:
value- the title value to set
-
getDescription
Get the "Risk Description".A human-readable summary of the identified risk, to include a statement of how the risk impacts the system.
- Returns:
- the description value
-
setDescription
Set the "Risk Description".A human-readable summary of the identified risk, to include a statement of how the risk impacts the system.
- Parameters:
value- the description value to set
-
getStatement
Get the "Risk Statement".An summary of impact for how the risk affects the system.
- Returns:
- the statement value
-
setStatement
Set the "Risk Statement".An summary of impact for how the risk affects the system.
- Parameters:
value- the statement value to set
-
getProps
Get the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Returns:
- the prop value
-
setProps
Set the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Parameters:
value- the prop value to set
-
addProp
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getLinks
Get the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Returns:
- the link value
-
setLinks
Set the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Parameters:
value- the link value to set
-
addLink
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getStatus
Get the "Risk Status".Describes the status of the associated risk.
- Returns:
- the status value
-
setStatus
Set the "Risk Status".Describes the status of the associated risk.
- Parameters:
value- the status value to set
-
getOrigins
Get the "Origin".Identifies the source of the finding, such as a tool, interviewed person, or activity.
- Returns:
- the origin value
-
setOrigins
Set the "Origin".Identifies the source of the finding, such as a tool, interviewed person, or activity.
- Parameters:
value- the origin value to set
-
addOrigin
Add a newOriginitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeOrigin
Remove the first matchingOriginitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getThreatIds
Get the "Threat ID".A pointer, by ID, to an externally-defined threat.
- Returns:
- the threat-id value
-
setThreatIds
Set the "Threat ID".A pointer, by ID, to an externally-defined threat.
- Parameters:
value- the threat-id value to set
-
addThreatId
Add a newThreatIditem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeThreatId
Remove the first matchingThreatIditem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getCharacterizations
Get the "Characterization".A collection of descriptive data about the containing object from a specific origin.
- Returns:
- the characterization value
-
setCharacterizations
Set the "Characterization".A collection of descriptive data about the containing object from a specific origin.
- Parameters:
value- the characterization value to set
-
addCharacterization
Add a newCharacterizationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeCharacterization
Remove the first matchingCharacterizationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getMitigatingFactors
Get the "Mitigating Factor".Describes an existing mitigating factor that may affect the overall determination of the risk, with an optional link to an implementation statement in the SSP.
- Returns:
- the mitigating-factor value
-
setMitigatingFactors
Set the "Mitigating Factor".Describes an existing mitigating factor that may affect the overall determination of the risk, with an optional link to an implementation statement in the SSP.
- Parameters:
value- the mitigating-factor value to set
-
addMitigatingFactor
Add a newRisk.MitigatingFactoritem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeMitigatingFactor
Remove the first matchingRisk.MitigatingFactoritem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getDeadline
Get the "Risk Resolution Deadline".The date/time by which the risk must be resolved.
- Returns:
- the deadline value, or
nullif not set
-
setDeadline
Set the "Risk Resolution Deadline".The date/time by which the risk must be resolved.
- Parameters:
value- the deadline value to set, ornullto clear
-
getRemediations
Get the "Risk Response".Describes either recommended or an actual plan for addressing the risk.
- Returns:
- the response value
-
setRemediations
Set the "Risk Response".Describes either recommended or an actual plan for addressing the risk.
- Parameters:
value- the response value to set
-
addResponse
Add a newResponseitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeResponse
Remove the first matchingResponseitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRiskLog
Get the "Risk Log".A log of all risk-related tasks taken.
- Returns:
- the risk-log value, or
nullif not set
-
setRiskLog
Set the "Risk Log".A log of all risk-related tasks taken.
- Parameters:
value- the risk-log value to set, ornullto clear
-
getRelatedObservations
Get the "Related Observation".Relates the finding to a set of referenced observations that were used to determine the finding.
- Returns:
- the related-observation value
-
setRelatedObservations
Set the "Related Observation".Relates the finding to a set of referenced observations that were used to determine the finding.
- Parameters:
value- the related-observation value to set
-
addRelatedObservation
Add a newRisk.RelatedObservationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRelatedObservation
Remove the first matchingRisk.RelatedObservationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-