Exemplo n.º 1
0
    def get(self, pid, aid):
        """Fetches aggregate child domain by ID"""

        args = pagination_parameters.parse_args(request)
        limit = args['limit']
        offset = args['offset']        
        
        project_handler = projects_manager.get_project_handler(pid)        
        return project_handler.get_domains_in_aggregate(aid = aid, limit = limit, offset = offset)
Exemplo n.º 2
0
    def get(self, pid, sid):
        """Fetch symbol's fields by its id"""

        args = pagination_parameters.parse_args(request)
        limit = args['limit']
        offset = args['offset']        

        project_handler = projects_manager.get_project_handler(pid)
        return project_handler.get_symbol_fields(sid, limit = limit, offset = offset)
Exemplo n.º 3
0
    def get(self, pid, cid):
        """Fetch all a capture by its ID"""

        args = pagination_parameters.parse_args(request)
        limit = args['limit']
        offset = args['offset']        
        
        project_handler = projects_manager.get_project_handler(pid)        
        return project_handler.get_messages_in_capture(cid, limit = limit, offset = offset)
Exemplo n.º 4
0
    def get(self, pid):
        """List all domains

        Returns a list of domains starting from ``offset`` limited by ``limit`` parameter.
        """
        args = pagination_parameters.parse_args(request)
        limit = args['limit']
        offset = args['offset']        
        
        project_handler = projects_manager.get_project_handler(pid)        
        return project_handler.get_domains(limit = limit, offset = offset)
Exemplo n.º 5
0
    def get(self, pid):
        """List all domains

        Returns a list of domains starting from ``offset`` limited by ``limit`` parameter.
        """
        args = pagination_parameters.parse_args(request)
        limit = args['limit']
        offset = args['offset']

        project_handler = projects_manager.get_project_handler(pid)
        return project_handler.get_domains(limit=limit, offset=offset)
Exemplo n.º 6
0
    def get(self, pid, aid):
        """Fetches aggregate child domain by ID"""

        args = pagination_parameters.parse_args(request)
        limit = args['limit']
        offset = args['offset']

        project_handler = projects_manager.get_project_handler(pid)
        return project_handler.get_domains_in_aggregate(aid=aid,
                                                        limit=limit,
                                                        offset=offset)
Exemplo n.º 7
0
    def get(self, pid, cid):
        """Fetch all a capture by its ID"""

        args = pagination_parameters.parse_args(request)
        limit = args['limit']
        offset = args['offset']

        project_handler = projects_manager.get_project_handler(pid)
        return project_handler.get_messages_in_capture(cid,
                                                       limit=limit,
                                                       offset=offset)