def get_links():
        """
        get all known links from Ariane Server
        :return:
        """
        LOGGER.debug("LinkService.get_links")
        params = SessionService.complete_transactional_req(None)
        if params is None:
            if MappingService.driver_type != DriverFactory.DRIVER_REST:
                params = {'OPERATION': 'getLinks'}
                args = {'properties': params}
            else:
                args = {'http_operation': 'GET', 'operation_path': ''}
        else:
            if MappingService.driver_type != DriverFactory.DRIVER_REST:
                params['OPERATION'] = 'getLinks'
                args = {'properties': params}
            else:
                args = {'http_operation': 'GET', 'operation_path': '', 'parameters': params}

        response = LinkService.requester.call(args)

        if MappingService.driver_type != DriverFactory.DRIVER_REST:
            response = response.get()

        ret = None
        if response.rc == 0:
            ret = []
            for link in response.response_content['links']:
                ret.append(Link.json_2_link(link))
        elif response.rc != 404:
            err_msg = 'LinkService.get_links - Problem while getting links. ' \
                      'Reason: ' + str(response.response_content) + ' - ' + str(response.error_message) + \
                      " (" + str(response.rc) + ")"
            LOGGER.warning(err_msg)
            if response.rc == 500 and ArianeMappingOverloadError.ERROR_MSG in response.error_message:
                raise ArianeMappingOverloadError("LinkService.get_links",
                                                 ArianeMappingOverloadError.ERROR_MSG)
            # traceback.print_stack()
        return ret
def get_links ( ) : LOGGER . debug ( "LinkService.get_links" ) params = SessionService . complete_transactional_req ( None ) if params is None : if MappingService . driver_type != DriverFactory . DRIVER_REST : params = { 'OPERATION' : 'getLinks' } args = { 'properties' : params } else : args = { 'http_operation' : 'GET' , 'operation_path' : '' } else : if MappingService . driver_type != DriverFactory . DRIVER_REST : params [ 'OPERATION' ] = 'getLinks' args = { 'properties' : params } else : args = { 'http_operation' : 'GET' , 'operation_path' : '' , 'parameters' : params } response = LinkService . requester . call ( args ) if MappingService . driver_type != DriverFactory . DRIVER_REST : response = response . get ( ) ret = None if response . rc == 0 : ret = [ ] for link in response . response_content [ 'links' ] : ret . append ( Link . json_2_link ( link ) ) elif response . rc != 404 : err_msg = 'LinkService.get_links - Problem while getting links. ' 'Reason: ' + str ( response . response_content ) + ' - ' + str ( response . error_message ) + " (" + str ( response . rc ) + ")" LOGGER . warning ( err_msg ) if response . rc == 500 and ArianeMappingOverloadError . ERROR_MSG in response . error_message : raise ArianeMappingOverloadError ( "LinkService.get_links" , ArianeMappingOverloadError . ERROR_MSG ) return ret
get all known links from Ariane Server
        :return: