2016-04-04 18:15:18 +03:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Author: Volkan Şahin <volkansah.in> <bm.volkansahin@gmail.com>
|
|
|
|
import json
|
|
|
|
|
2016-04-06 14:27:45 +03:00
|
|
|
from base.model.PluginBean import PluginBean
|
2016-04-04 18:15:18 +03:00
|
|
|
|
|
|
|
|
|
|
|
class ProfileBean(object):
|
|
|
|
"""docstring for Profile"""
|
|
|
|
|
2016-04-06 14:27:45 +03:00
|
|
|
def __init__(self, p_id=None, create_date=None, label=None, description=None, overridable=None, active=None, deleted=None, profile_data=None, modify_date=None, plugin=None, username=None):
|
2016-04-04 18:15:18 +03:00
|
|
|
self.id = p_id
|
|
|
|
self.create_date = create_date
|
|
|
|
self.modify_date = modify_date
|
|
|
|
self.label = label
|
|
|
|
self.description = description
|
|
|
|
self.overridable = overridable
|
|
|
|
self.active = active
|
|
|
|
self.deleted = deleted
|
|
|
|
self.profile_data = profile_data
|
2016-04-06 14:27:45 +03:00
|
|
|
self.plugin = plugin
|
2016-04-04 18:15:18 +03:00
|
|
|
self.username = username
|
|
|
|
|
|
|
|
def get_id(self):
|
|
|
|
return self.id
|
|
|
|
|
|
|
|
def set_id(self, p_id):
|
|
|
|
self.id = p_id
|
|
|
|
|
|
|
|
def get_create_date(self):
|
|
|
|
return self.create_date
|
|
|
|
|
|
|
|
def set_create_date(self, create_date):
|
|
|
|
self.create_date = create_date
|
|
|
|
|
2016-04-06 14:27:45 +03:00
|
|
|
def get_modify_date(self):
|
2016-04-04 18:15:18 +03:00
|
|
|
return self.modify_date
|
|
|
|
|
|
|
|
def set_modify_date(self, modify_date):
|
|
|
|
self.modify_date = modify_date
|
|
|
|
|
|
|
|
def get_label(self):
|
|
|
|
return self.label
|
|
|
|
|
|
|
|
def set_label(self, label):
|
|
|
|
self.label = label
|
|
|
|
|
|
|
|
def get_description(self):
|
|
|
|
return self.modify_date
|
|
|
|
|
|
|
|
def set_description(self, description):
|
|
|
|
self.description = description
|
|
|
|
|
|
|
|
def get_overridable(self):
|
|
|
|
return self.overridable
|
|
|
|
|
|
|
|
def set_overridable(self, overridable):
|
|
|
|
self.overridable = overridable
|
|
|
|
|
|
|
|
def get_active(self):
|
|
|
|
return self.active
|
|
|
|
|
|
|
|
def set_active(self, active):
|
|
|
|
self.active = active
|
|
|
|
|
|
|
|
def get_deleted(self):
|
|
|
|
return self.deleted
|
|
|
|
|
|
|
|
def set_deleted(self, deleted):
|
|
|
|
self.deleted = deleted
|
|
|
|
|
|
|
|
def get_profile_data(self):
|
|
|
|
return self.profile_data
|
|
|
|
|
|
|
|
def set_profile_data(self, profile_data):
|
|
|
|
self.profile_data = profile_data
|
|
|
|
|
|
|
|
def get_plugin(self):
|
|
|
|
return self.plugin
|
|
|
|
|
|
|
|
def set_plugin(self, plugin):
|
2016-04-06 14:27:45 +03:00
|
|
|
self.plugin = plugin
|
2016-04-04 18:15:18 +03:00
|
|
|
|
|
|
|
def get_username(self):
|
|
|
|
return self.username
|
|
|
|
|
|
|
|
def set_username(self, username):
|
2016-04-06 14:27:45 +03:00
|
|
|
self.username = username
|
|
|
|
|
|
|
|
@property
|
|
|
|
def obj_name(self):
|
|
|
|
return "PROFILE"
|