Package org.minijax.security
Class UserSession
java.lang.Object
org.minijax.dao.DefaultBaseEntity
org.minijax.security.UserSession
- All Implemented Interfaces:
java.io.Serializable,BaseEntity
@Entity public class UserSession extends DefaultBaseEntity
The UserSession class represents an authenticated session which
can persist beyond the Java EE container session. For example,
a UserSession can be used for "remember me" functionality.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description UserSession() -
Method Summary
Modifier and Type Method Description SecurityUsergetUser()java.util.UUIDgetUserId()voidsetUser(SecurityUser user)Methods inherited from class org.minijax.dao.DefaultBaseEntity
copyNonNullProperties, equals, fromJson, getCreatedDateTime, getDeletedDateTime, getId, getUpdatedDateTime, hashCode, isDeleted, onPrePersist, onPreUpdate, setCreatedDateTime, setDeleted, setId, setUpdatedDateTime, toJsonMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
UserSession
public UserSession()
-
-
Method Details
-
getUserId
public java.util.UUID getUserId() -
getUser
-
setUser
-