Class SRARouteServiceImpl

    • Constructor Detail

      • SRARouteServiceImpl

        public SRARouteServiceImpl​(SRARouteLogic logic)
    • Method Detail

      • list

        public List<SRARouteTO> list()
        Description copied from interface: SRARouteService
        Returns a list of all existing routes.
        Specified by:
        list in interface SRARouteService
        Returns:
        paged list of existing routes matching the given query
      • create

        public javax.ws.rs.core.Response create​(SRARouteTO routeTO)
        Description copied from interface: SRARouteService
        Creates a new route.
        Specified by:
        create in interface SRARouteService
        Parameters:
        routeTO - route to be created
        Returns:
        Response object featuring Location header of created route
      • read

        public SRARouteTO read​(String key)
        Description copied from interface: SRARouteService
        Returns route with matching key.
        Specified by:
        read in interface SRARouteService
        Parameters:
        key - key of route to be read
        Returns:
        route with matching key
      • update

        public void update​(SRARouteTO routeTO)
        Description copied from interface: SRARouteService
        Updates route with matching key.
        Specified by:
        update in interface SRARouteService
        Parameters:
        routeTO - route to be stored
      • delete

        public void delete​(String key)
        Description copied from interface: SRARouteService
        Deletes route with matching key.
        Specified by:
        delete in interface SRARouteService
        Parameters:
        key - route key