agave-profiles/profiles-core/src/main/java/org/iplantc/service/profile/manager/InternalUserManager.java
/**
	 * Performs a simple update on the currently defined internal user with the
	 * information from the json representation of this InternalUser.
	 * 
	 * @param jsonInternalUser
	 * @param currentInternalUser
	 * @return
	 * @throws ProfileException
	 */
Performs a simple update on the currently defined internal user with the
information from the json representation of this InternalUser.


Performs a simple update on the currently defined internal user with the information from the json representation of this InternalUser .
public InternalUser updateInternalUser(JSONObject jsonInternalUser, InternalUser currentInternalUser) 
	throws ProfileException {
		try 
		{
			currentInternalUser = InternalUser.fromJSON(jsonInternalUser, currentInternalUser);
			currentInternalUser.setLastUpdated(new Date());
			dao.persist(currentInternalUser);
			NotificationManager.process(currentInternalUser.getUuid(), "UPDATED", currentInternalUser.getCreatedBy());
			return currentInternalUser;
		} 
		catch(ProfileArgumentException e) {
			throw new ProfileException(e.getMessage(), e);
		}
		catch(Exception e) {
			throw new ProfileException("Failed to create new internal user.", e);
		}
	}
public InternalUser updateInternalUser ( JSONObject jsonInternalUser , InternalUser currentInternalUser ) throws ProfileException { try { currentInternalUser = InternalUser . fromJSON ( jsonInternalUser , currentInternalUser ) ; currentInternalUser . setLastUpdated ( new Date ( ) ) ; dao . persist ( currentInternalUser ) ; NotificationManager . process ( currentInternalUser . getUuid ( ) , "UPDATED" , currentInternalUser . getCreatedBy ( ) ) ; return currentInternalUser ; } catch ( ProfileArgumentException e ) { throw new ProfileException ( e . getMessage ( ) , e ) ; } catch ( Exception e ) { throw new ProfileException ( "Failed to create new internal user." , e ) ; } }
Performs a simple update on the currently defined internal user with the
 information from the json representation of this InternalUser.
Performs a simple update on the currently defined internal user with the information from the json representation of this InternalUser .