예제 #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
파일: UploadDAO.py 프로젝트: gkmacc/cairis
 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')