Source code for

import logging

from galaxy.managers.notification import NotificationManager
from galaxy.managers.visualizations import (
from import IdEncodingHelper
from import ServiceBase
from import ShareableService

log = logging.getLogger(__name__)

[docs]class VisualizationsService(ServiceBase): """Common interface/service logic for interactions with visualizations in the context of the API. Provides the logic of the actions invoked by API controllers and uses type definitions and pydantic models to declare its parameters and return types. """
[docs] def __init__( self, security: IdEncodingHelper, manager: VisualizationManager, serializer: VisualizationSerializer, notification_manager: NotificationManager, ): super().__init__(security) self.manager = manager self.serializer = serializer self.shareable_service = ShareableService(self.manager, self.serializer, notification_manager)
# TODO: add the rest of the API actions here and call them directly from the API controller