Hi Jan,
Is it possible to set Cybersecurity Properties for Assets programmatically?
Kind regards,
Lucas
Hi Lucas,
as you will have recognized, they are special types, not just String. To get hold of these special types for SecurityAttributes, you could use the following lines (assuming "part" is your system part):
var secConf = finder.findByType(Metamodel.cybersecurity.SecurityAttribute).find("name", "Confidentiality").first();part.securityAttributes.add(secConf);// or: part.securityAttributes.remove(secConf);
This might not be the simplest solution (maybe Jan or Mario have a simpler access), but it works.
I hope that helps.
Cheers,
Nils