Subversion Repositories SmartDukaan

Rev

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

Rev 4544 Rev 4693
Line 6... Line 6...
6
/**
6
/**
7
Helper service
7
Helper service
8
created by @ashish
8
created by @ashish
9
**/
9
**/
10
 
10
 
-
 
11
struct Agent {
-
 
12
    1:i64 id,
-
 
13
    2:string name,
-
 
14
    3:string emailId,
-
 
15
    4:optional i64 managerId,
-
 
16
    5:string password,
-
 
17
    6:bool isActive
-
 
18
}
-
 
19
 
11
struct Mail{
20
struct Mail{
12
	1:list<string> to,
21
	1:list<string> to,
13
	2:string subject,
22
	2:string subject,
14
	3:string data,
23
	3:string data,
15
	4:string sender,
24
	4:string sender,
Line 154... Line 163...
154
	CatalogDashboardUser authenticateCatalogUser(1:string username, 2:string password, 3:i64 role) throws(1:HelperServiceException hse),
163
	CatalogDashboardUser authenticateCatalogUser(1:string username, 2:string password, 3:i64 role) throws(1:HelperServiceException hse),
155
	
164
	
156
	/**
165
	/**
157
	Saves the list of entity Ids to be shared with an email address 
166
	Saves the list of entity Ids to be shared with an email address 
158
	*/
167
	*/
159
	void shareEntities(1:list<i64> entityIds, 2:string email) throws(1:HelperServiceException hse)
168
	void shareEntities(1:list<i64> entityIds, 2:string email) throws(1:HelperServiceException hse),
-
 
169
	
-
 
170
    // Methods to read agent information
-
 
171
    list<Agent> getAgents();
-
 
172
    bool validateLogIn(1:string emailId, 2:string password);
-
 
173
    void updatePasswordForAgent(1:string agentEmailId, 2:string password);
-
 
174
 
-
 
175
    // Methods to read roles and permissions information
-
 
176
    list<string> getRoleNamesForAgent(1:string agentEmailId);
-
 
177
    list<string> getPermissionsForRoleName(1:string roleName);	
160
}
178
}
161
179