org.olat.user
Class ProfileFormController
java.lang.Object
org.olat.core.gui.control.DefaultController
org.olat.core.gui.control.controller.BasicController
org.olat.core.gui.components.form.flexible.impl.FormBasicController
org.olat.user.ProfileFormController
- All Implemented Interfaces:
- Controller, ControllerEventListener, Disposable
public class ProfileFormController
- extends FormBasicController
Provides a controller which lets the user edit their user profile and choose
the fields which are made publicly visible.
- Author:
- twuersch
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ProfileFormController
public ProfileFormController(UserRequest ureq,
WindowControl wControl,
HomePageConfig conf,
Identity identity,
boolean isAdministrativeUser)
- Creates this controller.
- Parameters:
ureq - The user request.wControl - The window control.conf - The homepage configuration (decides which user profile fields
are visible for everyone).identity - The identity of the user.isAdministrativeUser - true: user is editing another users profile as
user manager; false: use is editing his own profile
updateFromFormData
public void updateFromFormData(HomePageConfig config,
Identity identity)
- Stores the data from the form into a) the user's home page configuration
and b) the user's properties.
- Parameters:
config - The user's home page configuration (i.e. flags for publicly
visible fields).identity - The user's identity
updateIdentityFromFormData
public Identity updateIdentityFromFormData(Identity id)
- Take form data and set it in the user fields for the current subject
- Parameters:
id - The identity to be updated (transient, does not do any db calls)
- Returns:
- the updated identity object
setDirtyMarking
public void setDirtyMarking(boolean isDirtyMarking)
- Sets the dirty mark for this form.
- Parameters:
isDirtyMarking - true sets this form dirty.