2017-11-29 11:27:04 +00:00
|
|
|
# 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
|
2017-12-03 16:21:26 +00:00
|
|
|
def filter(self, date_from=None, date_to=None,
|
|
|
|
user=None, asset=None, system_user=None,
|
2020-07-15 08:55:18 +00:00
|
|
|
input=None, session=None, risk_level=None, org_id=None):
|
2017-11-29 11:27:04 +00:00
|
|
|
pass
|
|
|
|
|
2018-01-20 14:22:09 +00:00
|
|
|
@abc.abstractmethod
|
|
|
|
def count(self, date_from=None, date_to=None,
|
2018-04-25 09:48:44 +00:00
|
|
|
user=None, asset=None, system_user=None,
|
|
|
|
input=None, session=None):
|
2018-01-20 14:22:09 +00:00
|
|
|
pass
|
|
|
|
|