-
Notifications
You must be signed in to change notification settings - Fork 0
/
ClassStructure.py
90 lines (69 loc) · 2.09 KB
/
ClassStructure.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/python3
class UserClass:
def __init__(self):
#def __init__(self,userid,userName,passwd,name,email,phone):
self.userid=None
self.userName = ''
self.passwd=''
self.name=''
self.email=''
self.phone=''
#self.address=address
self.currentFolderId=None
self.currentFolderName=None
self.HomeFolderId=None
def setUserDetails(self,userid,userName,passwd,name,email,phone):
self.userid=userid
self.userName = userName
self.passwd=passwd
self.name=name
self.email=email
self.phone=phone
def setCurrentFolderId(self,currentFolderId):
self.currentFolderId = currentFolderId
def setCurrentFolderName(self,currentFolderName):
self.currentFolderName=currentFolderName
def setHomeFolderId(self,HomeFolderId):
self.HomeFolderId=HomeFolderId
class FileClass:
def __init__(self):
#def __init__(self,fileid,filename,filepermission,size,owner,parentFolderId):
self.fileid=None
self.filename=''
self.filepermission=''
self.size=''
#with respect to DataBase Onwer is User Id who Own the file
self.owner=''
self.parentFolderId=None
def setFileDetails(self,fileid,filename,filepermission,size,owner,parentFolderId):
self.fileid=fileid
self.filename=filename
self.filepermission=filepermission
self.size=size
#with respect to DataBase Onwer is User Id who Own the file
self.owner=owner
self.parentFolderId=parentFolderId
class FolderClass:
def __init__(self):
#def __init__(self,folderid,foldername,folderpermission,uId,parentFolderId):
self.folderid=None
self.foldername=''
self.folderpermission=''
#with respect to DataBase Onwer is User Id who Own the file
self.uId=None
self.parentFolderId=None
def setFolderDetails(self,folderid,foldername,uId,parentFolderId):
self.folderid=folderid
self.foldername=foldername
#self.folderpermission=folderpermission
#with respect to DataBase Onwer is User Id who Own the file
self.uId=uId
self.parentFolderId=parentFolderId
#Dummy
class Company:
def __init__(self,ID,name,age,salary,address):
self.ID=ID
self.age=age
self.name=name
self.salary=salary
self.address=address