org.deltava.beans.fleet
Class Manual

java.lang.Object
  extended by org.deltava.beans.fleet.LibraryEntry
      extended by org.deltava.beans.fleet.FleetEntry
          extended by org.deltava.beans.fleet.Manual
All Implemented Interfaces:
Serializable, Comparable<LibraryEntry>, ViewEntry, Cacheable

public class Manual
extends FleetEntry

A bean to store information about Manuals.

Since:
1.0
Version:
1.0
Author:
Luke
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.deltava.beans.fleet.LibraryEntry
AUTH_ONLY, PUBLIC, SECURITY_LEVELS, STAFF_ONLY
 
Constructor Summary
Manual(String fName)
          Creates a new Manual bean.
 
Method Summary
 void addCertification(String cert)
          Adds a Flight Academy Certification to this Manual.
 void addCertifications(Collection<String> certs)
          Clears the list of Flight Academy Certifications and replaces it with a new list.
 Collection<String> getCertifications()
          Returns all Certifications linked to this Manual.
 boolean getShowOnRegister()
          Returns whether the Manual should be shown on the Registration page.
 String getVersion()
          Returns this manual's version number.
 void setShowOnRegister(boolean show)
          Marks this Manual as visible on the Registration page.
 void setVersion(int major)
          Sets the manual version number.
 void setVersion(int major, int minor, int subVersion)
          Updates the version number of this resource.
 
Methods inherited from class org.deltava.beans.fleet.FleetEntry
getLastModified, getMajorVersion, getMinorVersion, getSubVersion, setLastModified
 
Methods inherited from class org.deltava.beans.fleet.LibraryEntry
cacheKey, compareTo, file, getDescription, getDownloadCount, getFileName, getFullName, getName, getRowClassName, getSecurity, getSize, hashCode, setDescription, setDownloadCount, setName, setSecurity, setSize, validateParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Manual

public Manual(String fName)
Creates a new Manual bean.

Parameters:
fName - the file name of the manual
Method Detail

getVersion

public String getVersion()
Returns this manual's version number. Manuals only have a major version number.

Specified by:
getVersion in class FleetEntry
Returns:
a version string
See Also:
FleetEntry.getVersion()

getShowOnRegister

public boolean getShowOnRegister()
Returns whether the Manual should be shown on the Registration page.

Returns:
TRUE if the Manual should be shown, otherwise FALSE

getCertifications

public Collection<String> getCertifications()
Returns all Certifications linked to this Manual.

Returns:
a Collection of Certification names
See Also:
addCertification(String), addCertifications(Collection)

addCertification

public void addCertification(String cert)
Adds a Flight Academy Certification to this Manual.

Parameters:
cert - the Certification name
See Also:
addCertifications(Collection), getCertifications()

addCertifications

public void addCertifications(Collection<String> certs)
Clears the list of Flight Academy Certifications and replaces it with a new list.

Parameters:
certs - a Collection of Certification names
See Also:
addCertification(String), getCertifications()

setShowOnRegister

public void setShowOnRegister(boolean show)
Marks this Manual as visible on the Registration page.

Parameters:
show - TRUE if the manual should be displayed, otherwise FALSE
See Also:
getShowOnRegister()

setVersion

public final void setVersion(int major)
Sets the manual version number.

Parameters:
major - the version number

setVersion

public final void setVersion(int major,
                             int minor,
                             int subVersion)
Description copied from class: FleetEntry
Updates the version number of this resource.

Overrides:
setVersion in class FleetEntry
Parameters:
major - the major version number
minor - the minor version number
subVersion - the sub-minor version number
See Also:
FleetEntry.getMajorVersion(), FleetEntry.getMinorVersion(), FleetEntry.getSubVersion()


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.