Menu

[r3057]: / trunk / ch.sahits.codegen.test / fragments / headless_test / Taz8.java  Maximize  Restore  History

Download this file

42 lines (40 with data), 1.5 kB

 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
package ch.sahits;
/**
* This interface provides the functionality that is provided through
* the webservice:
* <ul>
* <li>Check the database for a username password combination</li>
* <li>Add a new record to the database</li>
* <li>Generate a new password and send it per email</li>
* </ul>
* To help the functionality of an implementing class the following two
* methods should be implemented as well:<br>
* <code>private String generateNewPassword(String userName, String email)</code><br>
* <code>private String generateNewPassword(String email)</code>
*/
public interface Taz {
/**
* Check the login request based on the username password combination
* @param userName username
* @param password password
* @return true if the combination is valid
*/
public boolean checkLoginRequest(String userName, String password);
/**
* Generate a new password and send it per email. The parameter userName is optional
* and if supplied is used to check against the email address
* @param email email
* @param userName optional username
*/
public void sendMailWithNewPassword(String email,String userName);
/**
* Add a new entry to the database
* @param codeExt
* @param text
* @param sort
* @param status
* @param isOriginalAntC
* @return null if the entry could be added succesfully an error message otherwise
*/
public String addEntry(String codeExt, String text, long sort, String status, String isOriginalAntC);
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.