java.lang.Object
net.commuty.parking.model.UserId
public class UserId
extends java.lang.Object
This identifies a user via one UserIdType and one identifier value.
A parking user is known in Commuty via one or more UserId. Each user id has a type of identifier (email, license plate,...) and the identification value.
For instance, a correct user id could be:
- type:
UserIdType.EMAIL - id: parking-user@someorg.com
-
Method Summary
Modifier and Type Method Description static UserIdfromBadgeNumber(java.lang.String badgeNumber)Creates a user id based on a badge number.static UserIdfromCardholderId(java.lang.String cardholderId)Creates a user id based on a cardholder identifier.static UserIdfromEmail(java.lang.String email)Creates a user id based on an email.static UserIdfromIdentificationNumber(java.lang.String identificationNumber)Creates a user id based on an identification numberstatic UserIdfromLicensePlate(java.lang.String licensePlate)Creates a user id based on a license plate.static UserIdfromPinCode(java.lang.String pinCode)Creates a user id based on a pin code.static UserIdfromQrCode(java.lang.String qrCode)Creates a user id based on a generated qr code.static UserIdfromWim26EncodedLicensePlate(java.lang.String win26EncodedLicensePlate)Creates a user id based on a hash of a license plate using the Wiegand 26 bit protocol.static UserIdfromWim64EncodedLicensePlate(java.lang.String win64EncodedLicensePlate)Creates a user id based on a hash of a license plate using the Wiegand 64 bit protocol.java.lang.StringgetId()The value of the identifier.UserIdTypegetType()The identification type.booleanhasType(UserIdType type)java.lang.StringtoString()
-
Method Details
-
fromEmail
Creates a user id based on an email. -
fromLicensePlate
Creates a user id based on a license plate. -
fromIdentificationNumber
Creates a user id based on an identification number -
fromQrCode
Creates a user id based on a generated qr code. -
fromBadgeNumber
Creates a user id based on a badge number. -
fromCardholderId
Creates a user id based on a cardholder identifier. -
fromPinCode
Creates a user id based on a pin code. -
fromWim26EncodedLicensePlate
Creates a user id based on a hash of a license plate using the Wiegand 26 bit protocol.
This is compatible with the "Wiegand Interface Module" device from Nedap.
For more information, Click here to see the Wiegand Interface Module website.
-
fromWim64EncodedLicensePlate
Creates a user id based on a hash of a license plate using the Wiegand 64 bit protocol.
This is compatible with the "Wiegand Interface Module" device from Nedap.
For more information, Click here to see the Wiegand Interface Module website.
-
getId
public java.lang.String getId()The value of the identifier. -
getType
The identification type. -
hasType
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-