Revision 39:e450611bea1f
src/my/com/upass/maybank/MaybankFacade.java | ||
---|---|---|
1 | 1 |
package my.com.upass.maybank; |
2 | 2 |
|
3 |
import javax.jws.WebMethod; |
|
3 | 4 |
import javax.jws.WebParam; |
4 | 5 |
import javax.jws.WebResult; |
5 | 6 |
import javax.jws.WebService; |
... | ... | |
23 | 24 |
@WebParam(name = "panCC") String panCC); |
24 | 25 |
|
25 | 26 |
@WebResult(name = "responseCode") |
26 |
int changePan( |
|
27 |
@WebParam(name = "appAccessId") String appAccessId, |
|
28 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
|
29 |
@WebParam(name = "username") String username, |
|
30 |
@WebParam(name = "pan1") String pan1); |
|
31 |
|
|
32 |
@WebResult(name = "responseCode") |
|
33 |
int changePan2( |
|
34 |
@WebParam(name = "appAccessId") String appAccessId, |
|
35 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
|
36 |
@WebParam(name = "username") String username, |
|
37 |
@WebParam(name = "pan2") String pan2); |
|
38 |
|
|
39 |
@WebResult(name = "responseCode") |
|
40 | 27 |
int convertPublicToM2u( |
41 | 28 |
@WebParam(name = "appAccessId") String appAccessId, |
42 | 29 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
... | ... | |
45 | 32 |
@WebParam(name = "pan2") String pan2); |
46 | 33 |
|
47 | 34 |
@WebResult(name = "responseElement") |
48 |
ResponseElement lookupUserName( |
|
49 |
@WebParam(name = "appAccessId") String appAccessId, |
|
50 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
|
51 |
@WebParam(name = "username") String username); |
|
52 |
|
|
53 |
@WebResult(name = "responseElement") |
|
54 | 35 |
ResponseElement lookupPublicUserName( |
55 | 36 |
@WebParam(name = "appAccessId") String appAccessId, |
56 | 37 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
57 | 38 |
@WebParam(name = "username") String username); |
58 | 39 |
|
59 | 40 |
@WebResult(name = "responseElement") |
60 |
ResponseElement lookupUserNameByGroup(
|
|
41 |
ResponseElement lookupUsernameByGroup(
|
|
61 | 42 |
@WebParam(name = "appAccessId") String appAccessId, |
62 | 43 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
63 | 44 |
@WebParam(name = "username") String username); |
... | ... | |
97 | 78 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
98 | 79 |
@WebParam(name = "searchFilter") String searchFilter); |
99 | 80 |
|
81 |
@WebResult(name = "responseCode") |
|
82 |
int changeIdNo( |
|
83 |
@WebParam(name = "appAccessId") String appAccessId, |
|
84 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
|
85 |
@WebParam(name = "username") String username, |
|
86 |
@WebParam(name = "idNo") String idNo); |
|
87 |
|
|
100 | 88 |
/* |
101 | 89 |
* TODO: Currently searchFilter is expected to |
102 | 90 |
* conform with rfc2254. We need to choose an |
... | ... | |
137 | 125 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
138 | 126 |
@WebParam(name = "username") String username, |
139 | 127 |
@WebParam(name = "newHashedPassword") String newHashedPassword); |
128 |
|
|
129 |
@WebResult(name = "responseCode") |
|
130 |
@Override |
|
131 |
int changePan1( |
|
132 |
@WebParam(name = "appAccessId") String appAccessId, |
|
133 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
|
134 |
@WebParam(name = "username") String username, |
|
135 |
@WebParam(name = "pan1") String pan1); |
|
136 |
|
|
137 |
@WebResult(name = "responseCode") |
|
138 |
@Override |
|
139 |
int changePan2( |
|
140 |
@WebParam(name = "appAccessId") String appAccessId, |
|
141 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
|
142 |
@WebParam(name = "username") String username, |
|
143 |
@WebParam(name = "pan2") String pan2); |
|
144 |
|
|
145 |
@WebResult(name = "responseElement") |
|
146 |
ResponseElement lookupUsername( |
|
147 |
@WebParam(name = "appAccessId") String appAccessId, |
|
148 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
|
149 |
@WebParam(name = "username") String username); |
|
150 |
|
|
151 |
@WebMethod(exclude = true) |
|
152 |
@Override |
|
153 |
Response lookupUsername_internal( |
|
154 |
String appAccessId, String hashedSecretKey, String username); |
|
140 | 155 |
} |
src/my/com/upass/maybank/MaybankFacadeImpl.java | ||
---|---|---|
24 | 24 |
|
25 | 25 |
@Override |
26 | 26 |
public int newAdminUser( |
27 |
String appAccessId, String hashedSecretKey,
|
|
27 |
String appAccessId, String hashedSecretKey, |
|
28 | 28 |
String username, String hashedPassword) { |
29 |
|
|
29 |
|
|
30 | 30 |
throw new NotImplementedException(); |
31 | 31 |
} |
32 | 32 |
|
... | ... | |
46 | 46 |
} |
47 | 47 |
|
48 | 48 |
@Override |
49 |
public int changePan(
|
|
50 |
String appAccessId, String hashedSecretKey,
|
|
51 |
String username, String pan1) { |
|
52 |
|
|
49 |
public int convertPublicToM2u(
|
|
50 |
String appAccessId, String hashedSecretKey, |
|
51 |
String username, String pan1, String pan2) {
|
|
52 |
|
|
53 | 53 |
// TODO Auto-generated method stub |
54 | 54 |
throw new NotImplementedException(); |
55 | 55 |
} |
56 | 56 |
|
57 | 57 |
@Override |
58 |
public int changePan2( |
|
59 |
String appAccessId, String hashedSecretKey, |
|
60 |
String username, String pan2) { |
|
61 |
|
|
58 |
public ResponseElement lookupUsername( |
|
59 |
String appAccessId, String hashedSecretKey, |
|
60 |
String username) { |
|
61 |
|
|
62 |
final Response response = super.lookupUsername_internal(appAccessId, hashedSecretKey, username); |
|
63 |
return new ResponseElement(response); |
|
64 |
} |
|
65 |
|
|
66 |
@Override |
|
67 |
public ResponseElement lookupPublicUserName( |
|
68 |
String appAccessId, String hashedSecretKey, |
|
69 |
String username) { |
|
70 |
|
|
62 | 71 |
// TODO Auto-generated method stub |
63 | 72 |
throw new NotImplementedException(); |
64 | 73 |
} |
65 | 74 |
|
66 | 75 |
@Override |
67 |
public int convertPublicToM2u( |
|
68 |
String appAccessId, String hashedSecretKey, |
|
69 |
String username, String pan1, String pan2) { |
|
70 |
|
|
71 |
// TODO Auto-generated method stub |
|
72 |
throw new NotImplementedException(); |
|
73 |
} |
|
74 |
|
|
75 |
@Override |
|
76 |
public ResponseElement lookupUserName( |
|
77 |
String appAccessId, String hashedSecretKey, |
|
78 |
String username) { |
|
79 |
|
|
80 |
// TODO Auto-generated method stub |
|
81 |
throw new NotImplementedException(); |
|
82 |
} |
|
83 |
|
|
84 |
@Override |
|
85 |
public ResponseElement lookupPublicUserName( |
|
86 |
String appAccessId, String hashedSecretKey, |
|
87 |
String username) { |
|
88 |
|
|
89 |
// TODO Auto-generated method stub |
|
90 |
throw new NotImplementedException(); |
|
91 |
} |
|
92 |
|
|
93 |
@Override |
|
94 |
public ResponseElement lookupUserNameByGroup( |
|
76 |
public ResponseElement lookupUsernameByGroup( |
|
95 | 77 |
String appAccessId, String hashedSecretKey, |
96 | 78 |
String username) { |
97 |
|
|
79 |
|
|
98 | 80 |
// TODO Auto-generated method stub |
99 | 81 |
throw new NotImplementedException(); |
100 | 82 |
} |
101 | 83 |
|
102 | 84 |
@Override |
103 | 85 |
public ResponseElement lookupPan( |
104 |
String appAccessId, String hashedSecretKey,
|
|
86 |
String appAccessId, String hashedSecretKey, |
|
105 | 87 |
String pan1) { |
106 |
|
|
88 |
|
|
107 | 89 |
// TODO Auto-generated method stub |
108 | 90 |
throw new NotImplementedException(); |
109 | 91 |
} |
110 | 92 |
|
111 | 93 |
@Override |
112 | 94 |
public ResponseElement lookupPan2( |
113 |
String appAccessId, String hashedSecretKey,
|
|
95 |
String appAccessId, String hashedSecretKey, |
|
114 | 96 |
String pan2) { |
115 |
|
|
97 |
|
|
116 | 98 |
// TODO Auto-generated method stub |
117 | 99 |
throw new NotImplementedException(); |
118 | 100 |
} |
... | ... | |
121 | 103 |
public ResponseElement lookupPanCc( |
122 | 104 |
String appAccessId, String hashedSecretKey, |
123 | 105 |
String panCC) { |
124 |
|
|
106 |
|
|
125 | 107 |
// TODO Auto-generated method stub |
126 | 108 |
throw new NotImplementedException(); |
127 | 109 |
} |
128 | 110 |
|
129 | 111 |
@Override |
130 | 112 |
public int deleteUser( |
131 |
String appAccessId, String hashedSecretKey,
|
|
113 |
String appAccessId, String hashedSecretKey, |
|
132 | 114 |
String username) { |
133 |
|
|
115 |
|
|
134 | 116 |
// TODO Auto-generated method stub |
135 | 117 |
throw new NotImplementedException(); |
136 | 118 |
} |
137 | 119 |
|
138 | 120 |
@Override |
139 | 121 |
public ResponseElement searchUserByFilter( |
140 |
String appAccessId, String hashedSecretKey,
|
|
122 |
String appAccessId, String hashedSecretKey, |
|
141 | 123 |
String searchFilter) { |
142 |
|
|
124 |
|
|
125 |
// TODO Auto-generated method stub |
|
126 |
throw new NotImplementedException(); |
|
127 |
} |
|
128 |
|
|
129 |
@Override |
|
130 |
public int changeIdNo( |
|
131 |
String appAccessId, String hashedSecretKey, |
|
132 |
String username, String idNo) { |
|
133 |
|
|
143 | 134 |
// TODO Auto-generated method stub |
144 | 135 |
throw new NotImplementedException(); |
145 | 136 |
} |
src/my/com/upass/maybank/ResponseElement.java | ||
---|---|---|
10 | 10 |
private int code; |
11 | 11 |
private Map<String, String> map; |
12 | 12 |
|
13 |
// |
|
13 |
public ResponseElement() { |
|
14 |
|
|
15 |
} |
|
16 |
|
|
17 |
public ResponseElement(Response response) { |
|
18 |
setCode(response.getCode()); |
|
19 |
setMap(response.getMap()); |
|
20 |
} |
|
14 | 21 |
|
15 | 22 |
public int getCode() { |
16 | 23 |
return code; |
Also available in: Unified diff