Gets the metadata for the public domain flag.

        return: (osid.Metadata) - metadata for the public domain
        *compliance: mandatory -- This method must be implemented.*
430384
def get_public_domain_metadata(self):
        
        # Implemented from template for osid.resource.ResourceForm.get_group_metadata_template
        metadata = dict(self._mdata['public_domain'])
        metadata.update({'existing_boolean_values': self._my_map['publicDomain']})
        return Metadata(**metadata)
765636
def wsfed_metadata(self):
        

        url = 'https://{}/wsfed/FederationMetadata' \
              '/2007-06/FederationMetadata.xml'

        return self.get(url=url.format(self.domain))
674847
def _find_certificate_metadata(self, uid=None):
        
        certificate = self.db.certificates.find_one({'uid': uid})
        return certificate
1348830
def get_grade_system_metadata(self):
        
        # Implemented from template for osid.resource.ResourceForm.get_group_metadata_template
        metadata = dict(self._mdata['grade_system'])
        metadata.update({'existing_id_values': self._my_map['gradeSystemId']})
        return Metadata(**metadata)
140665
def get_title_metadata(self):
        
        # Implemented from template for osid.resource.ResourceForm.get_group_metadata_template
        metadata = dict(self._mdata['title'])
        metadata.update({'existing_string_values': self._my_map['title']})
        return Metadata(**metadata)
1251420
def saml_metadata(self, client_id):
        

        return self.get(url='https://{}/samlp/metadata/{}'.format(self.domain,
                                                                  client_id))
437174
def get_level_metadata(self):
        
        # Implemented from template for osid.resource.ResourceForm.get_group_metadata_template
        metadata = dict(self._mdata['level'])
        metadata.update({'existing_id_values': self._my_map['levelId']})
        return Metadata(**metadata)
876749
def get_copyright_registration_metadata(self):
        
        # Implemented from template for osid.resource.ResourceForm.get_group_metadata_template
        metadata = dict(self._mdata['copyright_registration'])
        metadata.update({'existing_string_values': self._my_map['copyrightRegistration']})
        return Metadata(**metadata)
876675
def get_provider_metadata(self):
        
        metadata = dict(self._provider_metadata)
        metadata.update({'existing_id_values': self.my_osid_object_form._my_map['providerId']})
        return Metadata(**metadata)
270174
def metadata():
    
    def method_builder(cls):
        method_doc = """Fetch the metadata for this :class:`{0}`.

        Returns:

            The :class:`Metadata` for this :class:`{0}`
        """.format(cls.__name__)

        def method(self):
            session = self._session
            resource_id = None if self.is_singleton() else self.id
            resource_path = cls._resource_path()
            url = session._build_url(resource_path, resource_id, 'metadata')

            def _process(json):
                data = json.get('data')
                metadata = Metadata(data, session, resource_path)
                if self.is_singleton():
                    setattr(metadata, '_singleton', True)
                return metadata

            return session.get(url, CB.json(200, _process))

        method.__doc__ = method_doc
        setattr(cls, 'metadata', method)
        return cls

    return method_builder
128021
def get_display_name_metadata(self):
        """"""
        metadata = dict(self.my_osid_object_form._mdata['display_name'])
        metadata.update({'read_only': True})
        return Metadata(**metadata)
89948
def metadata(self, delete=False):
        
        if delete:
            return self._session.delete(self.__v1() + "/metadata").json()
        else:
            return self._session.get(self.__v1() + "/metadata").json()
1020981
def get_resource_metadata(self, resource=None):
        
        result = self._make_metadata_request(meta_id=0, metadata_type='METADATA-RESOURCE')
        if resource:
            result = next((item for item in result if item['ResourceID'] == resource), None)
        return result
1030551
def get_public_key(self):
        
        res = self.get_public_key_info()
        if 'error' in res:
            raise ValueError(res['error'])

        if res['type'] != 'singlesig':
            raise ValueError(res['error'])

        return res['public_keys'][0]
344335
def get_source_metadata(self):
        
        # Implemented from template for osid.resource.ResourceForm.get_group_metadata_template
        metadata = dict(self._mdata['source'])
        metadata.update({'existing_id_values': self._my_map['sourceId']})
        return Metadata(**metadata)
46199
def get_taker_metadata(self):
        
        # Implemented from template for osid.resource.ResourceForm.get_group_metadata_template
        metadata = dict(self._mdata['taker'])
        metadata.update({'existing_id_values': self._my_map['takerId']})
        return Metadata(**metadata)
537718
def get_accessibility_type_metadata(self):
        
        # Implemented from template for osid.logging.LogEntryForm.get_priority_metadata
        metadata = dict(self._mdata['accessibility_type'])
        metadata.update({'existing_type_values': self._my_map['accessibilityTypeId']})
        return Metadata(**metadata)