Class UserCard

  • Direct Known Subclasses:
    AdminCard

    public class UserCard
    extends PersonBoundCard
    A user account card.
    Author:
    Thomas Morgner.
    • Constructor Detail

      • UserCard

        public UserCard​(String firstName,
                        String lastName,
                        String cardNr,
                        String login,
                        String password,
                        Date expires)
        Creates a new user account card.
        Parameters:
        firstName - the first name.
        lastName - the last name.
        cardNr - the card number.
        login - the login id.
        password - the password.
        expires - the expiry date.
    • Method Detail

      • getLogin

        public String getLogin()
        Returns the login id.
        Returns:
        The login id.
      • getPassword

        public String getPassword()
        Returns the password.
        Returns:
        The password.
      • getExpires

        public Date getExpires()
        Returns the expiry date.
        Returns:
        The expiry date.
      • getType

        public CardType getType()
        Returns the card type.
        Specified by:
        getType in class Card
        Returns:
        The card type.