Package com.mastfrog.acteur.auth
Class SimpleUser.Base<T>
java.lang.Object
com.mastfrog.acteur.auth.SimpleUser.Base<T>
- Type Parameters:
T- The ID type
- All Implemented Interfaces:
SimpleUser<T>
- Enclosing interface:
- SimpleUser<IdType>
Simple implementation of SimpleUser
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mastfrog.acteur.auth.SimpleUser
SimpleUser.Base<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringGet a human-readable display name, falling back to the name if none is setfinal booleanfinal inthashCode()final Tid()An ID type, typically a database primary key or something like MongoDB's ObjectIDGet a string representation of the ID suitable for use in URLs or other placesfinal Stringname()Programmatic name of this user suitable for use in urlstoString()final intversion()Version of this user, to be incremented when the record of this user is modified
-
Constructor Details
-
Base
-
Base
-
-
Method Details
-
name
Description copied from interface:SimpleUserProgrammatic name of this user suitable for use in urls- Specified by:
namein interfaceSimpleUser<T>- Returns:
- A name
-
version
public final int version()Description copied from interface:SimpleUserVersion of this user, to be incremented when the record of this user is modified- Specified by:
versionin interfaceSimpleUser<T>- Returns:
- a version
-
id
Description copied from interface:SimpleUserAn ID type, typically a database primary key or something like MongoDB's ObjectID- Specified by:
idin interfaceSimpleUser<T>- Returns:
- The id that uniquely identifies this user
-
idAsString
Description copied from interface:SimpleUserGet a string representation of the ID suitable for use in URLs or other places- Specified by:
idAsStringin interfaceSimpleUser<T>- Returns:
- The string form of the id
-
displayName
Description copied from interface:SimpleUserGet a human-readable display name, falling back to the name if none is set- Specified by:
displayNamein interfaceSimpleUser<T>- Returns:
- A human readable name
-
equals
-
hashCode
public final int hashCode() -
toString
-