Gets the ``Id`` of a ``Grade`` corresponding to the assessment difficulty.

        return: (osid.id.Id) - a grade ``Id``
        *compliance: mandatory -- This method must be implemented.*
765901
def get_level_id(self):
        
        # Implemented from template for osid.resource.Resource.get_avatar_id_template
        if not bool(self._my_map['levelId']):
            raise errors.IllegalState('this Assessment has no level')
        else:
            return Id(self._my_map['levelId'])
944913
def get_rubric_id(self):
        
        # Implemented from template for osid.resource.Resource.get_avatar_id_template
        if not bool(self._my_map['rubricId']):
            raise errors.IllegalState('this AssessmentTaken has no rubric')
        else:
            return Id(self._my_map['rubricId'])
70908
def get_assessment_metadata(self):
        
        # Implemented from template for osid.resource.ResourceForm.get_group_metadata_template
        metadata = dict(self._mdata['assessment'])
        metadata.update({'existing_id_values': self._my_map['assessmentId']})
        return Metadata(**metadata)
94251
def get_id(self):
        '''
        
        '''
        if self._dxid is not None:
            return self._dxid
        else:
            return 'app-' + self._name + '/' + self._alias
772133
def get_id(self):
        
        import warnings
        warnings.warn('{0}.get_id() is deprecated, '
                      'use {0}.id instead'.format(type(self).__name__),
                      DeprecationWarning)
        return self.get('_id')
1209928
def _get_id(self):
        """"""
        return ''.join(map(str,
                           filter(is_not_None,
                                  [self.Prefix, self.Name])))
544520
def int_id(self):
        ""
        id_or_name = self.id_or_name
        if id_or_name is not None and isinstance(id_or_name, int):
            return id_or_name
        return None
852912
def get_gradebook_column(self):
        
        # Implemented from template for osid.learning.Activity.get_objective
        if not bool(self._my_map['gradebookColumnId']):
            raise errors.IllegalState('gradebook_column empty')
        mgr = self._get_provider_manager('GRADING')
        if not mgr.supports_gradebook_column_lookup():
            raise errors.OperationFailed('Grading does not support GradebookColumn lookup')
        lookup_session = mgr.get_gradebook_column_lookup_session(proxy=getattr(self, "_proxy", None))
        lookup_session.use_federated_gradebook_view()
        return lookup_session.get_gradebook_column(self.get_gradebook_column_id())
1048786
def get_item_ids_for_assessment_part(self, assessment_part_id):
        """"""
        item_ids = []
        for question_map in self._my_map['questions']:
            if question_map['assessmentPartId'] == str(assessment_part_id):
                item_ids.append(Id(question_map['itemId']))
        return item_ids
1373637
def get_review_id(self, id_):
    
    return _get_request(_REVIEW_ID.format(c_api=_C_API_BEGINNING,
                                                              api=_API_VERSION,
                                                              id_=id_,
                                                              at=self.access_token))
1011271
def get_next_assessment_part_id(self, assessment_part_id=None):
        """"""
        if assessment_part_id is None:
            part_id = self.get_id()
        else:
            part_id = assessment_part_id
        return get_next_part_id(part_id,
                                runtime=self._runtime,
                                proxy=self._proxy,
                                sequestered=True)[0]
921936
def get_grade_system_form(self, *args, **kwargs):
        """"""
        # Implemented from kitosid template for -
        # osid.resource.ResourceAdminSession.get_resource_form_for_update
        # This method might be a bit sketchy. Time will tell.
        if isinstance(args[-1], list) or 'grade_system_record_types' in kwargs:
            return self.get_grade_system_form_for_create(*args, **kwargs)
        else:
            return self.get_grade_system_form_for_update(*args, **kwargs)
375747
def get_my_item_id_from_section(self, section):
        """"""
        for question_map in section._my_map['questions']:
            if question_map['assessmentPartId'] == str(self.get_id()):
                return section.get_question(question_map=question_map).get_id()
        raise IllegalState('This Part currently has no Item in the Section')
274853
def get_id(self):
        
        if self._id is None:
            # FIXME: provide a better error message when key is not defined
            self._id = self.inspect(refresh=False)["Id"]
        return self._id
960357
def get_next_assessment_part_id(self, assessment_part_id):
        """"""
        if self.has_next_assessment_part(assessment_part_id):
            return Id(self._my_map['childIds'][self._my_map['childIds'].index(str(assessment_part_id)) + 1])
1136495
protected function get_grade($gradeid) {
        global $DB;

        $params = array('assignment'=>$this->get_instance()->id, 'id'=>$gradeid);
        return $DB->get_record('assign_grades', $params, '*', MUST_EXIST);
    }
177397
def get_objective_id(self):
        
        # Implemented from template for osid.learning.Activity.get_objective_id
        if not bool(self._my_map['objectiveId']):
            raise errors.IllegalState('objective empty')
        return Id(self._my_map['objectiveId'])