new Task model added for sync task with db

This commit is contained in:
Volkan Şahin 2016-04-11 19:26:15 +03:00
parent beafbc0b0d
commit b51646f053

View file

@ -0,0 +1,70 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
# Author: Volkan Şahin <volkansah.in> <bm.volkansahin@gmail.com>
class TaskBean(object):
"""docstring for TaskBean"""
def __init__(self, _id=None, create_date=None, modify_date=None, command_cls_id=None, parameter_map=None, deleted=None, plugin=None, cron_str=None):
self._id = _id
self.create_date = create_date
self.modify_date = modify_date
self.command_cls_id = command_cls_id
self.parameter_map = parameter_map
self.deleted = deleted
self.plugin = plugin
self.cron_str = cron_str
def get_id(self):
return self._id
def set_id(self, _id):
self._id = _id
def get_create_date(self):
return self.create_date
def set_create_date(self, create_date):
self.create_date = create_date
def get_modify_date(self):
return self.modify_date
def set_modify_date(self, modify_date):
self.modify_date = modify_date
def get_command_cls_id(self):
return self.command_cls_id
def set_command_cls_id(self, command_cls_id):
self.command_cls_id = command_cls_id
def get_parameter_map(self):
return self.parameter_map
def set_parameter_map(self, parameter_map):
self.parameter_map = parameter_map
def get_deleted(self):
return self.deleted
def set_deleted(self, deleted):
self.deleted = deleted
def get_plugin(self):
return self.plugin
def set_plugin(self, plugin):
self.plugin = plugin
def get_cron_str(self):
return self.cron_str
def set_cron_str(self, cron_str):
self.cron_str = cron_str
@property
def obj_name(self):
return "TASK"