io.spotnext.spring.web.dto.UserStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spot-spring-web-support Show documentation
Show all versions of spot-spring-web-support Show documentation
The spOt microservice framework.
package io.spotnext.spring.web.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* UserStatus class.
*
* @author mojo2012
* @version 1.0
* @since 1.0
*/
public class UserStatus {
private boolean isAuthenticated = false;
private String username;
private String sessionId;
private String redirectUrl;
/**
* Getter for the field redirectUrl
.
*
* @return a {@link java.lang.String} object.
*/
public String getRedirectUrl() {
return redirectUrl;
}
/**
* Setter for the field redirectUrl
.
*
* @param redirectUrl a {@link java.lang.String} object.
*/
public void setRedirectUrl(final String redirectUrl) {
this.redirectUrl = redirectUrl;
}
/**
* isAuthenticated.
*
* @return a boolean.
*/
@JsonProperty("isAuthenticated")
public boolean isAuthenticated() {
return isAuthenticated;
}
/**
* setAuthenticated.
*
* @param isAuthenticated a boolean.
*/
public void setAuthenticated(final boolean isAuthenticated) {
this.isAuthenticated = isAuthenticated;
}
/**
* Getter for the field username
.
*
* @return a {@link java.lang.String} object.
*/
public String getUsername() {
return username;
}
/**
* Setter for the field username
.
*
* @param username a {@link java.lang.String} object.
*/
public void setUsername(final String username) {
this.username = username;
}
/**
* Getter for the field sessionId
.
*
* @return a {@link java.lang.String} object.
*/
public String getSessionId() {
return sessionId;
}
/**
* Setter for the field sessionId
.
*
* @param sessionId a {@link java.lang.String} object.
*/
public void setSessionId(final String sessionId) {
this.sessionId = sessionId;
}
}