Class Manual
java.lang.Object
org.deltava.beans.fleet.LibraryEntry
org.deltava.beans.fleet.FleetEntry
org.deltava.beans.fleet.Manual
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<LibraryEntry>
,Auditable
,ViewEntry
,Cacheable
A bean to store information about Manuals.
- Since:
- 1.0
- Version:
- 8.4
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Returns all Certifications linked to this Manual.boolean
Returns whether this Manual should be shown to users not enrolled in the Certifications.boolean
Returns whether the Manual should be shown on the Registration page.getType()
Returns the document type.Returns this manual's version number.void
setIgnoreCertifcations
(boolean ignoreCerts) Marks this Manual as visible to users not enrolled in the specified Courses.void
setShowOnRegister
(boolean show) Marks this Manual as visible on the Registration page.final void
setVersion
(int major) Sets the manual version number.final 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, getAuditID, getDescription, getDownloadCount, getFileName, getFullName, getName, getOwner, getRowClassName, getSecurity, getSize, hashCode, setDescription, setDownloadCount, setName, setOwner, setSecurity, setSize, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.Auditable
getAuditType, isCrossApp
-
Constructor Details
-
Manual
-
-
Method Details
-
getVersion
Returns this manual's version number. Manuals only have a major version number.- Specified by:
getVersion
in classFleetEntry
- Returns:
- a version string
- See Also:
-
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
-
getIgnoreCertifications
public boolean getIgnoreCertifications()Returns whether this Manual should be shown to users not enrolled in the Certifications.- Returns:
- TRUE if visible to all, otherwise FALSE
- See Also:
-
getCertifications
Returns all Certifications linked to this Manual.- Returns:
- a Collection of Certification names
- See Also:
-
getType
-
addCertification
Adds a Flight Academy Certification to this Manual.- Parameters:
cert
- the Certification name- See Also:
-
addCertifications
Clears the list of Flight Academy Certifications and replaces it with a new list.- Parameters:
certs
- a Collection of Certification names- See Also:
-
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:
-
setIgnoreCertifcations
public void setIgnoreCertifcations(boolean ignoreCerts) Marks this Manual as visible to users not enrolled in the specified Courses.- Parameters:
ignoreCerts
- TRUE if visible to all users, otherwise FALSE- See Also:
-
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 classFleetEntry
- Parameters:
major
- the major version numberminor
- the minor version numbersubVersion
- the sub-minor version number- See Also:
-