Пример #1
0
 def __init__(self, session_id):
   """
   :raise CairisHTTPError:
   """
   CairisDAO.__init__(self, session_id)
   self.prop_dict = {
     0:'None',
     1:'Low',
     2:'Medium',
     3:'High'
   }
   self.attr_dict = {
     'Confidentiality': cairis.core.armid.C_PROPERTY,
     'Integrity': cairis.core.armid.I_PROPERTY,
     'Availability': cairis.core.armid.AV_PROPERTY,
     'Accountability': cairis.core.armid.AC_PROPERTY,
     'Anonymity': cairis.core.armid.AN_PROPERTY,
     'Pseudonymity': cairis.core.armid.PAN_PROPERTY,
     'Unlinkability': cairis.core.armid.UNL_PROPERTY,
     'Unobservability': cairis.core.armid.UNO_PROPERTY
   }
   self.rev_attr_dict = dict()
   self.rev_prop_dict = dict()
   for key, value in self.attr_dict.items():
     self.rev_attr_dict[value] = key
   for key, value in self.prop_dict.items():
     self.rev_prop_dict[value] = key
Пример #2
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id)
     self.attr_dict = {
         'Confidentiality': cairis.core.armid.C_PROPERTY,
         'Integrity': cairis.core.armid.I_PROPERTY,
         'Availability': cairis.core.armid.AV_PROPERTY,
         'Accountability': cairis.core.armid.AC_PROPERTY,
         'Anonymity': cairis.core.armid.AN_PROPERTY,
         'Pseudonymity': cairis.core.armid.PAN_PROPERTY,
         'Unlinkability': cairis.core.armid.UNL_PROPERTY,
         'Unobservability': cairis.core.armid.UNO_PROPERTY
     }
     self.rev_attr_dict = {}
     for key, value in self.attr_dict.items():
         self.rev_attr_dict[value] = key
Пример #3
0
 def __init__(self, session_id):
   CairisDAO.__init__(self, session_id)
   self.attr_dict = {
     'Confidentiality': cairis.core.armid.C_PROPERTY,
     'Integrity': cairis.core.armid.I_PROPERTY,
     'Availability': cairis.core.armid.AV_PROPERTY,
     'Accountability': cairis.core.armid.AC_PROPERTY,
     'Anonymity': cairis.core.armid.AN_PROPERTY,
     'Pseudonymity': cairis.core.armid.PAN_PROPERTY,
     'Unlinkability': cairis.core.armid.UNL_PROPERTY,
     'Unobservability': cairis.core.armid.UNO_PROPERTY
   }
   self.rev_attr_dict = {}
   for key, value in list(self.attr_dict.items()):
     self.rev_attr_dict[value] = key
Пример #4
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'template_asset')
     self.attr_dict = {
         'Confidentiality': cairis.core.armid.C_PROPERTY,
         'Integrity': cairis.core.armid.I_PROPERTY,
         'Availability': cairis.core.armid.AV_PROPERTY,
         'Accountability': cairis.core.armid.AC_PROPERTY,
         'Anonymity': cairis.core.armid.AN_PROPERTY,
         'Pseudonymity': cairis.core.armid.PAN_PROPERTY,
         'Unlinkability': cairis.core.armid.UNL_PROPERTY,
         'Unobservability': cairis.core.armid.UNO_PROPERTY
     }
     self.rev_attr_dict = {}
     for key, value in list(self.attr_dict.items()):
         self.rev_attr_dict[value] = key
     self.rev_value_dict = {0: 'None', 1: 'Low', 2: 'Medium', 3: 'High'}
Пример #5
0
 def __init__(self, session_id):
     """
 :raise CairisHTTPError:
 """
     CairisDAO.__init__(self, session_id)
     self.prop_dict = {0: "None", 1: "Low", 2: "Medium", 3: "High"}
     self.attr_dict = {
         "Confidentiality": cairis.core.armid.C_PROPERTY,
         "Integrity": cairis.core.armid.I_PROPERTY,
         "Availability": cairis.core.armid.AV_PROPERTY,
         "Accountability": cairis.core.armid.AC_PROPERTY,
         "Anonymity": cairis.core.armid.AN_PROPERTY,
         "Pseudonymity": cairis.core.armid.PAN_PROPERTY,
         "Unlinkability": cairis.core.armid.UNL_PROPERTY,
         "Unobservability": cairis.core.armid.UNO_PROPERTY,
     }
     self.rev_attr_dict = dict()
     self.rev_prop_dict = dict()
     for key, value in self.attr_dict.items():
         self.rev_attr_dict[value] = key
     for key, value in self.prop_dict.items():
         self.rev_prop_dict[value] = key
Пример #6
0
 def __init__(self, session_id):
   CairisDAO.__init__(self, session_id)
Пример #7
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'locations')
Пример #8
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id)
     b = Borg()
     self.image_dir = b.uploadDir
Пример #9
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'response')
Пример #10
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'project')
Пример #11
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'persona_characteristic')
Пример #12
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'vulnerability')
Пример #13
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'environment')
Пример #14
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'task_characteristic')
Пример #15
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'obstacle')
 def __init__(self, session_id):
   CairisDAO.__init__(self, session_id, 'policy_statement')
Пример #17
0
 def __init__(self, session_id):
   CairisDAO.__init__(self, session_id, 'trust_boundary')
Пример #18
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'value_type')
Пример #19
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id)
     b = Borg()
     self.image_dir = os.path.join(b.uploadDir, 'images')
Пример #20
0
 def __init__(self, session_id):
   CairisDAO.__init__(self, session_id, 'requirement')
Пример #21
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'persona')
Пример #22
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'attacker')
Пример #23
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'concept_reference')
Пример #24
0
 def __init__(self, session_id):
   CairisDAO.__init__(self, session_id)
   b = Borg()
   self.image_dir = b.uploadDir
Пример #25
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'export')
Пример #26
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'template_goal')
Пример #27
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'usecase')
Пример #28
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id)
Пример #29
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'securitypattern')
Пример #30
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'userstory')
Пример #31
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'document_reference')
Пример #32
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'domainproperty')
Пример #33
0
 def __init__(self, session_id):
     """
 :raise CairisHTTPError:
 """
     CairisDAO.__init__(self, session_id)
Пример #34
0
 def __init__(self, session_id):
   """
   :raise CairisHTTPError:
   """
   CairisDAO.__init__(self, session_id)
Пример #35
0
 def __init__(self, session_id):
     CairisDAO.__init__(self, session_id, 'external_document')
Пример #36
0
 def __init__(self, session_id):
   CairisDAO.__init__(self, session_id, 'component_view')