Package net.commuty.parking.model
Class UserId
java.lang.Object
net.commuty.parking.model.UserId
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic UserIdfromBadgeNumber(String badgeNumber) Creates a user id based on a badge number.static UserIdfromCardholderId(String cardholderId) Creates a user id based on a cardholder identifier.static UserIdCreates a user id based on an email.static UserIdfromIdentificationNumber(String identificationNumber) Creates a user id based on an identification numberstatic UserIdfromLicensePlate(String licensePlate) Creates a user id based on a license plate.static UserIdfromPinCode(String pinCode) Creates a user id based on a pin code.static UserIdfromQrCode(String qrCode) Creates a user id based on a generated qr code.static UserIdfromWim64EncodedLicensePlate(String win64EncodedLicensePlate) Creates a user id based on a hash of a license plate using the Wiegand 64 bit protocol.getId()The value of the identifier.getType()The identification type.inthashCode()booleanhasType(UserIdType type) toString()
-
Constructor Details
-
UserId
-
-
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. -
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
The value of the identifier. -
getType
The identification type. -
hasType
-
toString
-
equals
-
hashCode
public int hashCode()
-