/*
 * Copyright 2016 EPAM Systems
 * 
 * 
 * This file is part of EPAM Report Portal.
 * https://github.com/reportportal/commons-model
 * 
 * Report Portal is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Report Portal is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Report Portal.  If not, see <http://www.gnu.org/licenses/>.
 */ 
 
package com.epam.ta.reportportal.ws.model.user;

import com.epam.ta.reportportal.ws.model.WarningAwareRS;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * 
 * @author Aliaksandr_Kazantsau
 * 
 */
@JsonInclude(Include.NON_NULL)
public class CreateUserRS extends WarningAwareRS {

	@JsonProperty("login")
	private String login;

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	@Override
	public String toString() {
		final StringBuilder sb = new StringBuilder("CreateUserRS{");
		sb.append("login='").append(login).append('\'');
		sb.append('}');
		return sb.toString();
	}
}
@@ -16,9 +16,9 @@
  201
-6
+9
  EPA
@@ -33,442 +33,381 @@
 s%0A *
- 
 %0A * 
-%0A * This file is part of EPAM Report Portal.%0A * https://github.com/reportportal/commons-model%0A * %0A * Report Portal is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU General Public License as published by%0A * the Free Software Foundation, either version 3 of the License, or%0A * (at your option) any later version.
+Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0
 %0A *
- 
 %0A * 
-Report Portal is distributed in the hope that it will be useful,%0A * but
+Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A *
  WIT
@@ -415,325 +415,182 @@
 OUT 
-ANY 
 WARRANT
-Y; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU General Public License for more details.%0A * %0A * You should have received a copy of the GNU General Public License%0A * along with Report Portal.  If not, see %3Chttp://www.gnu.org/l
+IES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the L
 icense
-s/%3E
 .%0A */
- %0A 
+%0A
 %0Apac
@@ -749,62 +749,8 @@
 de;%0A
-import com.fasterxml.jackson.annotation.JsonProperty;%0A
 impo
@@ -809,18 +809,68 @@
 ude;
+%0Aimport com.fasterxml.jackson.annotation.JsonProperty;
 %0A%0A/**%0A
- * %0A
  * @
@@ -901,12 +901,8 @@
 sau%0A
- * %0A
  */%0A
@@ -984,16 +984,56 @@
 reRS %7B%0A%0A
+%09@JsonProperty(%22id%22)%0A%09private Long id;%0A%0A
 %09@JsonPr
@@ -1072,16 +1072,194 @@
 login;%0A%0A
+%09public CreateUserRS(Long id, String login) %7B%0A%09%09this.id = id;%0A%09%09this.login = login;%0A%09%7D%0A%0A%09public Long getId() %7B%0A%09%09return id;%0A%09%7D%0A%0A%09public void setId(Long id) %7B%0A%09%09this.id = id;%0A%09%7D%0A%0A
 %09public 
@@ -1464,16 +1464,16 @@
 rRS%7B%22);%0A
-
 %09%09sb.app
@@ -1477,16 +1477,49 @@
 append(%22
+id=%22).append(id);%0A%09%09sb.append(%22, 
 login='%22

Add login to create user response