Revision 91:37fde9e2b025
WebContent/WEB-INF/config/ss102_user_admin/form-beans.xml | ||
---|---|---|
111 | 111 |
<form-property name="hasRIBUnlockAccess" type="java.lang.Boolean" /> |
112 | 112 |
<form-property name="hasRIBUnlockTACAccess" type="java.lang.Boolean" /> |
113 | 113 |
<form-property name="hasRIBActivateAccess" type="java.lang.Boolean" /> |
114 |
|
|
115 |
<!-- new ss112 bean--> |
|
116 |
<form-property name="clientAppList" type="java.util.List" /> |
|
117 |
<form-property name="selectedAppId" type="java.lang.Integer" /> |
|
118 |
<form-property name="selectedAppName" type="java.lang.String" /> |
|
119 |
<form-property name="userAlias" type="java.lang.String" /> |
|
120 |
<form-property name="m2uPan1" type="java.lang.String" /> |
|
121 |
<form-property name="m2uPan2" type="java.lang.String" /> |
|
122 |
<form-property name="onlineStockIdNo" type="java.lang.String" /> |
|
123 |
<form-property name="ticketingFullName" type="java.lang.String" /> |
|
124 |
<form-property name="ticketingFirstName" type="java.lang.String" /> |
|
125 |
<form-property name="ticketingLastName" type="java.lang.String" /> |
|
126 |
<form-property name="ticketingPayeeCode" type="java.lang.String" /> |
|
127 |
<form-property name="ccppPanCC" type="java.lang.String" /> |
|
128 |
<form-property name="im2uWSFlag" type="java.lang.String" /> |
|
129 |
<form-property name="im2uWSIdentCode" type="java.lang.String" /> |
|
130 |
<form-property name="im2uWSMySgId" type="java.lang.String" /> |
|
131 |
<form-property name="im2uWSRegTimestamp" type="java.lang.String" /> |
|
132 |
|
|
114 | 133 |
</form-bean> |
115 | 134 |
|
116 | 135 |
|
WebContent/WEB-INF/config/ss112_user/struts-config.xml | ||
---|---|---|
13 | 13 |
type="com.ib.ibss.controller.actions.ss112_user.IBSSRetailUserSearchAction" |
14 | 14 |
validate="false"> |
15 | 15 |
<forward name="success" path=".ibss.retail.user.search" /> |
16 |
<forward name="create" path="/ss112/retailCreateUser.do" /> |
|
16 | 17 |
</action> |
17 | 18 |
<!-- User Enquiry --> |
18 | 19 |
<action name="ibssUserForm" path="/ss112/userEnquiryScreen" |
... | ... | |
33 | 34 |
<action name="ibssUserForm" path="/ss112/userDetailRedirect" |
34 | 35 |
scope="session" forward=".ibss.retail.enquiry.details"> |
35 | 36 |
</action> |
37 |
|
|
38 |
<!-- User Creation --> |
|
39 |
<action name="ibssUserForm" path="/ss112/retailCreateUser" scope="session" |
|
40 |
type="com.ib.ibss.controller.actions.ss112_user.IBSSRetailUserCreateDetailsAction" |
|
41 |
validate="false"> |
|
42 |
<forward name="success" path=".ibss.retail.user.create" /> |
|
43 |
<forward name="failure" path=".ibss.retail.enquiry.main" /> |
|
44 |
</action> |
|
45 |
<action name="ibssUserForm" path="/ss112/retailCreateUserConfirm" scope="session" |
|
46 |
type="com.ib.ibss.controller.actions.ss112_user.IBSSRetailUserCreateConfirmAction" |
|
47 |
validate="false"> |
|
48 |
<forward name="success" path=".ibss.retail.user.create.confirm" /> |
|
49 |
<forward name="failure" path=".ibss.retail.user.create" /> |
|
50 |
<forward name="back" path="/ss112/userEnquiryScreen.do" /> |
|
51 |
</action> |
|
52 |
<action name="ibssUserForm" path="/ss112/retailCreateUserResult" scope="session" |
|
53 |
type="com.ib.ibss.controller.actions.ss112_user.IBSSRetailUserCreateResultAction" |
|
54 |
validate="false"> |
|
55 |
<forward name="success" path=".ibss.retail.user.create.result" /> |
|
56 |
<forward name="failure" path=".ibss.retail.user.create.confirm" /> |
|
57 |
<forward name="back" path=".ibss.retail.user.create" /> |
|
58 |
</action> |
|
59 |
|
|
36 | 60 |
<!-- User Deletion --> |
37 | 61 |
<action name="ibssUserForm" path="/ss112/delUserConfirm" scope="session" |
38 | 62 |
type="com.ib.ibss.controller.actions.ss112_user.IBSSRetailUserDeleteConfirmAction" |
WebContent/WEB-INF/config/ss112_user/tiles-defs.xml | ||
---|---|---|
17 | 17 |
<definition name=".ibss.retail.enquiry.details" extends=".ibss.content.template"> |
18 | 18 |
<put name="body" value="/jsp/ss112_user/ibssRetailUserDetails.jsp" /> |
19 | 19 |
</definition> |
20 |
|
|
21 |
<!-- Create User --> |
|
22 |
<definition name=".ibss.retail.user.create" |
|
23 |
extends=".ibss.content.template"> |
|
24 |
<put name="body" value="/jsp/ss112_user/ibssRetailUserCreateDetails.jsp" /> |
|
25 |
</definition> |
|
26 |
<definition name=".ibss.retail.user.create.confirm" |
|
27 |
extends=".ibss.content.template"> |
|
28 |
<put name="body" value="/jsp/ss112_user/ibssRetailUserCreateConfirm.jsp" /> |
|
29 |
</definition> |
|
30 |
<definition name=".ibss.retail.user.create.result" |
|
31 |
extends=".ibss.content.template"> |
|
32 |
<put name="body" value="/jsp/ss112_user/ibssRetailUserCreateResult.jsp" /> |
|
33 |
</definition> |
|
34 |
|
|
20 | 35 |
<!-- Edit User --> |
21 | 36 |
<definition name=".ibss.retail.enquiry.details.edit" |
22 | 37 |
extends=".ibss.content.template"> |
WebContent/WEB-INF/config/ss112_user/validation.xml | ||
---|---|---|
48 | 48 |
</var> |
49 | 49 |
</field> |
50 | 50 |
</form> |
51 |
|
|
52 |
<form name="ss112RetailUserCreateConfirmValidation"> |
|
53 |
<field depends="required" property="selectedAppId"> |
|
54 |
<arg0 key="user.application"/> |
|
55 |
</field> |
|
56 |
</form> |
|
57 |
|
|
58 |
<form name="ss112RetailUserM2UCreateResultValidation"> |
|
59 |
<field depends="required" property="userAlias"> |
|
60 |
<arg0 key="user.id"/> |
|
61 |
</field> |
|
62 |
<field depends="required" property="pass"> |
|
63 |
<arg0 key="user.new.password"/> |
|
64 |
</field> |
|
65 |
<field depends="required" property="confirmPass"> |
|
66 |
<arg0 key="user.confirm.password"/> |
|
67 |
</field> |
|
68 |
<field depends="required" property="m2uPan1"> |
|
69 |
<arg0 key="user.pan.1"/> |
|
70 |
</field> |
|
71 |
<field depends="required" property="m2uPan2"> |
|
72 |
<arg0 key="user.pan.2"/> |
|
73 |
</field> |
|
74 |
</form> |
|
75 |
|
|
76 |
<form name="ss112RetailUserOnlineStockCreateResultValidation"> |
|
77 |
<field depends="required" property="userAlias"> |
|
78 |
<arg0 key="user.id"/> |
|
79 |
</field> |
|
80 |
<field depends="required" property="onlineStockIdNo"> |
|
81 |
<arg0 key="user.id.no"/> |
|
82 |
</field> |
|
83 |
</form> |
|
84 |
|
|
85 |
<form name="ss112RetailUserTicketingCreateResultValidation"> |
|
86 |
<field depends="required" property="userAlias"> |
|
87 |
<arg0 key="user.id"/> |
|
88 |
</field> |
|
89 |
<field depends="required" property="pass"> |
|
90 |
<arg0 key="user.new.password"/> |
|
91 |
</field> |
|
92 |
<field depends="required" property="confirmPass"> |
|
93 |
<arg0 key="user.confirm.password"/> |
|
94 |
</field> |
|
95 |
<field depends="required" property="ticketingFullName"> |
|
96 |
<arg0 key="user.full.name"/> |
|
97 |
</field> |
|
98 |
<field depends="required" property="ticketingFirstName"> |
|
99 |
<arg0 key="user.first.name"/> |
|
100 |
</field> |
|
101 |
<field depends="required" property="ticketingLastName"> |
|
102 |
<arg0 key="user.last.name"/> |
|
103 |
</field> |
|
104 |
<field depends="required" property="ticketingPayeeCode"> |
|
105 |
<arg0 key="user.payee.code"/> |
|
106 |
</field> |
|
107 |
</form> |
|
108 |
|
|
109 |
<form name="ss112RetailUserCCPPCreateResultValidation"> |
|
110 |
<field depends="required" property="userAlias"> |
|
111 |
<arg0 key="user.id"/> |
|
112 |
</field> |
|
113 |
<field depends="required" property="pass"> |
|
114 |
<arg0 key="user.new.password"/> |
|
115 |
</field> |
|
116 |
<field depends="required" property="confirmPass"> |
|
117 |
<arg0 key="user.confirm.password"/> |
|
118 |
</field> |
|
119 |
<field depends="required" property="ccppPanCC"> |
|
120 |
<arg0 key="user.pan.cc"/> |
|
121 |
</field> |
|
122 |
</form> |
|
123 |
|
|
124 |
<form name="ss112RetailUserIM2UCreateResultValidation"> |
|
125 |
<field depends="required" property="userAlias"> |
|
126 |
<arg0 key="user.ws.ident.code"/> |
|
127 |
</field> |
|
128 |
<field depends="required" property="im2uWSIdentCode"> |
|
129 |
<arg0 key="user.id"/> |
|
130 |
</field> |
|
131 |
<field depends="required" property="im2uWSMySgId"> |
|
132 |
<arg0 key="user.ws.my.sg.id"/> |
|
133 |
</field> |
|
134 |
<field depends="required" property="im2uWSRegTimestamp"> |
|
135 |
<arg0 key="user.ws.registration.time.stamp"/> |
|
136 |
</field> |
|
137 |
</form> |
|
51 | 138 |
</formset> |
52 | 139 |
</form-validation> |
53 | 140 |
|
WebContent/WEB-INF/config/ss221_settings/struts-config.xml | ||
---|---|---|
18 | 18 |
type="com.ib.ibss.controller.actions.ss221_settings.IBSSUpassMaintenanceDetailsAction" |
19 | 19 |
validate="false"> |
20 | 20 |
<forward name="success" path=".ibss.upass.maintenance.details" /> |
21 |
<!-- <forward name="back" path=".ibss.maintenance.main.page" />
|
|
22 |
<forward name="failure" path=".ibss.maintenance.main.page" /> -->
|
|
21 |
<forward name="back" path=".ibss.maintenance.main.page" /> |
|
22 |
<forward name="failure" path=".ibss.maintenance.main.page" /> |
|
23 | 23 |
</action> |
24 | 24 |
|
25 | 25 |
<action name="settingsForm" path="/ss221/upassMaintenanceEdit" scope="session" |
WebContent/WEB-INF/config/ss221_settings/validation.xml | ||
---|---|---|
11 | 11 |
</form> |
12 | 12 |
|
13 | 13 |
<form name="upassSettingsEditValidation"> |
14 |
<field depends="required, numeric" property="PASSWORD_MIN_LENGTH"> |
|
14 |
<!-- <field depends="required, numeric" property="PASSWORD_MIN_LENGTH">
|
|
15 | 15 |
<arg0 key="upass.password.minimum.length"/> |
16 |
</field> |
|
16 |
</field> -->
|
|
17 | 17 |
|
18 | 18 |
<field depends="required, numeric" property="PASSWORD_GENERATION"> |
19 | 19 |
<arg0 key="upass.password.generation"/> |
WebContent/jsp/ss112_user/ibssRetailUserCreateConfirm.jsp | ||
---|---|---|
1 |
<%@ taglib uri="/WEB-INF/tld/struts-html" prefix="html"%> |
|
2 |
<%@ taglib uri="/WEB-INF/tld/struts-html-el" prefix="htmlEL"%> |
|
3 |
<%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean"%> |
|
4 |
<%@ taglib uri="/WEB-INF/tld/struts-logic" prefix="logic"%> |
|
5 |
<%@ taglib uri="/WEB-INF/tld/struts-logic-el" prefix="logicEL"%> |
|
6 |
<%@ taglib uri="/WEB-INF/tld/c" prefix="c"%> |
|
7 |
|
|
8 |
<h3 class="title"><strong><c:out value="${sessionScope.displayDesc}"/> - <bean:message key="general.button.create" /></strong></h3> |
|
9 |
|
|
10 |
<table id="errorTable"> |
|
11 |
<tr> |
|
12 |
<td><span id="serverSideError" class="error"><jsp:include |
|
13 |
flush="true" page="/jsp/errorHandler.jsp"></jsp:include></span></td> |
|
14 |
</tr> |
|
15 |
</table> |
|
16 |
|
|
17 |
<table class="stepTable"> |
|
18 |
<tr> |
|
19 |
<td> </td> |
|
20 |
<td> |
|
21 |
<div id="steps"><span> |
|
22 |
<bean:message key="general.title.steps" arg0="2" arg1="3" /></span></div> |
|
23 |
</td> |
|
24 |
</tr> |
|
25 |
</table> |
|
26 |
<htmlEL:form action="/ss112/retailCreateUserResult.do"> |
|
27 |
<table class="tabularForm"> |
|
28 |
<tr> |
|
29 |
<td width="72"> </td> |
|
30 |
<td width="140"> </td> |
|
31 |
<td width="345"> </td> |
|
32 |
<td width="3"> </td> |
|
33 |
<td width="44"> </td> |
|
34 |
</tr> |
|
35 |
|
|
36 |
<tr> |
|
37 |
<td width="72"> </td> |
|
38 |
<td width="140"><bean:message key="user.application"/>:</td> |
|
39 |
<td width="345"><c:out value="${ibssUserForm.map.selectedAppName}"/></td> |
|
40 |
<td width="3"> </td> |
|
41 |
<td width="44"> </td> |
|
42 |
</tr> |
|
43 |
|
|
44 |
<tr> |
|
45 |
<td width="72"> </td> |
|
46 |
<td width="140"><bean:message key="user.id"/>:</td> |
|
47 |
<td width="345"><htmlEL:text property="userAlias" name="ibssUserForm" maxlength="64" autocomplete="off"/></td> |
|
48 |
<td width="3"> </td> |
|
49 |
<td width="44"> </td> |
|
50 |
</tr> |
|
51 |
|
|
52 |
<c:if test="${ibssUserForm.map.selectedAppId eq 1 || ibssUserForm.map.selectedAppId eq 3 || ibssUserForm.map.selectedAppId eq 4}"> |
|
53 |
<tr> |
|
54 |
<td width="72"> </td> |
|
55 |
<td width="140"><bean:message key="user.new.password"/>:</td> |
|
56 |
<td width="345"><htmlEL:password property="pass" name="ibssUserForm" autocomplete="off"/></td> |
|
57 |
<td width="3"> </td> |
|
58 |
<td width="44"> </td> |
|
59 |
</tr> |
|
60 |
|
|
61 |
<tr> |
|
62 |
<td width="72"> </td> |
|
63 |
<td width="140"><bean:message key="user.confirm.password"/>:</td> |
|
64 |
<td width="345"><htmlEL:password property="confirmPass" name="ibssUserForm" autocomplete="off"/></td> |
|
65 |
<td width="3"> </td> |
|
66 |
<td width="44"> </td> |
|
67 |
</tr> |
|
68 |
</c:if> |
|
69 |
|
|
70 |
<c:if test="${ibssUserForm.map.selectedAppId eq 1}"> |
|
71 |
|
|
72 |
<tr> |
|
73 |
<td width="72"> </td> |
|
74 |
<td width="140"><bean:message key="user.pan.1"/>:</td> |
|
75 |
<td width="345"><htmlEL:text property="m2uPan1" name="ibssUserForm" autocomplete="off"/></td> |
|
76 |
<td width="3"> </td> |
|
77 |
<td width="44"> </td> |
|
78 |
</tr> |
|
79 |
<tr> |
|
80 |
<td width="72"> </td> |
|
81 |
<td width="140"><bean:message key="user.pan.2"/>:</td> |
|
82 |
<td width="345"><htmlEL:text property="m2uPan2" name="ibssUserForm" autocomplete="off"/></td> |
|
83 |
<td width="3"> </td> |
|
84 |
<td width="44"> </td> |
|
85 |
</tr> |
|
86 |
|
|
87 |
</c:if> |
|
88 |
<c:if test="${ibssUserForm.map.selectedAppId eq 2}"> |
|
89 |
|
|
90 |
<tr> |
|
91 |
<td width="72"> </td> |
|
92 |
<td width="140"><bean:message key="user.id.no"/>:</td> |
|
93 |
<td width="345"><htmlEL:text property="onlineStockIdNo" name="ibssUserForm" autocomplete="off"/></td> |
|
94 |
<td width="3"> </td> |
|
95 |
<td width="44"> </td> |
|
96 |
</tr> |
|
97 |
|
|
98 |
</c:if> |
|
99 |
<c:if test="${ibssUserForm.map.selectedAppId eq 3}"> |
|
100 |
|
|
101 |
<tr> |
|
102 |
<td width="72"> </td> |
|
103 |
<td width="140"><bean:message key="user.full.name"/>:</td> |
|
104 |
<td width="345"><htmlEL:text property="ticketingFullName" name="ibssUserForm" autocomplete="off"/></td> |
|
105 |
<td width="3"> </td> |
|
106 |
<td width="44"> </td> |
|
107 |
</tr> |
|
108 |
<tr> |
|
109 |
<td width="72"> </td> |
|
110 |
<td width="140"><bean:message key="user.first.name"/>:</td> |
|
111 |
<td><htmlEL:text property="ticketingFirstName" name="ibssUserForm" autocomplete="off"/></td> |
|
112 |
<td width="3"> </td> |
|
113 |
<td width="44"> </td> |
|
114 |
</tr> |
|
115 |
<tr> |
|
116 |
<td width="72"> </td> |
|
117 |
<td width="140"><bean:message key="user.last.name"/>:</td> |
|
118 |
<td width="345"><htmlEL:text property="ticketingLastName" name="ibssUserForm" autocomplete="off"/></td> |
|
119 |
<td width="3"> </td> |
|
120 |
<td width="44"> </td> |
|
121 |
</tr> |
|
122 |
<tr> |
|
123 |
<td width="72"> </td> |
|
124 |
<td width="140"><bean:message key="user.payee.code"/>:</td> |
|
125 |
<td width="345"><htmlEL:text property="ticketingPayeeCode" name="ibssUserForm" autocomplete="off"/></td> |
|
126 |
<td width="3"> </td> |
|
127 |
<td width="44"> </td> |
|
128 |
</tr> |
|
129 |
|
|
130 |
</c:if> |
|
131 |
<c:if test="${ibssUserForm.map.selectedAppId eq 4}"> |
|
132 |
|
|
133 |
<tr> |
|
134 |
<td width="72"> </td> |
|
135 |
<td width="140"><bean:message key="user.pan.cc"/>:</td> |
|
136 |
<td width="345"><htmlEL:text property="ccppPanCC" name="ibssUserForm" autocomplete="off"/></td> |
|
137 |
<td width="3"> </td> |
|
138 |
<td width="44"> </td> |
|
139 |
</tr> |
|
140 |
|
|
141 |
</c:if> |
|
142 |
<c:if test="${ibssUserForm.map.selectedAppId eq 5}"> |
|
143 |
|
|
144 |
<tr> |
|
145 |
<td width="72"> </td> |
|
146 |
<td width="140"><bean:message key="user.ws.flag"/>:</td> |
|
147 |
<td width="345"> |
|
148 |
<htmlEL:select property="im2uWSFlag" name="ibssUserForm"> |
|
149 |
<htmlEL:option value="Y"><bean:message key="general.yes"/></htmlEL:option> |
|
150 |
<htmlEL:option value="N"><bean:message key="general.no"/></htmlEL:option> |
|
151 |
</htmlEL:select> |
|
152 |
</td> |
|
153 |
<td width="3"> </td> |
|
154 |
<td width="44"> </td> |
|
155 |
</tr> |
|
156 |
<tr> |
|
157 |
<td width="72"> </td> |
|
158 |
<td width="140"><bean:message key="user.ws.ident.code"/>:</td> |
|
159 |
<td width="345"><htmlEL:text property="im2uWSIdentCode" name="ibssUserForm" autocomplete="off"/></td> |
|
160 |
<td width="3"> </td> |
|
161 |
<td width="44"> </td> |
|
162 |
</tr> |
|
163 |
<tr> |
|
164 |
<td width="72"> </td> |
|
165 |
<td width="140"><bean:message key="user.ws.my.sg.id"/>:</td> |
|
166 |
<td width="345"><htmlEL:text property="im2uWSMySgId" name="ibssUserForm" autocomplete="off"/></td> |
|
167 |
<td width="3"> </td> |
|
168 |
<td width="44"> </td> |
|
169 |
</tr> |
|
170 |
<tr> |
|
171 |
<td width="72"> </td> |
|
172 |
<td width="140"><bean:message key="user.ws.registration.time.stamp"/>:</td> |
|
173 |
<td width="345"><htmlEL:text property="im2uWSRegTimestamp" name="ibssUserForm" autocomplete="off"/> <bean:message key="im2u.reg.timestamp.format"/></td> |
|
174 |
<td width="3"> </td> |
|
175 |
<td width="44"> </td> |
|
176 |
</tr> |
|
177 |
|
|
178 |
</c:if> |
|
179 |
|
|
180 |
<tr> |
|
181 |
<td> </td> |
|
182 |
<td> </td> |
|
183 |
<td> </td> |
|
184 |
<td> </td> |
|
185 |
<td> </td> |
|
186 |
</tr> |
|
187 |
|
|
188 |
<tr> |
|
189 |
<td colspan="5"> </td> |
|
190 |
</tr> |
|
191 |
</table> |
|
192 |
<div class="floatRight"> |
|
193 |
<htmlEL:submit property="action" onclick="overlay();"> |
|
194 |
<bean:message key="general.button.back"/> |
|
195 |
</htmlEL:submit> |
|
196 |
<htmlEL:submit property="action" onclick="overlay();"> |
|
197 |
<bean:message key="general.button.confirm"/> |
|
198 |
</htmlEL:submit> |
|
199 |
</div> |
|
200 |
</htmlEL:form> |
WebContent/jsp/ss112_user/ibssRetailUserCreateDetails.jsp | ||
---|---|---|
1 |
<%@ taglib uri="/WEB-INF/tld/struts-html" prefix="html"%> |
|
2 |
<%@ taglib uri="/WEB-INF/tld/struts-html-el" prefix="htmlEL"%> |
|
3 |
<%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean"%> |
|
4 |
<%@ taglib uri="/WEB-INF/tld/struts-logic" prefix="logic"%> |
|
5 |
<%@ taglib uri="/WEB-INF/tld/struts-logic-el" prefix="logicEL"%> |
|
6 |
<%@ taglib uri="/WEB-INF/tld/c" prefix="c"%> |
|
7 |
|
|
8 |
<h3 class="title"><strong><c:out value="${sessionScope.displayDesc}"/> - <bean:message key="general.button.create" /></strong></h3> |
|
9 |
|
|
10 |
<table id="errorTable"> |
|
11 |
<tr> |
|
12 |
<td><span id="serverSideError" class="error"><jsp:include |
|
13 |
flush="true" page="/jsp/errorHandler.jsp"></jsp:include></span></td> |
|
14 |
</tr> |
|
15 |
</table> |
|
16 |
|
|
17 |
<table class="stepTable"> |
|
18 |
<tr> |
|
19 |
<td> </td> |
|
20 |
<td> |
|
21 |
<div id="steps"><span> |
|
22 |
<bean:message key="general.title.steps" arg0="1" arg1="3" /></span></div> |
|
23 |
</td> |
|
24 |
</tr> |
|
25 |
</table> |
|
26 |
|
|
27 |
<htmlEL:form action="/ss112/retailCreateUserConfirm.do"> |
|
28 |
<table class="tabularForm"> |
|
29 |
<tr> |
|
30 |
<td width="72"> </td> |
|
31 |
<td width="100"> </td> |
|
32 |
<td width="145"> </td> |
|
33 |
<td width="143"> </td> |
|
34 |
<td width="144"> </td> |
|
35 |
</tr> |
|
36 |
|
|
37 |
<tr> |
|
38 |
<td> </td> |
|
39 |
<td><bean:message key="user.application"/> :</td> |
|
40 |
<td> |
|
41 |
<htmlEL:select name="ibssUserForm" property="selectedAppId"> |
|
42 |
<%-- <htmlEL:hidden property="selectedAppName" name="appUserForm"></htmlEL:hidden> --%> |
|
43 |
<htmlEL:option value=""><bean:message key="general.select.option0"/></htmlEL:option> |
|
44 |
<c:forEach var="clientApp" items="${ibssUserForm.map.clientAppList}"> |
|
45 |
<htmlEL:option value="${clientApp.appId}"><c:out value="${clientApp.appName}"/></htmlEL:option> |
|
46 |
</c:forEach> |
|
47 |
</htmlEL:select> |
|
48 |
</td> |
|
49 |
</tr> |
|
50 |
|
|
51 |
<tr> |
|
52 |
<td> </td> |
|
53 |
<td> </td> |
|
54 |
<td> </td> |
|
55 |
<td> </td> |
|
56 |
<td> </td> |
|
57 |
</tr> |
|
58 |
|
|
59 |
<tr> |
|
60 |
<td colspan="5"> </td> |
|
61 |
</tr> |
|
62 |
</table> |
|
63 |
<div class="floatRight"> |
|
64 |
<htmlEL:submit property="action" onclick="overlay();"> |
|
65 |
<bean:message key="general.button.back"/> |
|
66 |
</htmlEL:submit> |
|
67 |
<htmlEL:submit property="action" onclick="overlay();"> |
|
68 |
<bean:message key="general.button.next"/> |
|
69 |
</htmlEL:submit> |
|
70 |
</div> |
|
71 |
</htmlEL:form> |
WebContent/jsp/ss112_user/ibssRetailUserCreateResult.jsp | ||
---|---|---|
1 |
<%@ taglib uri="/WEB-INF/tld/struts-html-el" prefix="htmlEL" %> |
|
2 |
<%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean" %> |
|
3 |
<%@ taglib uri="/WEB-INF/tld/c" prefix="c" %> |
|
4 |
|
|
5 |
<h3 class="title"><strong><c:out value="${sessionScope.displayDesc}"/> - <bean:message key="navigation.details.displayDesc.result.create" /></strong></h3> |
|
6 |
<table class="stepTable"> |
|
7 |
<tr> |
|
8 |
<td> </td> |
|
9 |
<td><div id="steps"><span><bean:message key="general.title.steps" arg0="3" arg1="3"/></span></div></td> |
|
10 |
|
|
11 |
</tr> |
|
12 |
</table> |
|
13 |
<table class="tabularForm" width="517" border="1"> |
|
14 |
<tr> |
|
15 |
<td width="75"> </td> |
|
16 |
<td class="success" width="211"><strong><bean:message key="general.status.successful"/></strong></td> |
|
17 |
<td width="93"> </td> |
|
18 |
<td width="47"> </td> |
|
19 |
</tr> |
|
20 |
<tr> |
|
21 |
|
|
22 |
<td height="28"> </td> |
|
23 |
<td colspan="2"><strong><bean:write name="ibssUserForm" property="jspTitle"/></strong></td> |
|
24 |
<td> </td> |
|
25 |
</tr> |
|
26 |
</table> |
|
27 |
<div class="floatRight"> |
|
28 |
<htmlEL:form action="/ss112/userEnquiryScreen.do"> |
|
29 |
<htmlEL:submit property="action" styleClass="button" onclick="overlay();"> |
|
30 |
<bean:message key="general.button.back"/> |
|
31 |
</htmlEL:submit> |
|
32 |
</htmlEL:form> |
|
33 |
</div> |
|
34 |
|
|
35 |
|
WebContent/jsp/ss112_user/ibssRetailUserEnquiry.jsp | ||
---|---|---|
127 | 127 |
<htmlEL:submit property="action" onclick="overlay();"> |
128 | 128 |
<bean:message key="general.button.back" /> |
129 | 129 |
</htmlEL:submit> |
130 |
<htmlEL:submit property="action" onclick="overlay();"> |
|
131 |
<bean:message key="general.button.create" /> |
|
132 |
</htmlEL:submit> |
|
130 | 133 |
</htmlEL:form> |
131 | 134 |
</div> |
135 |
<%-- <div class="floatRight"> |
|
136 |
<htmlEL:form action="/ss112/retailCreateUser.do"> |
|
137 |
<htmlEL:submit property="action" onclick="overlay();"> |
|
138 |
<bean:message key="general.button.create" /> |
|
139 |
</htmlEL:submit> |
|
140 |
</htmlEL:form> |
|
141 |
</div> --%> |
|
132 | 142 |
</c:when> |
133 | 143 |
|
134 | 144 |
<c:otherwise> |
... | ... | |
147 | 157 |
<bean:message key="general.button.back" /> |
148 | 158 |
</htmlEL:submit> |
149 | 159 |
</htmlEL:form> |
160 |
<htmlEL:form action="/ss112/retailCreateUser.do"> |
|
161 |
<htmlEL:submit property="action" onclick="overlay();"> |
|
162 |
<bean:message key="general.button.create" /> |
|
163 |
</htmlEL:submit> |
|
164 |
</htmlEL:form> |
|
165 |
|
|
150 | 166 |
</div> |
151 | 167 |
</c:otherwise> |
152 | 168 |
</c:choose> |
WebContent/jsp/ss221_settings/ibssUpassMaintenanceConfirm.jsp | ||
---|---|---|
43 | 43 |
</table> |
44 | 44 |
<table class="tabularForm" width="517" border="1"> |
45 | 45 |
<tr><td height="30" colspan="4"> </td></tr> |
46 |
<tr> |
|
46 |
<%-- <tr>
|
|
47 | 47 |
<td width="10%"> </td> |
48 | 48 |
<td width="35%"><bean:message key="upass.password.minimum.length"/>:</td> |
49 | 49 |
<td width="35%"><strong> |
... | ... | |
54 | 54 |
<c:otherwise>-</c:otherwise> |
55 | 55 |
</c:choose> |
56 | 56 |
</strong></td> |
57 |
</tr> |
|
57 |
</tr> --%>
|
|
58 | 58 |
|
59 | 59 |
<tr> |
60 | 60 |
<td width="10%"> </td> |
WebContent/jsp/ss221_settings/ibssUpassMaintenanceDetails.jsp | ||
---|---|---|
23 | 23 |
|
24 | 24 |
<table class="tabularForm"> |
25 | 25 |
<tr><td height="30" colspan="4"> </td></tr> |
26 |
<tr> |
|
26 |
<%-- <tr>
|
|
27 | 27 |
<td width="10%"> </td> |
28 | 28 |
<td width="35%"><bean:message key="upass.password.minimum.length"/>:</td> |
29 | 29 |
<td width="5%"><strong> |
... | ... | |
34 | 34 |
<c:otherwise>-</c:otherwise> |
35 | 35 |
</c:choose> |
36 | 36 |
</strong></td> |
37 |
</tr> |
|
37 |
</tr> --%>
|
|
38 | 38 |
|
39 | 39 |
<tr> |
40 | 40 |
<td width="10%"> </td> |
WebContent/jsp/ss221_settings/ibssUpassSettingsEdit.jsp | ||
---|---|---|
27 | 27 |
|
28 | 28 |
<table class="tabularForm"> |
29 | 29 |
<tr><td height="20" colspan="4"> </td></tr> |
30 |
<tr> |
|
30 |
<%-- <tr>
|
|
31 | 31 |
<td> </td> |
32 | 32 |
<td><bean:message key="upass.password.minimum.length"/></td> |
33 | 33 |
<td align="left">:</td> |
34 | 34 |
<td><htmlEL:text property="PASSWORD_MIN_LENGTH" name="settingsForm" maxlength="2" autocomplete="off" size="40"/></td> |
35 |
</tr> |
|
35 |
</tr> --%>
|
|
36 | 36 |
<tr> |
37 | 37 |
<td> </td> |
38 | 38 |
<td><bean:message key="upass.password.generation"/></td> |
resource/com/ib/ibss/resources/exception/IBSSBusinessExceptionResources.properties | ||
---|---|---|
368 | 368 |
validation.error.nonnumeric.tier.chgs.charges=error.nonnumeric.tier.chgs.charges |
369 | 369 |
|
370 | 370 |
#ss223 application user maintenance |
371 |
error.app.user.create.1=error.app.user.username.already.exist |
|
371 |
error.app.user.create.1=error.app.user.username.already.exist |
|
372 |
|
|
373 |
error.user.id.not.exist.inm2u=error.user.id.not.exist.inm2u.2 |
resource/com/ib/ibss/resources/message/IBSSApplicationResources.properties | ||
---|---|---|
10 | 10 |
#examples |
11 | 11 |
office.no.example=(Eg. 03xxxxxxxx) |
12 | 12 |
mobile.no.example=(Eg. 6012xxxxxxx) |
13 |
im2u.reg.timestamp.format=(Format:yyyy-MM-dd HH:mm:ss.SSS) |
|
13 | 14 |
#General Usage |
14 | 15 |
general.username=Username |
15 | 16 |
general.fromAccount=From account |
... | ... | |
580 | 581 |
error.user.alias.weak=User ID is not meet complexity configuration. |
581 | 582 |
|
582 | 583 |
error.password.change.interval=You have changed your password within {0} minutes, please try again later. |
584 |
|
|
585 |
error.user.id.not.exist.inm2u.1=User ID not exist in M2U application. |
|
586 |
error.user.id.not.exist.inm2u.2=User ID not exist in M2U application. Please create an user in M2U first. |
|
583 | 587 |
# s1s02_user_admin category (Login Details, Personal Details, etc) |
584 | 588 |
user.login.details = Login Details |
585 | 589 |
user.personal.details = Personal Details |
src/com/ib/ibss/common/constant/AdminPermissionModeType.java | ||
---|---|---|
114 | 114 |
Long actionId = 1023L; |
115 | 115 |
return actionId; |
116 | 116 |
} |
117 |
}, |
|
118 |
CREATE_RIB_USER |
|
119 |
{ |
|
120 |
public Long getActionId () |
|
121 |
{ |
|
122 |
Long actionId = 1024L; |
|
123 |
return actionId; |
|
124 |
} |
|
117 | 125 |
}; |
118 | 126 |
|
119 | 127 |
public abstract Long getActionId (); |
src/com/ib/ibss/common/constant/JSPValidator.java | ||
---|---|---|
48 | 48 |
public static final String RESET_PASS_VALIDATION = "resetPassValidation"; |
49 | 49 |
public static final String EDIT_USER_VALIDATION = "userEnquiryEditValidation"; |
50 | 50 |
/* ss112 */ |
51 |
public static final String USER_ENQUIRY_SEARCH_VALIDATION = "userEnquirySearchValidation"; |
|
52 |
public static final String SS112_RESET_PASS_VALIDATION = "ss112UserResetPassValidation"; |
|
51 |
public static final String USER_ENQUIRY_SEARCH_VALIDATION = "userEnquirySearchValidation"; |
|
52 |
public static final String SS112_RESET_PASS_VALIDATION = "ss112UserResetPassValidation"; |
|
53 |
public static final String SS112_RETAIL_USER_CREATE_CONFIRM_VALIDATION = "ss112RetailUserCreateConfirmValidation"; |
|
54 |
public static final String SS112_RETAIL_USER_M2U_CREATE_RESULT_VALIDATION = "ss112RetailUserM2UCreateResultValidation"; |
|
55 |
public static final String SS112_RETAIL_USER_ONLINE_STOCK_CREATE_RESULT_VALIDATION = "ss112RetailUserOnlineStockCreateResultValidation"; |
|
56 |
public static final String SS112_RETAIL_USER_TICKETING_CREATE_RESULT_VALIDATION = "ss112RetailUserTicketingCreateResultValidation"; |
|
57 |
public static final String SS112_RETAIL_USER_CCPP_CREATE_RESULT_VALIDATION = "ss112RetailUserCCPPCreateResultValidation"; |
|
58 |
public static final String SS112_RETAIL_USER_IM2U_CREATE_RESULT_VALIDATION = "ss112RetailUserIM2UCreateResultValidation"; |
|
59 |
public static final String SS112_RETAIL_USER_EDIT_CONFIRM_VALIDATION = "ss112RetailUserEditConfirmValidation"; |
|
53 | 60 |
/* ss104 */ |
54 | 61 |
public static final String AUDIT_TRAIL_MAIN_VALIDATION = "auditTrailMainValidation"; |
55 | 62 |
public static final String USER_TRANS_MAIN_VALIDATION = "userTransMainValidation"; |
... | ... | |
289 | 296 |
public static final String APP_USER_CREATE_CONFIRM_VALIDATION = "appUserCreateConfirmValidation"; |
290 | 297 |
public static final String APP_USER_EDIT_CONFIRM_VALIDATION = "appUserEditConfirmValidation"; |
291 | 298 |
public static final String APP_USER_RESET_PASSWORD_VALIDATION = "appUserResetPassValidation"; |
299 |
|
|
292 | 300 |
} |
src/com/ib/ibss/controller/actions/ss112_user/IBSSRetailUserCreateConfirmAction.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (M) 2009 Penril Datability (M) Sdn Bhd All rights reserved. |
|
3 |
* |
|
4 |
* This software is copyrighted. Under the copyright laws, this software |
|
5 |
* may not be copied, in whole or in part, without prior written consent |
|
6 |
* of Penril Datability (M) Sdn Bhd or its assignees. This software is |
|
7 |
* provided under the terms of a license between Penril Datability (M) |
|
8 |
* Sdn Bhd and the recipient, and its use is subject to the terms of that |
|
9 |
* license. |
|
10 |
*/ |
|
11 |
|
|
12 |
package com.ib.ibss.controller.actions.ss112_user; |
|
13 |
|
|
14 |
import javax.servlet.http.HttpServletRequest; |
|
15 |
import javax.servlet.http.HttpServletResponse; |
|
16 |
|
|
17 |
import org.apache.struts.action.ActionErrors; |
|
18 |
import org.apache.struts.action.ActionForm; |
|
19 |
import org.apache.struts.action.ActionForward; |
|
20 |
import org.apache.struts.action.ActionMapping; |
|
21 |
|
|
22 |
import com.ib.ibss.common.constant.JSPValidator; |
|
23 |
import com.ib.ibss.common.constant.FunctionConstants.FunctionCodeEnum; |
|
24 |
import com.ib.ibss.enterprise.services.AccessConstants; |
|
25 |
import com.ib.ibss.enterprise.services.ss102_user_admin.constants.IBSSUserConstants; |
|
26 |
import com.ib.ibss.enterprise.services.ss112_user.IBSSRetailUserCreateConfirmServices; |
|
27 |
import com.ib.ibss.error.exception.IBSSGenericException; |
|
28 |
import com.ib.ibss.struts.utils.IBSSControllerAction; |
|
29 |
import com.ib.ibss.struts.utils.IBSSDynaBean; |
|
30 |
import com.ib.ibss.struts.utils.IBSSDynaBeanManager; |
|
31 |
import com.ib.ibss.struts.utils.IBSSSessionObjects; |
|
32 |
|
|
33 |
/** |
|
34 |
* This is the Action controller class to go to create application admin |
|
35 |
*/ |
|
36 |
public class IBSSRetailUserCreateConfirmAction extends IBSSControllerAction |
|
37 |
{ |
|
38 |
public ActionForward execute (ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception |
|
39 |
{ |
|
40 |
ActionErrors error = form.validate(createNewActionMapping(mapping, JSPValidator.SS112_RETAIL_USER_CREATE_CONFIRM_VALIDATION), request); |
|
41 |
String action = request.getParameter(AccessConstants.ACTION); |
|
42 |
if("back".equalsIgnoreCase (action)) |
|
43 |
{ |
|
44 |
setForwardPage("back"); |
|
45 |
} |
|
46 |
else if("next".equalsIgnoreCase(action)) |
|
47 |
{ |
|
48 |
if(!error.isEmpty ()) |
|
49 |
{ |
|
50 |
errorHandling(request, mapping, error); |
|
51 |
}else |
|
52 |
{ |
|
53 |
try |
|
54 |
{ |
|
55 |
IBSSDynaBean ibDynaBean = IBSSDynaBeanManager.createIBSSDynaBean (form, mapping); |
|
56 |
|
|
57 |
ibDynaBean.set(IBSSUserConstants.USER_ALIAS, null); |
|
58 |
ibDynaBean.set(IBSSUserConstants.PASS, null); |
|
59 |
ibDynaBean.set(IBSSUserConstants.CONFIRM_PASS, null); |
|
60 |
ibDynaBean.set(IBSSUserConstants.M2U_PAN1, null); |
|
61 |
ibDynaBean.set(IBSSUserConstants.M2U_PAN2, null); |
|
62 |
ibDynaBean.set(IBSSUserConstants.ONLINE_STOCK_ID_NO, null); |
|
63 |
ibDynaBean.set(IBSSUserConstants.TICKETING_FULL_NAME, null); |
|
64 |
ibDynaBean.set(IBSSUserConstants.TICKETING_FIRST_NAME, null); |
|
65 |
ibDynaBean.set(IBSSUserConstants.TICKETING_LAST_NAME, null); |
|
66 |
ibDynaBean.set(IBSSUserConstants.TICKETING_PAYEE_CODE, null); |
|
67 |
ibDynaBean.set(IBSSUserConstants.CCPP_PAN_CC, null); |
|
68 |
ibDynaBean.set(IBSSUserConstants.IM2U_WS_FLAG, null); |
|
69 |
ibDynaBean.set(IBSSUserConstants.IM2U_WS_IDENT_CODE, null); |
|
70 |
ibDynaBean.set(IBSSUserConstants.IM2U_WS_MYSG_ID, null); |
|
71 |
ibDynaBean.set(IBSSUserConstants.IM2U_WS_REG_TIMESTAMP, null); |
|
72 |
|
|
73 |
IBSSSessionObjects sessionObjects = new IBSSSessionObjects(request); |
|
74 |
|
|
75 |
checkToken (request, mapping, false); |
|
76 |
checkCredential (request, FunctionCodeEnum.RIB_USER_ENQUIRY); |
|
77 |
noErrorHandling (request, mapping); |
|
78 |
|
|
79 |
IBSSRetailUserCreateConfirmServices service = new IBSSRetailUserCreateConfirmServices(sessionObjects); |
|
80 |
service.setIBSSDynaBean(ibDynaBean); |
|
81 |
service.execute(); |
|
82 |
}catch (IBSSGenericException e) |
|
83 |
{ |
|
84 |
errorHandling(request, mapping, e); |
|
85 |
} |
|
86 |
} |
|
87 |
} |
|
88 |
return super.execute (mapping, form, request, response); |
|
89 |
} |
|
90 |
} |
src/com/ib/ibss/controller/actions/ss112_user/IBSSRetailUserCreateDetailsAction.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (M) 2009 Penril Datability (M) Sdn Bhd All rights reserved. |
|
3 |
* |
|
4 |
* This software is copyrighted. Under the copyright laws, this software |
|
5 |
* may not be copied, in whole or in part, without prior written consent |
|
6 |
* of Penril Datability (M) Sdn Bhd or its assignees. This software is |
|
7 |
* provided under the terms of a license between Penril Datability (M) |
|
8 |
* Sdn Bhd and the recipient, and its use is subject to the terms of that |
|
9 |
* license. |
|
10 |
*/ |
|
11 |
|
|
12 |
package com.ib.ibss.controller.actions.ss112_user; |
|
13 |
|
|
14 |
import javax.servlet.http.HttpServletRequest; |
|
15 |
import javax.servlet.http.HttpServletResponse; |
|
16 |
|
|
17 |
import org.apache.struts.action.ActionForm; |
|
18 |
import org.apache.struts.action.ActionForward; |
|
19 |
import org.apache.struts.action.ActionMapping; |
|
20 |
|
|
21 |
import com.ib.ibss.common.constant.AdminPermissionModeType.RIBPermission; |
|
22 |
import com.ib.ibss.common.constant.FunctionConstants.FunctionCodeEnum; |
|
23 |
import com.ib.ibss.common.utils.IBSSNavigationUtil; |
|
24 |
import com.ib.ibss.enterprise.services.common.SessionUserPermissionVerificationService; |
|
25 |
import com.ib.ibss.enterprise.services.ss112_user.IBSSRetailUserCreateDetailsServices; |
|
26 |
import com.ib.ibss.error.exception.IBSSGenericException; |
|
27 |
import com.ib.ibss.struts.utils.IBSSControllerAction; |
|
28 |
import com.ib.ibss.struts.utils.IBSSDynaBean; |
|
29 |
import com.ib.ibss.struts.utils.IBSSDynaBeanManager; |
|
30 |
import com.ib.ibss.struts.utils.IBSSSessionObjects; |
|
31 |
|
|
32 |
public class IBSSRetailUserCreateDetailsAction extends IBSSControllerAction |
|
33 |
{ |
|
34 |
public ActionForward execute (ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception |
|
35 |
{ |
|
36 |
try |
|
37 |
{ |
|
38 |
checkToken (request, mapping, false); |
|
39 |
checkCredential (request, FunctionCodeEnum.RIB_USER_ENQUIRY); |
|
40 |
noErrorHandling (request, mapping); |
|
41 |
|
|
42 |
IBSSSessionObjects sessionObjects = new IBSSSessionObjects(request); |
|
43 |
|
|
44 |
IBSSNavigationUtil tree = new IBSSNavigationUtil(sessionObjects); |
|
45 |
tree.buildNavigation (); |
|
46 |
|
|
47 |
Long actionId = RIBPermission.CREATE_RIB_USER.getActionId(); |
|
48 |
SessionUserPermissionVerificationService access = new SessionUserPermissionVerificationService(sessionObjects); |
|
49 |
access.validateUser(actionId); |
|
50 |
|
|
51 |
ActionForm actionForm = (ActionForm) resetBean (request, mapping, form); |
|
52 |
IBSSDynaBean ibDynaBean = IBSSDynaBeanManager.createIBSSDynaBean (actionForm, mapping); |
|
53 |
|
|
54 |
IBSSRetailUserCreateDetailsServices services = new IBSSRetailUserCreateDetailsServices(sessionObjects); |
|
55 |
services.setIBSSDynaBean (ibDynaBean); |
|
56 |
services.execute(); |
|
57 |
|
|
58 |
return super.execute (mapping, actionForm, request, response); |
|
59 |
} |
|
60 |
catch (IBSSGenericException e) |
|
61 |
{ |
|
62 |
errorHandling(request, mapping, e); |
|
63 |
} |
|
64 |
return super.execute (mapping, form, request, response); |
|
65 |
} |
|
66 |
} |
src/com/ib/ibss/controller/actions/ss112_user/IBSSRetailUserCreateResultAction.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (c) 2009 Penril Datability (SEA) Sdn Bhd All rights reserved. |
|
3 |
* |
|
4 |
* This software is copyrighted. Under the copyright laws, this software |
|
5 |
* may not be copied, in whole or in part, without prior written consent |
|
6 |
* of Penril Datability (SEA) Sdn Bhd or its assignees. This software is |
|
7 |
* provided under the terms of a license between Penril Datability (SEA) |
|
8 |
* Sdn Bhd and the recipient, and its use is subject to the terms of that |
|
9 |
* license. |
|
10 |
*/ |
|
11 |
|
|
12 |
package com.ib.ibss.controller.actions.ss112_user; |
|
13 |
|
|
14 |
import javax.servlet.http.HttpServletRequest; |
|
15 |
import javax.servlet.http.HttpServletResponse; |
|
16 |
|
|
17 |
import my.com.upass.pojo.ClientApp; |
|
18 |
|
|
19 |
import org.apache.struts.action.ActionErrors; |
|
20 |
import org.apache.struts.action.ActionForm; |
|
21 |
import org.apache.struts.action.ActionForward; |
|
22 |
import org.apache.struts.action.ActionMapping; |
|
23 |
|
|
24 |
import com.ib.ibss.common.constant.AdminPermissionModeType.RIBPermission; |
|
25 |
import com.ib.ibss.common.constant.FunctionConstants.FunctionCodeEnum; |
|
26 |
import com.ib.ibss.common.constant.JSPValidator; |
|
27 |
import com.ib.ibss.common.utils.IBSSNavigationUtil; |
|
28 |
import com.ib.ibss.enterprise.services.AccessConstants; |
|
29 |
import com.ib.ibss.enterprise.services.common.SessionUserPermissionVerificationService; |
|
30 |
import com.ib.ibss.enterprise.services.ss102_user_admin.constants.IBSSUserConstants; |
|
31 |
import com.ib.ibss.enterprise.services.ss112_user.IBSSRetailUserCreateResultServices; |
|
32 |
import com.ib.ibss.error.exception.IBSSGenericException; |
|
33 |
import com.ib.ibss.struts.utils.IBSSControllerAction; |
|
34 |
import com.ib.ibss.struts.utils.IBSSDynaBean; |
|
35 |
import com.ib.ibss.struts.utils.IBSSDynaBeanManager; |
|
36 |
import com.ib.ibss.struts.utils.IBSSSessionObjects; |
|
37 |
|
|
38 |
/** |
|
39 |
* This is the Action controller class to go to create application admin result |
|
40 |
*/ |
|
41 |
public class IBSSRetailUserCreateResultAction extends IBSSControllerAction |
|
42 |
{ |
|
43 |
/** |
|
44 |
* <pre> |
|
45 |
* Create new desired IBDynaBean instance, form-beans: ibssGroupForm and IBSSessionObjects. |
|
46 |
* Check token value to make sure is valid session. |
|
47 |
* Create new instance of IBSSUserGroupCreateResultServices and call createGroup() method. |
|
48 |
* </pre> |
|
49 |
* |
|
50 |
* @param mapping The ActionMapping used to select this instance |
|
51 |
* @param form The optional ActionForm bean for this request which is from form-bean.xml(if any) |
|
52 |
* @param request The HTTP request we are processing |
|
53 |
* @param response The HTTP response we are creating |
|
54 |
* @return The requested ActionForward object |
|
55 |
* @throws Exception if the application business logic throws an exception |
|
56 |
* |
|
57 |
* @see com.ib.ibss.struts.utils.IBSSControllerAction#execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) |
|
58 |
*/ |
|
59 |
public ActionForward execute (ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception |
|
60 |
{ |
|
61 |
String m_sAction = request.getParameter(AccessConstants.ACTION); |
|
62 |
|
|
63 |
if("back".equalsIgnoreCase (m_sAction)) |
|
64 |
{ |
|
65 |
setForwardPage("back"); |
|
66 |
} |
|
67 |
else |
|
68 |
{ |
|
69 |
ActionErrors error = new ActionErrors(); |
|
70 |
IBSSDynaBean ibDynaBean = IBSSDynaBeanManager.createIBSSDynaBean (form, mapping); |
|
71 |
Integer appId = (Integer) ibDynaBean.get(IBSSUserConstants.SELECTED_APPLICATION_ID); |
|
72 |
if(appId.equals(ClientApp.APP_ID_M2U)) |
|
73 |
{ |
|
74 |
error = form.validate(createNewActionMapping(mapping, JSPValidator.SS112_RETAIL_USER_M2U_CREATE_RESULT_VALIDATION), request); |
|
75 |
} |
|
76 |
else if(appId.equals(ClientApp.APP_ID_ONLINE_STOCK)) |
|
77 |
{ |
|
78 |
error = form.validate(createNewActionMapping(mapping, JSPValidator.SS112_RETAIL_USER_ONLINE_STOCK_CREATE_RESULT_VALIDATION), request); |
|
79 |
} |
|
80 |
else if(appId.equals(ClientApp.APP_ID_ONLINE_TICKETING)) |
|
81 |
{ |
|
82 |
error = form.validate(createNewActionMapping(mapping, JSPValidator.SS112_RETAIL_USER_TICKETING_CREATE_RESULT_VALIDATION), request); |
|
83 |
} |
|
84 |
else if(appId.equals(ClientApp.APP_ID_CCPP)) |
|
85 |
{ |
|
86 |
error = form.validate(createNewActionMapping(mapping, JSPValidator.SS112_RETAIL_USER_CCPP_CREATE_RESULT_VALIDATION), request); |
|
87 |
} |
|
88 |
else if(appId.equals(ClientApp.APP_ID_IM2U)) |
|
89 |
{ |
|
90 |
error = form.validate(createNewActionMapping(mapping, JSPValidator.SS112_RETAIL_USER_IM2U_CREATE_RESULT_VALIDATION), request); |
|
91 |
} |
|
92 |
|
|
93 |
if(!error.isEmpty ()) |
|
94 |
{ |
|
95 |
errorHandling(request, mapping, error); |
|
96 |
}else |
|
97 |
{ |
|
98 |
try |
|
99 |
{ |
|
100 |
checkToken (request, mapping, false); |
|
101 |
checkCredential (request, FunctionCodeEnum.RIB_USER_ENQUIRY); |
|
102 |
noErrorHandling (request, mapping); |
|
103 |
|
|
104 |
IBSSSessionObjects sessionObjects = new IBSSSessionObjects(request); |
|
105 |
|
|
106 |
IBSSNavigationUtil tree = new IBSSNavigationUtil(sessionObjects); |
|
107 |
tree.buildNavigation (); |
|
108 |
|
|
109 |
//Check User Permission Access |
|
110 |
Long actionId = RIBPermission.CREATE_RIB_USER.getActionId(); |
|
111 |
SessionUserPermissionVerificationService access = new SessionUserPermissionVerificationService(sessionObjects); |
|
112 |
access.validateUser(actionId); |
|
113 |
|
|
114 |
IBSSRetailUserCreateResultServices services = new IBSSRetailUserCreateResultServices(sessionObjects); |
|
115 |
services.setIBSSDynaBean (ibDynaBean); |
|
116 |
services.createRetailUser(); |
|
117 |
} |
|
118 |
catch (IBSSGenericException e) |
|
119 |
{ |
|
120 |
errorHandling(request, mapping, e); |
|
121 |
} |
|
122 |
} |
|
123 |
|
|
124 |
} |
|
125 |
return super.execute (mapping, form, request, response); |
|
126 |
} |
|
127 |
} |
src/com/ib/ibss/controller/actions/ss112_user/IBSSRetailUserSearchAction.java | ||
---|---|---|
20 | 20 |
|
21 | 21 |
import com.ib.ibss.common.constant.FunctionConstants.FunctionCodeEnum; |
22 | 22 |
import com.ib.ibss.common.utils.IBSSNavigationUtil; |
23 |
import com.ib.ibss.enterprise.services.AccessConstants; |
|
23 | 24 |
import com.ib.ibss.enterprise.services.ss112_user.IBSSRetailUserSearchServices; |
24 | 25 |
import com.ib.ibss.error.exception.IBSSGenericException; |
25 | 26 |
import com.ib.ibss.struts.utils.IBSSControllerAction; |
... | ... | |
53 | 54 |
{ |
54 | 55 |
ActionForm m_oForm = (ActionForm) resetBean (p_oRequest, p_oMapping, p_oForm); |
55 | 56 |
|
56 |
try |
|
57 |
String action = p_oRequest.getParameter(AccessConstants.ACTION); |
|
58 |
if("create".equalsIgnoreCase (action)) |
|
57 | 59 |
{ |
58 |
checkToken (p_oRequest, p_oMapping, false); |
|
59 |
checkCredential(p_oRequest, FunctionCodeEnum.RIB_USER_ENQUIRY); |
|
60 |
setForwardPage("create"); |
|
61 |
} |
|
62 |
else |
|
63 |
{ |
|
64 |
try |
|
65 |
{ |
|
66 |
checkToken (p_oRequest, p_oMapping, false); |
|
67 |
checkCredential(p_oRequest, FunctionCodeEnum.RIB_USER_ENQUIRY); |
|
68 |
|
|
69 |
noErrorHandling (p_oRequest, p_oMapping); |
|
70 |
IBSSDynaBean m_oIBDynaBean = IBSSDynaBeanManager.createIBSSDynaBean (m_oForm, p_oMapping); |
|
71 |
IBSSSessionObjects m_oSessionObjects = new IBSSSessionObjects(p_oRequest); |
|
72 |
IBSSNavigationUtil m_oTree = new IBSSNavigationUtil(m_oSessionObjects); |
|
73 |
m_oTree.buildNavigation (); |
|
60 | 74 |
|
61 |
noErrorHandling (p_oRequest, p_oMapping); |
|
62 |
IBSSDynaBean m_oIBDynaBean = IBSSDynaBeanManager.createIBSSDynaBean (m_oForm, p_oMapping); |
|
63 |
IBSSSessionObjects m_oSessionObjects = new IBSSSessionObjects(p_oRequest); |
|
64 |
IBSSNavigationUtil m_oTree = new IBSSNavigationUtil(m_oSessionObjects); |
|
65 |
m_oTree.buildNavigation (); |
|
75 |
IBSSRetailUserSearchServices m_oServices = new IBSSRetailUserSearchServices(m_oSessionObjects); |
|
76 |
m_oServices.setIBSSDynaBean (m_oIBDynaBean); |
|
77 |
m_oServices.createUserSearchScreen(); |
|
78 |
} |
|
79 |
catch (IBSSGenericException e) |
|
80 |
{ |
|
81 |
errorHandling(p_oRequest, p_oMapping, e); |
|
82 |
} |
|
83 |
} |
|
66 | 84 |
|
67 |
IBSSRetailUserSearchServices m_oServices = new IBSSRetailUserSearchServices(m_oSessionObjects); |
|
68 |
m_oServices.setIBSSDynaBean (m_oIBDynaBean); |
|
69 |
m_oServices.createUserSearchScreen(); |
|
70 |
} |
|
71 |
catch (IBSSGenericException e) |
|
72 |
{ |
|
73 |
errorHandling(p_oRequest, p_oMapping, e); |
|
74 |
} |
|
75 | 85 |
return super.execute (p_oMapping, m_oForm, p_oRequest, p_oResponse); |
76 | 86 |
} |
77 | 87 |
} |
src/com/ib/ibss/controller/actions/ss221_settings/IBSSUpassMaintenanceDetailsAction.java | ||
---|---|---|
13 | 13 |
import javax.servlet.http.HttpServletRequest; |
14 | 14 |
import javax.servlet.http.HttpServletResponse; |
15 | 15 |
|
16 |
import org.apache.struts.action.ActionErrors; |
|
16 | 17 |
import org.apache.struts.action.ActionForm; |
17 | 18 |
import org.apache.struts.action.ActionForward; |
18 | 19 |
import org.apache.struts.action.ActionMapping; |
19 | 20 |
|
20 | 21 |
import com.ib.ibss.common.constant.FunctionConstants.FunctionCodeEnum; |
22 |
import com.ib.ibss.common.constant.JSPValidator; |
|
21 | 23 |
import com.ib.ibss.enterprise.services.ss221_settings.IBSSUpassMaintenanceDetailsServices; |
22 | 24 |
import com.ib.ibss.error.exception.IBSSGenericException; |
23 | 25 |
import com.ib.ibss.struts.utils.IBSSControllerAction; |
... | ... | |
44 | 46 |
{ |
45 | 47 |
public ActionForward execute (ActionMapping p_oMapping, ActionForm p_oForm, HttpServletRequest p_oRequest, HttpServletResponse p_oResponse) throws Exception |
46 | 48 |
{ |
47 |
try
|
|
48 |
{ |
|
49 |
IBSSDynaBean m_oIBDynaBean = IBSSDynaBeanManager.createIBSSDynaBean (p_oForm, p_oMapping);
|
|
50 |
IBSSSessionObjects m_oSessionObjects = new IBSSSessionObjects(p_oRequest);
|
|
49 |
ActionErrors m_oError = p_oForm.validate(createNewActionMapping(p_oMapping, JSPValidator.UPASS_SELECT_APPID_VALIDATION), p_oRequest);
|
|
50 |
|
|
51 |
if(!m_oError.isEmpty ())
|
|
52 |
{
|
|
51 | 53 |
|
52 |
checkToken (p_oRequest, p_oMapping, false); |
|
53 |
checkCredential (p_oRequest, FunctionCodeEnum.UPASS_MAINTENANCE); |
|
54 |
noErrorHandling (p_oRequest, p_oMapping); |
|
54 |
errorHandling(p_oRequest, p_oMapping, m_oError); |
|
55 |
} |
|
56 |
else{ |
|
57 |
try |
|
58 |
{ |
|
59 |
IBSSDynaBean m_oIBDynaBean = IBSSDynaBeanManager.createIBSSDynaBean (p_oForm, p_oMapping); |
|
60 |
IBSSSessionObjects m_oSessionObjects = new IBSSSessionObjects(p_oRequest); |
|
61 |
|
|
62 |
checkToken (p_oRequest, p_oMapping, false); |
|
63 |
checkCredential (p_oRequest, FunctionCodeEnum.UPASS_MAINTENANCE); |
|
64 |
noErrorHandling (p_oRequest, p_oMapping); |
|
55 | 65 |
|
56 |
IBSSUpassMaintenanceDetailsServices m_oServices = new IBSSUpassMaintenanceDetailsServices(m_oSessionObjects); |
|
57 |
m_oServices.setIBSSDynaBean (m_oIBDynaBean); |
|
58 |
m_oServices.getUpassConfigurationFromDatabase(); |
|
66 |
IBSSUpassMaintenanceDetailsServices m_oServices = new IBSSUpassMaintenanceDetailsServices(m_oSessionObjects); |
|
67 |
m_oServices.setIBSSDynaBean (m_oIBDynaBean); |
|
68 |
m_oServices.getUpassConfigurationFromDatabase(); |
|
69 |
} |
|
70 |
catch (IBSSGenericException e) |
|
71 |
{ |
|
72 |
e.printStackTrace(); |
|
73 |
errorHandling(p_oRequest, p_oMapping, e); |
|
74 |
} |
|
59 | 75 |
} |
60 |
catch (IBSSGenericException e) |
|
61 |
{ |
|
62 |
e.printStackTrace(); |
|
63 |
errorHandling(p_oRequest, p_oMapping, e); |
|
64 |
} |
|
76 |
|
|
65 | 77 |
return super.execute (p_oMapping, p_oForm, p_oRequest, p_oResponse); |
66 | 78 |
} |
67 | 79 |
} |
src/com/ib/ibss/enterprise/services/ss102_user_admin/constants/IBSSUserConstants.java | ||
---|---|---|
241 | 241 |
public static final String HAS_RIB_UNLOCK_TAC_ACCESS = "hasRIBUnlockTACAccess"; |
242 | 242 |
public static final String HAS_RIB_ACTIVATE_ACCESS = "hasRIBActivateAccess"; |
243 | 243 |
|
244 |
//new added formbean & viewbean |
|
245 |
public static final String CLIENT_APP_LIST = "clientAppList"; |
|
246 |
public static final String SELECTED_APPLICATION_ID = "selectedAppId"; |
|
247 |
public static final String SELECTED_APPLICATION_NAME = "selectedAppName"; |
|
248 |
public static final String M2U_PAN1 = "m2uPan1"; |
|
249 |
public static final String M2U_PAN2 = "m2uPan2"; |
|
250 |
public static final String ONLINE_STOCK_ID_NO = "onlineStockIdNo"; |
|
251 |
public static final String TICKETING_FULL_NAME = "ticketingFullName"; |
|
252 |
public static final String TICKETING_FIRST_NAME = "ticketingFirstName"; |
|
253 |
public static final String TICKETING_LAST_NAME = "ticketingLastName"; |
|
254 |
public static final String TICKETING_PAYEE_CODE = "ticketingPayeeCode"; |
|
255 |
public static final String CCPP_PAN_CC = "ccppPanCC"; |
|
256 |
public static final String IM2U_WS_FLAG = "im2uWSFlag"; |
|
257 |
public static final String IM2U_WS_IDENT_CODE = "im2uWSIdentCode"; |
|
258 |
public static final String IM2U_WS_MYSG_ID = "im2uWSMySgId"; |
|
259 |
public static final String IM2U_WS_REG_TIMESTAMP = "im2uWSRegTimestamp"; |
|
260 |
|
|
244 | 261 |
} |
src/com/ib/ibss/enterprise/services/ss112_user/IBSSRetailUserCreateConfirmServices.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (M) 2009 Penril Datability (M) Sdn Bhd All rights reserved. |
|
3 |
* |
|
4 |
* This software is copyrighted. Under the copyright laws, this software |
|
5 |
* may not be copied, in whole or in part, without prior written consent |
|
6 |
* of Penril Datability (M) Sdn Bhd or its assignees. This software is |
|
7 |
* provided under the terms of a license between Penril Datability (M) |
|
8 |
* Sdn Bhd and the recipient, and its use is subject to the terms of that |
|
9 |
* license. |
|
10 |
*/ |
|
11 |
|
|
12 |
package com.ib.ibss.enterprise.services.ss112_user; |
|
13 |
|
|
14 |
import java.util.List; |
|
15 |
|
|
16 |
import my.com.upass.pojo.ClientApp; |
|
17 |
import com.ib.ibss.enterprise.services.IBSSEnterpriseServicesWorkspace; |
|
18 |
import com.ib.ibss.enterprise.services.ss102_user_admin.constants.IBSSUserConstants; |
|
19 |
import com.ib.ibss.error.exception.IBSSGenericException; |
|
20 |
import com.ib.ibss.error.handler.IBSSErrorHandler; |
|
21 |
import com.ib.ibss.struts.utils.IBSSSessionObjects; |
|
22 |
|
|
23 |
/** |
|
24 |
* Get necessary details information for performing application admin creation confirm |
|
25 |
*/ |
|
26 |
public class IBSSRetailUserCreateConfirmServices extends IBSSEnterpriseServicesWorkspace |
|
27 |
{ |
|
28 |
private static Class<IBSSRetailUserCreateConfirmServices> c_oClass = IBSSRetailUserCreateConfirmServices.class; |
|
29 |
|
|
30 |
/** |
|
31 |
* Class constructor specifying session object. |
|
32 |
* |
|
33 |
* @param sessionObjects session object containing all information stored in HTTP session |
|
34 |
*/ |
|
35 |
public IBSSRetailUserCreateConfirmServices(IBSSSessionObjects sessionObjects) |
|
36 |
{ |
|
37 |
super (sessionObjects); |
|
38 |
} |
|
39 |
|
|
40 |
@SuppressWarnings("unchecked") |
|
41 |
public void execute () throws IBSSGenericException |
|
42 |
{ |
|
43 |
String selectedAppName = ""; |
|
44 |
|
|
45 |
try |
|
46 |
{ |
|
47 |
List <ClientApp> clientAppList = (List<ClientApp>) getIBSSDynaBean().get(IBSSUserConstants.CLIENT_APP_LIST); |
|
48 |
Integer selectedAppId = (Integer) getBeanMessageObj(IBSSUserConstants.SELECTED_APPLICATION_ID); |
|
49 |
|
|
50 |
for(ClientApp clientApp : clientAppList) |
|
51 |
{ |
|
52 |
if(clientApp.getAppId() == selectedAppId) |
|
53 |
{ |
|
54 |
selectedAppName = clientApp.getAppName(); |
|
55 |
break; |
|
56 |
} |
|
57 |
} |
|
58 |
|
|
59 |
getIBSSDynaBean().set(IBSSUserConstants.SELECTED_APPLICATION_NAME, selectedAppName); |
|
60 |
|
|
61 |
} |
|
62 |
catch (Exception e) |
|
63 |
{ |
|
64 |
IBSSErrorHandler.handleServiceError (e, c_oClass); |
|
65 |
} |
|
66 |
} |
|
67 |
} |
src/com/ib/ibss/enterprise/services/ss112_user/IBSSRetailUserCreateDetailsServices.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (M) 2009 Penril Datability (M) Sdn Bhd All rights reserved. |
|
3 |
* |
|
4 |
* This software is copyrighted. Under the copyright laws, this software |
|
5 |
* may not be copied, in whole or in part, without prior written consent |
|
6 |
* of Penril Datability (M) Sdn Bhd or its assignees. This software is |
|
7 |
* provided under the terms of a license between Penril Datability (M) |
|
8 |
* Sdn Bhd and the recipient, and its use is subject to the terms of that |
|
9 |
* license. |
|
10 |
*/ |
|
11 |
|
|
12 |
package com.ib.ibss.enterprise.services.ss112_user; |
|
13 |
|
|
14 |
import java.util.List; |
|
15 |
|
|
16 |
import org.hibernate.Session; |
|
17 |
|
|
18 |
import my.com.upass.MinimalUPassControllerV2; |
|
19 |
import my.com.upass.generic.hibernate.HibernateUtils; |
|
20 |
import my.com.upass.pojo.ClientApp; |
|
21 |
import com.ib.ibss.enterprise.services.IBSSEnterpriseServicesWorkspace; |
|
22 |
import com.ib.ibss.enterprise.services.ss102_user_admin.constants.IBSSUserConstants; |
|
23 |
import com.ib.ibss.error.exception.IBSSGenericException; |
|
24 |
import com.ib.ibss.error.handler.IBSSErrorHandler; |
|
25 |
import com.ib.ibss.struts.utils.IBSSSessionObjects; |
|
26 |
|
|
27 |
public class IBSSRetailUserCreateDetailsServices extends IBSSEnterpriseServicesWorkspace |
|
28 |
{ |
|
29 |
private static Class<IBSSRetailUserCreateDetailsServices> c_oClass = IBSSRetailUserCreateDetailsServices.class; |
|
30 |
|
|
31 |
/** |
|
32 |
* Class constructor specifying session object. |
|
33 |
* |
|
34 |
* @param sessionObjects session object containing all information stored in HTTP session |
|
35 |
*/ |
|
36 |
public IBSSRetailUserCreateDetailsServices(IBSSSessionObjects sessionObjects) |
|
37 |
{ |
|
38 |
super(sessionObjects); |
|
39 |
} |
|
40 |
|
|
41 |
@SuppressWarnings("unchecked") |
|
42 |
public void execute () throws IBSSGenericException |
|
43 |
{ |
|
44 |
Session session = null; |
|
45 |
try |
|
46 |
{ |
|
47 |
MinimalUPassControllerV2 upass = new MinimalUPassControllerV2(); |
|
48 |
session = HibernateUtils.currentSession(); |
|
49 |
session.beginTransaction(); |
|
50 |
|
|
51 |
//get client application list for display |
|
52 |
List <ClientApp> clientAppList = upass.listRecognizedClientApps(session); |
|
53 |
|
|
54 |
getIBSSDynaBean ().set (IBSSUserConstants.CLIENT_APP_LIST, clientAppList); |
|
55 |
} |
|
56 |
catch (Exception e) |
|
57 |
{ |
|
58 |
IBSSErrorHandler.handleServiceError (e, c_oClass); |
|
59 |
} |
|
60 |
finally |
|
61 |
{ |
|
62 |
if(session!=null) |
|
63 |
{ |
|
64 |
session.clear(); |
|
65 |
session.close(); |
|
66 |
} |
|
67 |
} |
|
68 |
} |
|
69 |
} |
src/com/ib/ibss/enterprise/services/ss112_user/IBSSRetailUserCreateResultServices.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (M) 2009 Penril Datability (M) Sdn Bhd All rights reserved. |
|
3 |
* |
|
4 |
* This software is copyrighted. Under the copyright laws, this software |
|
5 |
* may not be copied, in whole or in part, without prior written consent |
|
6 |
* of Penril Datability (M) Sdn Bhd or its assignees. This software is |
|
7 |
* provided under the terms of a license between Penril Datability (M) |
|
8 |
* Sdn Bhd and the recipient, and its use is subject to the terms of that |
|
9 |
* license. |
|
10 |
*/ |
|
11 |
|
|
12 |
package com.ib.ibss.enterprise.services.ss112_user; |
|
13 |
|
|
14 |
import java.text.SimpleDateFormat; |
|
15 |
import java.util.Date; |
|
16 |
|
|
17 |
import my.com.upass.MinimalConstants; |
|
18 |
import my.com.upass.maybank.MaybankFacadeImpl; |
|
19 |
import my.com.upass.pojo.ClientApp; |
|
20 |
import net.penril.ibss.audit.log.AuditLogConstants; |
|
21 |
import net.penril.ibss.audit.log.USER_ACTIVITY_TYTPE; |
|
22 |
import com.ib.ibss.common.constant.ExceptionErrors; |
|
23 |
import com.ib.ibss.common.utils.ResourcesUtils; |
|
24 |
import com.ib.ibss.enterprise.services.IBSSEnterpriseServicesWorkspace; |
|
25 |
import com.ib.ibss.enterprise.services.StatusConstants; |
|
26 |
import com.ib.ibss.enterprise.services.ss102_user_admin.AdminSharedServices; |
|
27 |
import com.ib.ibss.enterprise.services.ss102_user_admin.constants.IBSSUserConstants; |
|
28 |
import com.ib.ibss.enterprise.services.ss222_application.constants.IBSSApplicationUserConstants; |
|
29 |
import com.ib.ibss.error.exception.IBSSBusinessException; |
|
30 |
import com.ib.ibss.error.exception.IBSSGenericException; |
|
31 |
import com.ib.ibss.error.handler.IBSSErrorHandler; |
|
32 |
import com.ib.ibss.struts.utils.IBSSSessionObjects; |
|
33 |
|
|
34 |
/** |
|
35 |
* Get necessary details information for performing application admin creation result |
|
36 |
*/ |
|
37 |
public class IBSSRetailUserCreateResultServices extends IBSSEnterpriseServicesWorkspace |
|
38 |
{ |
|
39 |
private static Class<IBSSRetailUserCreateResultServices> c_oClass = IBSSRetailUserCreateResultServices.class; |
|
40 |
|
|
41 |
/** |
|
42 |
* Class constructor specifying session object. |
|
43 |
* |
|
44 |
* @param sessionObjects session object containing all information stored in HTTP session |
|
45 |
*/ |
|
46 |
public IBSSRetailUserCreateResultServices(IBSSSessionObjects sessionObjects) |
|
47 |
{ |
|
48 |
super (sessionObjects); |
|
49 |
} |
|
50 |
|
|
51 |
public void createRetailUser () throws IBSSGenericException |
|
52 |
{ |
|
53 |
String logReason = ""; |
|
54 |
Long status = AuditLogConstants.UNSUCCESSFUL; |
|
55 |
String pan1 = ""; |
|
56 |
String pan2 = ""; |
|
57 |
String idNo = ""; |
|
58 |
String fullName = ""; |
|
59 |
String firstName = ""; |
|
60 |
String lastName = ""; |
|
61 |
String payeeCode = ""; |
|
62 |
String panCC = ""; |
|
63 |
String wsFlag = ""; |
|
64 |
String wsIdentCode = ""; |
|
65 |
String wsMySgId = ""; |
|
66 |
Date wsRegTimeStamp = new Date(); |
|
67 |
int rc = MinimalConstants.ERR_UNKNOWN; |
|
68 |
|
|
69 |
try |
|
70 |
{ |
|
71 |
String userAlias = getBeanMessage (IBSSUserConstants.USER_ALIAS); |
|
72 |
Integer selectedAppId = (Integer) getBeanMessageObj (IBSSUserConstants.SELECTED_APPLICATION_ID); |
|
73 |
String password = getBeanMessage (IBSSUserConstants.PASS); |
|
74 |
String confirmPassword = getBeanMessage (IBSSUserConstants.CONFIRM_PASS); |
|
75 |
String adminUserAlias = getIBSSessionObjects().getSessionUserAlias(); |
|
76 |
String adminPassword = getIBSSessionObjects().getSessionUserPassword(); |
|
77 |
|
|
78 |
/* This service to be shared among admin features and MK features */ |
|
79 |
AdminSharedServices service = new AdminSharedServices (); |
|
80 |
|
|
81 |
/* ----> Starts to verify and create user <----- */ |
|
82 |
MaybankFacadeImpl impl = new MaybankFacadeImpl(); |
|
83 |
|
|
84 |
//update different userProfile based on selected app id |
|
85 |
//m2u |
|
86 |
if(selectedAppId.equals(ClientApp.APP_ID_M2U)) |
|
87 |
{ |
|
88 |
/* Validate Password */ |
|
89 |
logReason = service.checkPasswordPattern (password ,getUPassService (), selectedAppId); |
|
90 |
|
|
91 |
pan1 = getBeanMessage (IBSSUserConstants.M2U_PAN1); |
|
92 |
pan2 = getBeanMessage (IBSSUserConstants.M2U_PAN2); |
|
93 |
rc = impl.newUser(adminUserAlias, adminPassword, userAlias, password, pan1, pan2); |
|
94 |
} |
|
95 |
//online stock |
|
96 |
else if(selectedAppId.equals(ClientApp.APP_ID_ONLINE_STOCK)) |
|
97 |
{ |
|
98 |
idNo = getBeanMessage (IBSSUserConstants.ONLINE_STOCK_ID_NO); |
|
99 |
rc = impl.newOnlineStockUser(adminUserAlias, adminPassword, userAlias, idNo); |
|
100 |
} |
|
101 |
//ticketing |
|
102 |
else if(selectedAppId.equals(ClientApp.APP_ID_ONLINE_TICKETING)) |
|
103 |
{ |
|
104 |
/* Validate Password */ |
|
105 |
logReason = service.checkPasswordPattern (password ,getUPassService (), selectedAppId); |
|
106 |
|
|
107 |
fullName = getBeanMessage (IBSSUserConstants.TICKETING_FULL_NAME); |
|
108 |
firstName = getBeanMessage (IBSSUserConstants.TICKETING_FIRST_NAME); |
|
109 |
lastName = getBeanMessage (IBSSUserConstants.TICKETING_LAST_NAME); |
|
110 |
payeeCode = getBeanMessage (IBSSUserConstants.TICKETING_PAYEE_CODE); |
|
111 |
rc = impl.newTicketingUser(adminUserAlias, adminPassword, userAlias, password, fullName, firstName, lastName, payeeCode); |
|
112 |
} |
|
113 |
//ccpp |
|
114 |
else if(selectedAppId.equals(ClientApp.APP_ID_CCPP)) |
|
115 |
{ |
|
116 |
/* Validate Password */ |
|
117 |
logReason = service.checkPasswordPattern (password ,getUPassService (), selectedAppId); |
|
118 |
|
|
119 |
panCC = getBeanMessage (IBSSUserConstants.CCPP_PAN_CC); |
|
120 |
rc = impl.newIbccPublicUser(adminUserAlias, adminPassword, userAlias, password, panCC); |
|
121 |
} |
|
122 |
//im2u |
|
123 |
else if(selectedAppId.equals(ClientApp.APP_ID_IM2U)) |
|
124 |
{ |
|
125 |
wsFlag = getBeanMessage (IBSSUserConstants.IM2U_WS_FLAG); |
|
126 |
wsIdentCode = getBeanMessage (IBSSUserConstants.IM2U_WS_IDENT_CODE); |
|
127 |
wsMySgId = getBeanMessage (IBSSUserConstants.IM2U_WS_MYSG_ID); |
|
128 |
String regTimeStamp = getBeanMessage (IBSSUserConstants.IM2U_WS_REG_TIMESTAMP); |
|
129 |
|
|
130 |
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); |
|
131 |
wsRegTimeStamp = dateFormat.parse(regTimeStamp); |
|
132 |
|
|
133 |
rc = impl.newIm2uUser(adminUserAlias, adminPassword, userAlias, wsFlag, wsIdentCode, wsMySgId, wsRegTimeStamp); |
|
134 |
} |
|
135 |
|
|
136 |
System.out.println("rc = "+rc); |
|
137 |
switch(rc) |
|
138 |
{ |
|
139 |
case MinimalConstants.ERR_SUCCESS: |
|
140 |
logReason = "Creation Successful: " + userAlias; |
|
141 |
status = AuditLogConstants.SUCCESSFUL; |
|
142 |
break; |
|
143 |
case MinimalConstants.ERR_PASSWD_WEAK: |
|
144 |
logReason = String.valueOf(rc) + ResourcesUtils.getApplicationResourceMessage("error.password.weak"); |
|
145 |
throw IBSSErrorHandler.createBusinessException (IBSSBusinessException.LOGIN, ExceptionErrors.LOGIN_PASSWORD_WEAK); |
|
146 |
case MinimalConstants.ERR_APP_SERV_NOT_PERMITTED: |
|
147 |
logReason = String.valueOf(rc) + ResourcesUtils.getApplicationResourceMessage("error.user.id.not.exist.inm2u.1"); |
|
148 |
throw IBSSErrorHandler.createBusinessException ("error.user.id.not.exist.inm2u.", "2"); |
|
149 |
case MinimalConstants.ERR_INVALID_USERALIAS: |
|
150 |
logReason = "Weak User ID Combination: " + userAlias; |
|
151 |
throw IBSSErrorHandler.createBusinessException (IBSSBusinessException.LOGIN, ExceptionErrors.LOGIN_USER_ALIAS_WEAK); |
|
152 |
case MinimalConstants.ERR_ALREADY_EXIST: |
|
153 |
logReason = AuditLogConstants.CREATE_ADMIN_R_ALREADY_EXIST + userAlias; |
|
154 |
throw IBSSErrorHandler.createBusinessException (IBSSBusinessException.LOGIN, StatusConstants.UPASS_ERR_USER_ALREADY_EXIST); |
|
155 |
case MinimalConstants.ERR_INVALID_INPUT: |
|
156 |
logReason = String.valueOf(rc) + ResourcesUtils.getApplicationResourceMessage("error.invalid.input"); |
|
157 |
throw IBSSErrorHandler.createBusinessException (IBSSBusinessException.LOGIN, StatusConstants.UPASS_ERR_INVALID_INPUT); |
|
158 |
default: |
|
159 |
logReason = "Unhandled Response: " + userAlias + " " + rc; |
|
160 |
throw IBSSErrorHandler.createBusinessException (IBSSBusinessException.LOGIN, ExceptionErrors.ERR_SYSTEM_NOT_READY); |
|
161 |
} |
|
162 |
|
|
163 |
getIBSSDynaBean ().set (IBSSUserConstants.JSP_TITLE, |
|
164 |
ResourcesUtils.getApplicationResourceMessage ("user.user") + " " + userAlias + " " + |
|
165 |
ResourcesUtils.getApplicationResourceMessage ("user.create.result.successful")); |
|
166 |
} |
|
167 |
catch (Exception e) |
|
168 |
{ |
|
169 |
IBSSErrorHandler.handleServiceError (e, c_oClass); |
|
170 |
} |
|
171 |
finally |
|
172 |
{ |
|
173 |
try |
|
174 |
{ |
|
175 |
getAuditLogDAO ().logActivity (USER_ACTIVITY_TYTPE.CREATE_RIB_USER.getID(), |
|
176 |
USER_ACTIVITY_TYTPE.CREATE_RIB_USER.getDescription() + ": " + getBeanMessage (IBSSApplicationUserConstants.USER_ALIAS), |
|
177 |
status, |
|
178 |
logReason, |
|
179 |
getIBSSessionObjects ().getSessionUserAlias (), |
|
180 |
getIBSSessionObjects ().getSessionUser ().getRoleId (), |
|
181 |
getIBSSessionObjects ().getSessionUser ().getGroupId (), |
|
182 |
getIBSSessionObjects ().getSessionUser ().getCurrentLoginIPAddress()); |
|
183 |
|
|
184 |
} |
|
185 |
catch (Exception e) |
|
186 |
{ |
|
187 |
IBSSErrorHandler.handleServiceError (e, c_oClass); |
|
188 |
} |
Also available in: Unified diff