Subversion Repositories SmartDukaan

Rev

Rev 1611 | Rev 2023 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1611 Rev 1891
Line 43... Line 43...
43
	1:string username,
43
	1:string username,
44
	2:i64 providerId
44
	2:i64 providerId
45
}
45
}
46
 
46
 
47
struct StatisticsUser{
47
struct StatisticsUser{
48
	1:string username,
48
	1:string username
49
}
49
}
50
 
50
 
51
struct UserEmail{
51
struct UserEmail{
52
	1:i64 id,
52
	1:i64 id,
53
	2:string emailTo,
53
	2:string emailTo,
Line 58... Line 58...
58
	7:string emailType,
58
	7:string emailType,
59
	8:bool status,
59
	8:bool status,
60
	9:i64 timestamp
60
	9:i64 timestamp
61
}
61
}
62
 
62
 
-
 
63
struct ReportUser{
-
 
64
	1:string username,
-
 
65
	2:i64 role
-
 
66
}
-
 
67
 
-
 
68
struct Report{
-
 
69
	1:i64 id,
-
 
70
	2:string description,
-
 
71
	3:string controller
-
 
72
}
-
 
73
 
63
service HelperService{
74
service HelperService{
64
	/**
75
	/**
65
	* For closing the open session in sqlalchemy
76
	* For closing the open session in sqlalchemy
66
	*/
77
	*/
67
	void closeSession(),
78
	void closeSession(),
Line 97... Line 108...
97
	
108
	
98
	/**
109
	/**
99
	 Returns the StatisticsUser struct associated with the given username and password if they match.
110
	 Returns the StatisticsUser struct associated with the given username and password if they match.
100
	 Throws an exception otherwise.
111
	 Throws an exception otherwise.
101
	*/
112
	*/
102
	StatisticsUser authenticateStatisticsUser(1:string username, 2:string password) throws(1:HelperServiceException hse)
113
	StatisticsUser authenticateStatisticsUser(1:string username, 2:string password) throws(1:HelperServiceException hse),
-
 
114
	
-
 
115
	/**
-
 
116
	 Returns the ReportUser struct associated with the given username and password if they match.
-
 
117
	 Throws an exception otherwise.
-
 
118
	*/
-
 
119
	ReportUser authenticateReportUser(1:string username, 2:string password) throws(1:HelperServiceException hse),
-
 
120
	
-
 
121
	/**
-
 
122
	Returns list of reports which are configured for the given role. 
-
 
123
	*/
-
 
124
	list<Report> getReports(1:i64 role)
103
}
125
}
104
126