agave-profiles/profiles-core/src/main/java/org/iplantc/service/profile/dao/ScimProfileDAO.java
/**
	 * Creates a new user profile in the remote identity store by calling the SCIM service.
	 * @param profile a {@link ScimProfile} representing the user to add
	 * @return the saved user
	 * @throws RemoteDataException if the call fails.
	 */
Creates a new user profile in the remote identity store by calling the SCIM service.
@param profile a  ScimProfile representing the user to add
@return the saved user
@throws RemoteDataException if the call fails.
Creates a new user profile in the remote identity store by calling the SCIM service . @param profile a ScimProfile representing the user to add @return the saved user @throws RemoteDataException if the call fails .
public Profile create(ScimProfile profile) throws RemoteDataException {
		try {
			ScimService scimService = getScimService();
			UserResource scimUser = scimService.create("Users", profile.toUserResource());
			return new ScimProfile(scimUser);
		}
		catch (ScimException e) {
			throw new RemoteDataException("Error occurred calling the remote service: " + e.getMessage(), e);
		} catch (Exception e) {
			throw new RemoteDataException("Failed to save the user profile. " + e.getMessage(), e);
		}
	}
public Profile create ( ScimProfile profile ) throws RemoteDataException { try { ScimService scimService = getScimService ( ) ; UserResource scimUser = scimService . create ( "Users" , profile . toUserResource ( ) ) ; return new ScimProfile ( scimUser ) ; } catch ( ScimException e ) { throw new RemoteDataException ( "Error occurred calling the remote service: " + e . getMessage ( ) , e ) ; } catch ( Exception e ) { throw new RemoteDataException ( "Failed to save the user profile. " + e . getMessage ( ) , e ) ; } }
Creates a new user profile in the remote identity store by calling the SCIM service.
Creates a new user profile in the remote identity store by calling the SCIM service .
// Create a ScimService using the credentials in the service config // Convert the new user profile to a UserResource and post to the SCIM service. // Transfrom the response back to an ScimUser for sending back in the response.