Class TrainingVideo
java.lang.Object
org.deltava.beans.fleet.LibraryEntry
org.deltava.beans.fleet.FileEntry
org.deltava.beans.fleet.Video
org.deltava.beans.academy.TrainingVideo
- All Implemented Interfaces:
Serializable, Cloneable, Comparable<LibraryEntry>, Auditable, AuthoredBean, ViewEntry, Cacheable
A bean to store Flight Academy training video metadata.
- Since:
- 1.0
- Version:
- 6.0
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Video
Video.Type -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new Training Video bean.Expands a generic video into a Training Video. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCertification(String certName) Adds a Flight Academy certification to this Training Video.Returns the Flight Academy certifications associated with this video.voidsetCertifications(Collection<String> certNames) Resets and updates the list of Flight Academy certifications associated with this video.Methods inherited from class Video
getType, isValidFormat, setTypeModifier and TypeMethodDescriptiongetType()Returns the video type.static booleanisValidFormat(String fName) Returns whether this video is in a supported format.voidUpdates the video type.Methods inherited from class FileEntry
getAuthorID, getCategory, setAuthorID, setCategoryModifier and TypeMethodDescriptionintReturns the ID of the contributor.Returns the file category.voidsetAuthorID(int id) Updates the ID of the contributor.voidsetCategory(String ct) Updates the file category.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
-
TrainingVideo
-
TrainingVideo
Expands a generic video into a Training Video.- Parameters:
v- the existing Video bean
-
-
Method Details
-
getCertifications
Returns the Flight Academy certifications associated with this video.- Returns:
- a Collection of Certification names
- See Also:
-
addCertification
Adds a Flight Academy certification to this Training Video.- Parameters:
certName- the Certification name- See Also:
-
setCertifications
Resets and updates the list of Flight Academy certifications associated with this video.- Parameters:
certNames- a Collection of Certification names- See Also:
-