Class Installer
java.lang.Object
org.deltava.beans.fleet.LibraryEntry
org.deltava.beans.fleet.FleetEntry
org.deltava.beans.fleet.Installer
- All Implemented Interfaces:
Serializable, Cloneable, Comparable<LibraryEntry>, Auditable, ComboAlias, ViewEntry, Cacheable
A bean to store information about Fleet Library installers.
- Since:
- 1.0
- Version:
- 6.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddApp(AirlineInformation info) Adds this Installer to an Airline's Fleet Library.voidaddFSVersion(Simulator sim) Adds a Simulator version compatible with this Fleet Installer.getApps()Returns the Airlines whose Fleet Libraries will include this Installer.getCode()Returns this installer's equipment code.Returns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.Returns the Simulator versions compatible with this Installer.getImage()Returns this installer's label image.Returns a string representation of the version (MAJOR.MINOR.SUB).Returns a string representation of the version (MAJORMINORSUB).voidUpdates this installer's equipment type code (eg.voidUpdates this installer's label image name.Methods inherited from class FleetEntry
getLastModified, getMajorVersion, getMinorVersion, getSubVersion, setLastModified, setVersionModifier 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.voidsetVersion(int major, int minor, int subMinor) Updates the version number of this resource.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
-
Installer
Creates a new Fleet Installer entry for a given file.- Parameters:
f- the File
-
-
Method Details
-
getApps
Returns the Airlines whose Fleet Libraries will include this Installer.- Returns:
- a Collection of AirlineInformation beans
- See Also:
-
getCode
Returns this installer's equipment code.- Returns:
- the equipment code
- See Also:
-
getImage
Returns this installer's label image.- Returns:
- the image resource name
- See Also:
-
getVersion
Returns a string representation of the version (MAJOR.MINOR.SUB).- Specified by:
getVersionin classFleetEntry- Returns:
- a version string
-
getVersionCode
Returns a string representation of the version (MAJORMINORSUB).- Returns:
- a version code
-
addApp
Adds this Installer to an Airline's Fleet Library.- Parameters:
info- an AirlineInformation bean- See Also:
-
addFSVersion
Adds a Simulator version compatible with this Fleet Installer.- Parameters:
sim- a Simulator- See Also:
-
getFSVersions
Returns the Simulator versions compatible with this Installer.- Returns:
- a Collection of Simulators
-
setCode
Updates this installer's equipment type code (eg. DC8)- Parameters:
code- the equipment type code (will be converted to uppercase)- See Also:
-
setImage
Updates this installer's label image name.- Parameters:
imgName- the image resource name- See Also:
-
getComboName
Description copied from interface:ComboAliasReturns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboNamein interfaceComboAlias- Returns:
- The visible name for this entry
-
getComboAlias
Description copied from interface:ComboAliasReturns the alias to use in the HTML <OPTION> element.- Specified by:
getComboAliasin interfaceComboAlias- Returns:
- The alias for this entry
-