Class Services
java.lang.Object
be.kuleuven.cs.distrinet.sparta.design.Services
The services class used by VSM.
Besides the legacy helpers, this exposes "security coverage" services that
the Sirius diagram can call from AQL (e.g. aql:self.coverageLabel(),
aql:self.mitigatedThreatTypeCount()) to show how much a solution or
countermeasure actually covers. All methods are null-tolerant so they are safe
to call on partially-built models.
See http://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.sirius.doc%2Fdoc%2Findex.htmlinvalid input: '&cp'=24 for documentation on how to write service methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintboundRoleCount(Solution self) Number of role bindings that are bound to at least one asset.coverageLabel(Solution self) A short human-readable coverage summary for a solution, suitable for a node label or tooltip, e.g.booleanisFullyBound(Solution self) truewhen the solution has role bindings and all of them are bound.intNumber of distinct threat types a countermeasure mitigates, counting both resolvedmitigatesreferences and id-onlymitigatedThreatTypeIDreferences (deduplicated by id).intNumber of distinct threat types the solution's applied pattern mitigates.intNumber of distinct threat types a solution type mitigates across its countermeasures.Comma-separated titles of the threat types the solution's pattern mitigates (for tooltips).Comma-separated titles of the threat types a solution type mitigates (for tooltips).The distinct threat types a countermeasure mitigates (the resolvedmitigatesreferences only; usemitigatedThreatTypeCount(be.kuleuven.cs.distrinet.sparta.spartamodel.CounterMeasure)for the count that also accounts for id-only references).mitigatedThreatTypes(Solution self) The distinct threat types mitigated by the solution's applied pattern.The distinct threat types mitigated by all of a solution type's countermeasures.introleBindingCount(Solution self) Number of role bindings of a solution.Role bindings of a solution that are not yet bound to any asset.intunassignedRoleCount(Solution self) Number of role bindings that are still unassigned.
-
Constructor Details
-
Services
public Services()
-
-
Method Details
-
mitigatedThreatTypes
The distinct threat types a countermeasure mitigates (the resolvedmitigatesreferences only; usemitigatedThreatTypeCount(be.kuleuven.cs.distrinet.sparta.spartamodel.CounterMeasure)for the count that also accounts for id-only references). -
mitigatedThreatTypes
The distinct threat types mitigated by all of a solution type's countermeasures. -
mitigatedThreatTypes
The distinct threat types mitigated by the solution's applied pattern. -
mitigatedThreatTypeCount
Number of distinct threat types a countermeasure mitigates, counting both resolvedmitigatesreferences and id-onlymitigatedThreatTypeIDreferences (deduplicated by id). -
mitigatedThreatTypeCount
Number of distinct threat types a solution type mitigates across its countermeasures. -
mitigatedThreatTypeCount
Number of distinct threat types the solution's applied pattern mitigates. -
mitigatedThreatTypeNames
Comma-separated titles of the threat types a solution type mitigates (for tooltips). -
mitigatedThreatTypeNames
Comma-separated titles of the threat types the solution's pattern mitigates (for tooltips). -
unassignedRoleBindings
Role bindings of a solution that are not yet bound to any asset. -
roleBindingCount
Number of role bindings of a solution. -
unassignedRoleCount
Number of role bindings that are still unassigned. -
boundRoleCount
Number of role bindings that are bound to at least one asset. -
isFullyBound
truewhen the solution has role bindings and all of them are bound. -
coverageLabel
A short human-readable coverage summary for a solution, suitable for a node label or tooltip, e.g."3 threat types mitigated; 2/3 roles bound".
-