org.syncope.client.to.UserRequestTO Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.syncope.client.to;
import org.syncope.client.AbstractBaseBean;
import org.syncope.client.mod.UserMod;
import org.syncope.types.UserRequestType;
public class UserRequestTO extends AbstractBaseBean {
private static final long serialVersionUID = 1228351243795629329L;
private long id;
private UserTO userTO;
private UserMod userMod;
private Long userId;
private UserRequestType type;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public UserRequestType getType() {
return type;
}
public void setType(UserRequestType type) {
this.type = type;
}
public UserTO getUserTO() {
return type != UserRequestType.CREATE
? null
: userTO;
}
public void setUserTO(UserTO userTO) {
this.userTO = userTO;
}
public UserMod getUserMod() {
return type != UserRequestType.UPDATE
? null
: userMod;
}
public void setUserMod(UserMod userMod) {
this.userMod = userMod;
}
public Long getUserId() {
return type != UserRequestType.DELETE
? null
: userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy