mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
602 B
28 lines
602 B
# coding: utf-8
|
|
import abc
|
|
|
|
|
|
class CommandBase(object):
|
|
__metaclass__ = abc.ABCMeta
|
|
|
|
@abc.abstractmethod
|
|
def save(self, command):
|
|
pass
|
|
|
|
@abc.abstractmethod
|
|
def bulk_save(self, commands):
|
|
pass
|
|
|
|
@abc.abstractmethod
|
|
def filter(self, date_from=None, date_to=None,
|
|
user=None, asset=None, system_user=None,
|
|
input=None, session=None):
|
|
pass
|
|
|
|
@abc.abstractmethod
|
|
def count(self, date_from=None, date_to=None,
|
|
user=None, asset=None, system_user=None,
|
|
input=None, session=None):
|
|
pass
|
|
|