io.gravitee.am.model.User Maven / Gradle / Ivy
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 io.gravitee.am.model;
import io.gravitee.am.model.scim.Address;
import io.gravitee.am.model.scim.Attribute;
import io.gravitee.am.model.scim.Certificate;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* @author David BRASSELY (david.brassely at graviteesource.com)
* @author Titouan COMPIEGNE (titouan.compiegne at graviteesource.com)
* @author GraviteeSource Team
*/
public class User {
private String id;
private String externalId;
private String username;
private String password;
private String email;
private String displayName;
private String nickName;
private String firstName;
private String lastName;
private String title;
private String type;
private String preferredLanguage;
private List emails;
private List phoneNumbers;
private List ims;
private List photos;
private List entitlements;
private List addresses;
private List roles;
private Set rolesPermissions;
private List x509Certificates;
private boolean accountNonExpired = true;
private boolean accountNonLocked = true;
private Date accountLockedAt;
private Date accountLockedUntil;
private boolean credentialsNonExpired = true;
private boolean enabled = true;
private boolean internal;
private boolean preRegistration;
private boolean registrationCompleted;
private String domain;
private String source;
private String client;
private long loginsCount;
private Map additionalInformation;
private Date loggedAt;
private Date createdAt;
private Date updatedAt;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getExternalId() {
return externalId;
}
public void setExternalId(String externalId) {
this.externalId = externalId;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getNickName() {
return nickName;
}
public void setNickName(String nickName) {
this.nickName = nickName;
}
public String getDisplayName() {
return displayName;
}
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getPreferredLanguage() {
return preferredLanguage;
}
public void setPreferredLanguage(String preferredLanguage) {
this.preferredLanguage = preferredLanguage;
}
public List getEmails() {
return emails;
}
public void setEmails(List emails) {
this.emails = emails;
}
public List getPhoneNumbers() {
return phoneNumbers;
}
public void setPhoneNumbers(List phoneNumbers) {
this.phoneNumbers = phoneNumbers;
}
public List getIms() {
return ims;
}
public void setIms(List ims) {
this.ims = ims;
}
public List getPhotos() {
return photos;
}
public void setPhotos(List photos) {
this.photos = photos;
}
public List getEntitlements() {
return entitlements;
}
public void setEntitlements(List entitlements) {
this.entitlements = entitlements;
}
public List getAddresses() {
return addresses;
}
public void setAddresses(List addresses) {
this.addresses = addresses;
}
public List getX509Certificates() {
return x509Certificates;
}
public void setX509Certificates(List x509Certificates) {
this.x509Certificates = x509Certificates;
}
public boolean isAccountNonExpired() {
return accountNonExpired;
}
public void setAccountNonExpired(boolean accountNonExpired) {
this.accountNonExpired = accountNonExpired;
}
public boolean isAccountNonLocked() {
return accountNonLocked;
}
public void setAccountNonLocked(boolean accountNonLocked) {
this.accountNonLocked = accountNonLocked;
}
public Date getAccountLockedAt() {
return accountLockedAt;
}
public void setAccountLockedAt(Date accountLockedAt) {
this.accountLockedAt = accountLockedAt;
}
public Date getAccountLockedUntil() {
return accountLockedUntil;
}
public void setAccountLockedUntil(Date accountLockedUntil) {
this.accountLockedUntil = accountLockedUntil;
}
public boolean isCredentialsNonExpired() {
return credentialsNonExpired;
}
public void setCredentialsNonExpired(boolean credentialsNonExpired) {
this.credentialsNonExpired = credentialsNonExpired;
}
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public boolean isInternal() {
return internal;
}
public void setInternal(boolean internal) {
this.internal = internal;
}
public boolean isPreRegistration() {
return preRegistration;
}
public void setPreRegistration(boolean preRegistration) {
this.preRegistration = preRegistration;
}
public boolean isRegistrationCompleted() {
return registrationCompleted;
}
public void setRegistrationCompleted(boolean registrationCompleted) {
this.registrationCompleted = registrationCompleted;
}
public String getDomain() {
return domain;
}
public void setDomain(String domain) {
this.domain = domain;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public String getClient() {
return client;
}
public void setClient(String client) {
this.client = client;
}
public long getLoginsCount() {
return loginsCount;
}
public void setLoginsCount(long loginsCount) {
this.loginsCount = loginsCount;
}
public Date getLoggedAt() {
return loggedAt;
}
public void setLoggedAt(Date loggedAt) {
this.loggedAt = loggedAt;
}
public List getRoles() {
return roles;
}
public void setRoles(List roles) {
this.roles = roles;
}
public Set getRolesPermissions() {
return rolesPermissions;
}
public void setRolesPermissions(Set rolesPermissions) {
this.rolesPermissions = rolesPermissions;
}
public Map getAdditionalInformation() {
return additionalInformation;
}
public void setAdditionalInformation(Map additionalInformation) {
this.additionalInformation = additionalInformation;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public boolean isInactive() {
return isPreRegistration() && !isRegistrationCompleted();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy