Subversion Repositories SmartDukaan

Rev

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

Rev 495 Rev 751
Line 37... Line 37...
37
	2:string password,
37
	2:string password,
38
	3:i64 dispatchTime,
38
	3:i64 dispatchTime,
39
	4:i64 deliveryTime
39
	4:i64 deliveryTime
40
}
40
}
41
 
41
 
-
 
42
struct LogisticsUser{
-
 
43
	1:string username,
-
 
44
	2:i64 providerId
-
 
45
}
-
 
46
 
42
service HelperService{
47
service HelperService{
43
 
48
 
44
	void sendMail(1:Mail mail) throws (1:HelperServiceException se),
49
	void sendMail(1:Mail mail) throws (1:HelperServiceException se),
45
	void sendText(1:TextMessage message) throws (1:HelperServiceException se),
50
	void sendText(1:TextMessage message) throws (1:HelperServiceException se),
46
	
51
	
Line 50... Line 55...
50
	Message getSubstitutedMessage(1:i64 id, 2:map<string,string> params) throws (1:HelperServiceException se),
55
	Message getSubstitutedMessage(1:i64 id, 2:map<string,string> params) throws (1:HelperServiceException se),
51
	
56
	
52
	//authenticate dashboard users
57
	//authenticate dashboard users
53
	bool addUser(1:string username, 2:string password, 3:i64 warehouseId) throws (1:HelperServiceException se),
58
	bool addUser(1:string username, 2:string password, 3:i64 warehouseId) throws (1:HelperServiceException se),
54
	bool deleteUser(1:string username) throws (1:HelperServiceException se),
59
	bool deleteUser(1:string username) throws (1:HelperServiceException se),
-
 
60
	/**
-
 
61
	 Returns the warehouseId for the given user if the password matches. Returns -1 otherwise.
-
 
62
	 The loggedOn timestamp for the dashboard user is updated as a timestamp.
-
 
63
	 It's unclear to me when an exception is thrown : Chandranshu
-
 
64
	*/
55
	i64 authenticateUser(1:string username, 2:string password) throws (1:HelperServiceException se),
65
	i64 authenticateUser(1:string username, 2:string password) throws (1:HelperServiceException se),
56
	bool updatePassword(1:string username, 2:string oldPassword, 3:string newPassword) throws (1:HelperServiceException se)
66
	bool updatePassword(1:string username, 2:string oldPassword, 3:string newPassword) throws (1:HelperServiceException se),
-
 
67
	
-
 
68
	/**
-
 
69
	 Returns the LogisticsUser struct associated with the given username and password if they match.
-
 
70
	 Throws an exception otherwise.
-
 
71
	*/
-
 
72
	LogisticsUser authenticateLogisticsUser(1:string username, 2:string password) throws(1:HelperServiceException hse)
57
}
73
}
58
74