Class UserId

java.lang.Object
net.commuty.parking.model.UserId

public class UserId extends 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:

  • Constructor Details

  • Method Details

    • fromEmail

      public static UserId fromEmail(String email)
      Creates a user id based on an email.
    • fromLicensePlate

      public static UserId fromLicensePlate(String licensePlate)
      Creates a user id based on a license plate.
    • fromIdentificationNumber

      public static UserId fromIdentificationNumber(String identificationNumber)
      Creates a user id based on an identification number
    • fromQrCode

      public static UserId fromQrCode(String qrCode)
      Creates a user id based on a generated qr code.
    • fromBadgeNumber

      public static UserId fromBadgeNumber(String badgeNumber)
      Creates a user id based on a badge number.
    • fromCardholderId

      public static UserId fromCardholderId(String cardholderId)
      Creates a user id based on a cardholder identifier.
    • fromPinCode

      public static UserId fromPinCode(String pinCode)
      Creates a user id based on a pin code.
    • fromWim64EncodedLicensePlate

      public static UserId fromWim64EncodedLicensePlate(String win64EncodedLicensePlate)

      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 String getId()
      The value of the identifier.
    • getType

      public UserIdType getType()
      The identification type.
    • hasType

      public boolean hasType(UserIdType type)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object