Module: Adiwg_SecurityConstraints
- Defined in:
- lib/adiwg/mdtranslator/readers/adiwgJson/modules_0.9.0/module_securityConstraint.rb
Overview
History: Stan Smith 2013-11-15 original script Stan Smith 2013-11-27 modified to process a single security constraint
Class Method Summary collapse
Class Method Details
.unpack(hSecurityCon) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/adiwg/mdtranslator/readers/adiwgJson/modules_0.9.0/module_securityConstraint.rb', line 10 def self.unpack(hSecurityCon) # instance classes needed in script intMetadataClass = InternalMetadata.new hIntCon = intMetadataClass.newSecurityConstraint # security constraint - classification code - required if hSecurityCon.has_key?('classification') s = hSecurityCon['classification'] if s != '' hIntCon[:classCode] = s end end # security constraint - user note if hSecurityCon.has_key?('userNote') s = hSecurityCon['userNote'] if s != '' hIntCon[:userNote] = s end end # security constraint - classification system if hSecurityCon.has_key?('classificationSystem') s = hSecurityCon['classificationSystem'] if s != '' hIntCon[:classSystem] = s end end # security constraint - handling description if hSecurityCon.has_key?('handlingDescription') s = hSecurityCon['handlingDescription'] if s != '' hIntCon[:handlingDesc] = s end end return hIntCon end |