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 TypeMethodDescriptionvoidaddCertification(String cert) Adds a Flight Academy Certification to this Manual.voidaddCertifications(Collection<String> certs) Clears the list of Flight Academy Certifications and replaces it with a new list.Returns all Certifications linked to this Manual.booleanReturns whether this Manual should be shown to users not enrolled in the Certifications.booleanReturns whether the Manual should be shown on the Registration page.getType()Returns the document type.Returns this manual's version number.voidsetIgnoreCertifcations(boolean ignoreCerts) Marks this Manual as visible to users not enrolled in the specified Courses.voidsetShowOnRegister(boolean show) Marks this Manual as visible on the Registration page.final voidsetVersion(int major) Sets the manual version number.final voidsetVersion(int major, int minor, int subVersion) Updates the version number of this resource.Methods inherited from class FleetEntry
getLastModified, getMajorVersion, getMinorVersion, getSubVersion, setLastModifiedModifier and TypeMethodDescriptionUpdates the date this entry was last modified.intReturns the major version of the resource.intReturns the minor version of the resource.intReturns the sub-minor version of the resource.voidUpdates the date this entry was last modified.Methods inherited from class LibraryEntry
cacheKey, compareTo, file, getAuditID, getDescription, getDownloadCount, getFileName, getFullName, getName, getOwner, getRowClassName, getSecurity, getSize, hashCode, setDescription, setDownloadCount, setName, setOwner, setSecurity, setSize, toStringModifier and TypeMethodDescriptionfinal ObjectcacheKey()Returns the cache key for this object.intfile()Returns the underlying filesystem entry.Returns the object ID for this auditable object.Returns a description of this resource.intReturns the number of times this resource has been downloaded.Returns the filename of the resource, without paths.Gets the full pathname of the resource on the local filesystem.final StringgetName()Returns the name of the resource.getOwner()Returns the owning Virtual Airline.Returns the CSS class for this object if rendered in a view table.Returns this resource's security level.longgetSize()Returns the size of the resource.inthashCode()voidsetDescription(String desc) Updates the description of this resource.voidsetDownloadCount(int count) Updates the number of times this resource has been downloaded.voidUpdates the name of this resource.voidUpdates the owning Virtual Airline.voidsetSecurity(Security level) Updates this resource's security level.voidsetSize(long size) Updates the size of this resource.toString()Methods inherited from class Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface Auditable
getAuditType, isCrossAppModifier and TypeMethodDescriptiondefault StringReturns the audit type for this auditable object.default booleanReturns whether this object is within multiple web applications.
-
Constructor Details
-
Manual
-
-
Method Details
-
getVersion
Returns this manual's version number. Manuals only have a major version number.- Specified by:
getVersionin 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:FleetEntryUpdates the version number of this resource.- Overrides:
setVersionin classFleetEntry- Parameters:
major- the major version numberminor- the minor version numbersubVersion- the sub-minor version number- See Also:
-