Class Certificate
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.servinfo.Certificate
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,IDBean
,Cacheable
A bean to store VATSIM registration data.
- Since:
- 2.6
- Version:
- 10.1
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPilotRating
(String rating) Adds a Pilot rating.Returns the user's pilot ratings.Returns the user's registration date.boolean
isActive()
Returns whether the user account is active.void
setActive
(boolean active) Updates whether the user account is active.void
Updates the user's registration date.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
Constructor Details
-
Certificate
public Certificate(int id) Initializes the bean.- Parameters:
id
- the user's VATSIM ID
-
-
Method Details
-
getRegistrationDate
Returns the user's registration date.- Returns:
- the registration date/time
-
getPilotRatings
Returns the user's pilot ratings.- Returns:
- a Collection of rating codes
-
isActive
public boolean isActive()Returns whether the user account is active.- Returns:
- TRUE if active, otherwise FALSE
-
addPilotRating
-
setRegistrationDate
Updates the user's registration date.- Parameters:
dt
- the registration date/time
-
setActive
public void setActive(boolean active) Updates whether the user account is active.- Parameters:
active
- TRUE if active, otherwise FALSE
-