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 TypeMethodDescriptionvoidaddPilotRating(String rating) Adds a Pilot rating.Returns the user's pilot ratings.Returns the user's registration date.booleanisActive()Returns whether the user account is active.voidsetActive(boolean active) Updates whether the user account is active.voidUpdates the user's registration date.Methods inherited from class DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intbooleangetHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.inthashCode()voidsetID(int id) Update the database row ID of this bean.static voidvalidateID(int oldID, int newID) Validates a database ID.static voidvalidateID(int oldID, int newID, boolean allowZero) Validates a database ID.
-
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
-