Class FleetEntry
java.lang.Object
org.deltava.beans.fleet.LibraryEntry
org.deltava.beans.fleet.FleetEntry
- All Implemented Interfaces:
Serializable, Cloneable, Comparable<LibraryEntry>, Auditable, ViewEntry, Cacheable
A bean to store information about Fleet Library entries.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier 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.abstract StringReturns a string representation of the version.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
-
FleetEntry
-
-
Method Details
-
getMajorVersion
public int getMajorVersion()Returns the major version of the resource. (eg. 3.1.2)- Returns:
- the major version number
- See Also:
-
getMinorVersion
public int getMinorVersion()Returns the minor version of the resource. (eg. 3.1.2)- Returns:
- the minor version number
- See Also:
-
getSubVersion
public int getSubVersion()Returns the sub-minor version of the resource. (eg. 3.1.2)- Returns:
- the sub-minor version number
- See Also:
-
getLastModified
Updates the date this entry was last modified.- Returns:
- the last modification date/time
- See Also:
-
setVersion
public void setVersion(int major, int minor, int subMinor) Updates the version number of this resource.- Parameters:
major- the major version numberminor- the minor version numbersubMinor- the sub-minor version number- See Also:
-
setLastModified
Updates the date this entry was last modified.- Parameters:
dt- the last modified date/time- See Also:
-
getVersion
Returns a string representation of the version.- Returns:
- a version string
-