Case 1: request create new user but effect next week (this case for new staff)Case 2: staff left off work but can't delete account (for report monthly)All that cases I can build action Disable & Enable userStep1: find file web-client-config-dialogs.xml add row
<dialog name="disableUser" page="/jsp/users/disable-user.jsp" managed-bean="DisableUserDialog"
icon="/images/icons/action_user.gif" title-id="title_disable_user"
description-id="disable_user_info" error-message-id="error_wizard" />
<dialog name="enableUser" page="/jsp/users/enable-user.jsp" managed-bean="EnableUserDialog"
icon="/images/icons/action_user.gif" title-id="title_enable_user"
description-id="enable_user_info" error-message-id="error_wizard" />
Step2: find file users.jsp add row
<a:booleanEvaluator value="#{r.userName != 'admin'}">
<a:actionLink value="Disable" image="/images/icons/locked.gif" showLink="false" action="dialog:disableUser" actionListener="#{DisableUserDialog.setupUserAction}">
<f:param name="id" value="#{r.id}" />
</a:actionLink>
</a:booleanEvaluator>
<a:booleanEvaluator value="#{r.userName != 'admin'}">
<a:actionLink value="Enable" image="/images/icons/unlock.gif" showLink="false" action="dialog:enableUser" actionListener="#{EnableUserDialog.setupUserAction}">
<f:param name="id" value="#{r.id}" />
</a:actionLink>
</a:booleanEvaluator>
Step3: coppy file delete-user.jsp then rename disable-user.jsp & enable-user.jspStep4: coppy file DeleteUserDialog.java then rename DisableUserDialog.java & EnableUserDialog.javain 2 file DisableUserDialog.java and EnableUserDialog.java find & remove row
authenticationService.deleteAuthentication(userName);
this.personService.deletePerson(userName);
add row in DisableUserDialog.java:
authenticationService.setAuthenticationEnabled(userName, false);
add row in EnableUserDialog.java:
authenticationService.setAuthenticationEnabled(userName, true);
Step5: buildHope this useful for you!