Skip to content

Instantly share code, notes, and snippets.

@pentaho-nbaker
Last active August 29, 2015 14:03
Show Gist options
  • Select an option

  • Save pentaho-nbaker/902cd41d008c812afae2 to your computer and use it in GitHub Desktop.

Select an option

Save pentaho-nbaker/902cd41d008c812afae2 to your computer and use it in GitHub Desktop.
/**
* Save or update a User in the system.
*
* Create or update a system user with the values from the supplied XML document. Existing user
* records will be overwritten if the overwrite flag is true. If a user was overwritten,
* <code>true</code> will be returned in the Response object.
*
* @param userDoc list of files to be restored
* <pre>
* {@code
* <something>
* <another>Thing</another>
* </something>
* }
* </pre>
* @param overwrite boolean flag indicating whether and existing user record should be overwritten
*
* @return Response Response wraps a boolean with true indicating that the save overwrote a
* previous record
*
* @throws IllegalStateException
*/
@PUT
@Path( "/save" )
@Consumes( { WILDCARD } )
public Response saveUser( String userDoc, boolean overwrite ){
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment