Saves the user. If the user already existed, the user is updated.
@param user user to save, cannot be null.
@throws RuntimeException when a user with the same name already exists.
Saves a user's information.
@param user the user's information
@throws UserExistsException thrown when user already exists
@return user the updated user object
Saves the user. If the user already existed, the user is updated.
@param user user to save, cannot be null.
@throws RuntimeException when a user with the same name already exists.
@throws UnsupportedOperationException if identity service implementation is read only. See {@link #isReadOnly()}
@throws AuthorizationException if the user has no {@link Permissions#UPDATE} permissions on {@link Resources#USER} (update existing user)or if user has no {@link Permissions#CREATE} permissions on {@link Resources#USER} (save new user).
This method is used to update an existing User object
@param user The user object to update
@param broadcast If the broadcast is true , then all the user eventlistener that register with the organization service will be called
@throws Exception The exception can be throwed if the the UserHandlercannot save the user object or any listeners fail to handle the user event.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.