public class OwChangePasswordView extends OwView
View displayed for capability to change password.
Requires the "EcmBaseUrl" parameter name in bootstrap->globalParameters to work.
Note: Default implementation work only with stand-alone Alfresco installation
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIRM_PWD |
static String |
NEW_PWD |
static String |
OLD_PWD |
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTargetEMPTY_STRING| Constructor and Description |
|---|
OwChangePasswordView() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
changePassword(String oldPwd,
String newPwd)
(overridable)
Process change Password for with provided information.
|
protected String |
getUserName()
Used in
changePassword(String, String) method, to send the identification user name. |
boolean |
isPasswordChanged()
Return flag if password was changed or not.
|
void |
onChangePwd(javax.servlet.http.HttpServletRequest req) |
protected void |
onRender(Writer w_p)
called when the view should create its HTML content to be displayed
|
protected void |
renderPasswordRow(Writer w,
String label,
String inputId,
String addRowClass) |
protected void |
renderRow(Writer w,
String inputType,
String label,
String inputId,
String addRowClass) |
protected String |
usesFormWithAttributes()
to get additional form attributes used for the form
override if your view needs a form.
|
activate, addView, detach, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getIterator, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, getViewList, init, isFormTargetExternal, isNamedRegion, isRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, onUpdate, render, renderHTMLFormular, renderNamedRegion, renderRegion, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormalattach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTargetpublic static final String OLD_PWD
public static final String NEW_PWD
public static final String CONFIRM_PWD
protected void onRender(Writer w_p) throws Exception
OwViewprotected void renderPasswordRow(Writer w, String label, String inputId, String addRowClass) throws IOException
IOExceptionprotected void renderRow(Writer w, String inputType, String label, String inputId, String addRowClass) throws IOException
IOExceptionprotected String usesFormWithAttributes()
OwViewusesFormWithAttributes in class OwViewpublic void onChangePwd(javax.servlet.http.HttpServletRequest req)
throws Exception
Exceptionprotected boolean changePassword(String oldPwd, String newPwd) throws OwException
oldPwd - String current user passwordnewPwd - String new user passwordOwException - if change password cannot be proceedprotected String getUserName() throws OwException
changePassword(String, String) method, to send the identification user name.OwExceptionpublic boolean isPasswordChanged()
changePassword(String, String) returned trueCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.