Subversion Repositories SmartDukaan

Rev

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

Rev 2356 Rev 2442
Line 33... Line 33...
33
}
33
}
34
 
34
 
35
struct DashboardUser{
35
struct DashboardUser{
36
	1:string username,
36
	1:string username,
37
	2:string password,
37
	2:string password,
38
	3:i64 dispatchTime,
38
	3:i64 warehouseId,
39
	4:i64 deliveryTime
39
	4:bool admin
40
}
40
}
41
 
41
 
42
struct LogisticsUser{
42
struct LogisticsUser{
43
	1:string username,
43
	1:string username,
44
	2:i64 providerId
44
	2:i64 providerId
Line 96... Line 96...
96
	Message getSubstitutedMessage(1:i64 id, 2:map<string,string> params) throws (1:HelperServiceException se),
96
	Message getSubstitutedMessage(1:i64 id, 2:map<string,string> params) throws (1:HelperServiceException se),
97
	
97
	
98
	//authenticate dashboard users
98
	//authenticate dashboard users
99
	bool addUser(1:string username, 2:string password, 3:i64 warehouseId) throws (1:HelperServiceException se),
99
	bool addUser(1:string username, 2:string password, 3:i64 warehouseId) throws (1:HelperServiceException se),
100
	bool deleteUser(1:string username) throws (1:HelperServiceException se),
100
	bool deleteUser(1:string username) throws (1:HelperServiceException se),
-
 
101
	
-
 
102
	/**
-
 
103
	 Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
-
 
104
	 The loggedOn timestamp for the dashboard user is updated .
-
 
105
	*/
-
 
106
	DashboardUser authenticateDashboardUser(1:string username, 2:string password) throws (1:HelperServiceException se),
-
 
107
	
101
	/**
108
	/**
102
	 Returns the warehouseId for the given user if the password matches. Returns -1 otherwise.
109
	Update the password of the dashboard user. Currently, there is no place where this method is called.
103
	 The loggedOn timestamp for the dashboard user is updated as a timestamp.
-
 
104
	 It's unclear to me when an exception is thrown : Chandranshu
-
 
105
	*/
110
	*/
106
	i64 authenticateUser(1:string username, 2:string password) throws (1:HelperServiceException se),
-
 
107
	bool updatePassword(1:string username, 2:string oldPassword, 3:string newPassword) throws (1:HelperServiceException se),
111
	bool updatePassword(1:string username, 2:string oldPassword, 3:string newPassword) throws (1:HelperServiceException se),
108
	
112
	
109
	/**
113
	/**
110
	 Returns the LogisticsUser struct associated with the given username and password if they match.
114
	 Returns the LogisticsUser struct associated with the given username and password if they match.
111
	 Throws an exception otherwise.
115
	 Throws an exception otherwise.