WCP 11gR1: Change the Password Programmatically
Recently we implemented a Custom Interface for changing the password in a WebCenter Portal 11.1.1.8 environment. Here I am sharing some of the code to achieve it (taken from WebCenter API). Java Code Snippet: public void setPassword(ActionEvent event) { String METHOD_NAME = "setPassword"; logger.entering(CLASS_NAME, "setPassword"); final String userName = WebCenterSecurityUtils.getUserName(); try { FacesContext fCtx = FacesContext.getCurrentInstance(); Application app = fCtx.getApplication(); // This managed bean returns if the Change Password is allowed in WebCenter boolean allowPasswordChange = ((Boolean)ADFContext.getCurrent().getExpressionEvaluator().evaluate("#{o_w_wa_i_v_b_changePasswordBean.passwordChangeAllowed}")).booleanValue() if (!allowPasswordChange) { logger.fine(CLASS_NAME, "setPassword", "skipping passwd change as admin has disabled it"); WCApplicationContext