io.gravitee.am.model.UserActivity 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.swagger.annotations.ApiModelProperty;
import java.util.Date;
/**
* @author Rémi SULTAN (remi.sultan at graviteesource.com)
* @author GraviteeSource Team
*/
public class UserActivity {
public enum Type {
LOGIN
}
private String id;
private ReferenceType referenceType;
private String referenceId;
private Type userActivityType;
private String userActivityKey;
private Double latitude;
private Double longitude;
private String userAgent;
private Integer loginAttempts;
@ApiModelProperty(dataType = "java.lang.Long")
private Date createdAt;
@ApiModelProperty(dataType = "java.lang.Long")
private Date expireAt;
public String getId() {
return id;
}
public UserActivity setId(String id) {
this.id = id;
return this;
}
public ReferenceType getReferenceType() {
return referenceType;
}
public UserActivity setReferenceType(ReferenceType referenceType) {
this.referenceType = referenceType;
return this;
}
public String getReferenceId() {
return referenceId;
}
public UserActivity setReferenceId(String referenceId) {
this.referenceId = referenceId;
return this;
}
public String getUserActivityKey() {
return userActivityKey;
}
public UserActivity setUserActivityKey(String key) {
this.userActivityKey = key;
return this;
}
public Double getLatitude() {
return latitude;
}
public UserActivity setLatitude(Double latitude) {
this.latitude = latitude;
return this;
}
public Double getLongitude() {
return longitude;
}
public UserActivity setLongitude(Double longitude) {
this.longitude = longitude;
return this;
}
public Date getCreatedAt() {
return createdAt;
}
public UserActivity setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
return this;
}
public Type getUserActivityType() {
return userActivityType;
}
public UserActivity setUserActivityType(Type userActivityType) {
this.userActivityType = userActivityType;
return this;
}
public String getUserAgent() {
return userAgent;
}
public UserActivity setUserAgent(String userAgent) {
this.userAgent = userAgent;
return this;
}
public Date getExpireAt() {
return expireAt;
}
public UserActivity setExpireAt(Date expireAt) {
this.expireAt = expireAt;
return this;
}
public Integer getLoginAttempts() {
return loginAttempts;
}
public UserActivity setLoginAttempts(Integer loginAttempts) {
this.loginAttempts = loginAttempts;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy