public Response save ( ) { assertNotEmpty ( replicatorDoc . getSource ( ) , "Source" ) ; assertNotEmpty ( replicatorDoc . getTarget ( ) , "Target" ) ; if ( userCtxName != null ) { UserCtx ctx = replicatorDoc . new UserCtx ( ) ; ctx . setName ( userCtxName ) ; ctx . setRoles ( userCtxRoles ) ; replicatorDoc . setUserCtx ( ctx ) ; } return dbc . put ( dbURI , replicatorDoc , true ) ; }
Adds a new document to the replicator database .