Revision 30:aec0089bb43e

View differences:

pom.xml
48 48
				<artifactId>maven-compiler-plugin</artifactId>
49 49
				<version>2.3.2</version>
50 50
				<configuration>
51
					<source>1.5</source>
52
					<target>1.5</target>
51
					<source>1.6</source>
52
					<target>1.6</target>
53 53
				</configuration>
54 54
			</plugin>
55 55
		</plugins>
src/my/com/upass/maybank/MaybankFacade.java
1
package my.com.upass.maybank;
2

  
3
import javax.jws.WebMethod;
4
import javax.jws.WebParam;
5
import javax.jws.WebResult;
6
import javax.jws.WebService;
7

  
8
import my.com.upass.maybank.MinimalMaybankFacade;
9

  
10
@WebService
11
public interface MaybankFacade extends MinimalMaybankFacade {
12

  
13
	int newAdminUser(
14
			@WebParam(name="appKey") String appKey,
15
			@WebParam(name = "username") String username,
16
			@WebParam(name="hashedPassword") String hashedPassword);
17

  
18
	int changePan(
19
			@WebParam(name="appKey") String appKey, 
20
			@WebParam (name = "username") String username, 
21
			@WebParam(name="pan1") String pan1);
22

  
23
	int changePan2(
24
			String appKey, String username, String pan2);
25

  
26
	int convertPublicToM2u(
27
			String appKey, String username, String pan1, String pan2);
28

  
29
	Object lookupUserName(
30
			String appKey, String username);
31

  
32
	Object lookupUserNameByGroup(
33
			String appKey, String username);
34

  
35
	/*
36
	 * TODO: What kind of grouping is currently supported?
37
	 * As for the parameter:
38
	 * Instead of username, shouldn't it be groupname?
39
	 */
40
	// TODO: The return type must be refined.
41
	Object lookupPan(
42
			String appKey, String pan1);
43

  
44
	// TODO: The return type must be refined.
45
	Object lookupPan2(
46
			String appKey, String pan2);
47

  
48
	// TODO: The return type must be refined.
49
	Object lookupPanCc(
50
			String appKey, String panCC);
51

  
52
	int deleteUser(
53
			String appKey, String username);
54

  
55
	// TODO: The return type must be refined.
56
	@WebMethod
57
	Object searchUserByFilter(
58
			String appKey, String searchFilter);
59

  
60
	/*
61
	 * TODO: Currently searchFilter is expected to
62
	 * conform with rfc2254. We need to choose an
63
	 * appropiate alternative.
64
	 */
65
}
src/my/com/upass/maybank/MaybankFacadeImpl.java
1
package my.com.upass.maybank;
2

  
3
import javax.jws.WebService;
4

  
5
import my.com.upass.maybank.MinimalMaybankFacadeImpl;
6

  
7
import org.apache.commons.lang.NotImplementedException;
8

  
9
@WebService(endpointInterface = "my.com.upass.maybank.MaybankFacade")
10
public class MaybankFacadeImpl extends MinimalMaybankFacadeImpl implements MaybankFacade {
11

  
12
	public int newAdminUser(String appKey, String username, String hashedPassword) {
13
		// TODO Auto-generated method stub
14
		throw new NotImplementedException();
15
	}
16

  
17
	public int changePan(String appKey, String username, String pan1) {
18
		// TODO Auto-generated method stub
19
		throw new NotImplementedException();
20
	}
21

  
22
	public int changePan2(String appKey, String username, String pan2) {
23
		// TODO Auto-generated method stub
24
		throw new NotImplementedException();
25
	}
26

  
27
	public int convertPublicToM2u(String appKey, String username, String pan1, String pan2) {
28
		// TODO Auto-generated method stub
29
		throw new NotImplementedException();
30
	}
31

  
32
	public Object lookupUserName(String appKey, String username) {
33
		// TODO Auto-generated method stub
34
		throw new NotImplementedException();
35
	}
36

  
37
	public Object lookupUserNameByGroup(String appKey, String username) {
38
		// TODO Auto-generated method stub
39
		throw new NotImplementedException();
40
	}
41

  
42
	public Object lookupPan(String appKey, String pan1) {
43
		// TODO Auto-generated method stub
44
		throw new NotImplementedException();
45
	}
46

  
47
	public Object lookupPan2(String appKey, String pan2) {
48
		// TODO Auto-generated method stub
49
		throw new NotImplementedException();
50
	}
51

  
52
	public Object lookupPanCc(String appKey, String panCC) {
53
		// TODO Auto-generated method stub
54
		throw new NotImplementedException();
55
	}
56

  
57
	public int deleteUser(String appKey, String username) {
58
		// TODO Auto-generated method stub
59
		throw new NotImplementedException();
60
	}
61

  
62
	public Object searchUserByFilter(String appKey, String searchFilter) {
63
		// TODO Auto-generated method stub
64
		throw new NotImplementedException();
65
	}
66
}

Also available in: Unified diff