org.deltava.beans.academy
Class TrainingVideo

java.lang.Object
  extended by org.deltava.beans.fleet.LibraryEntry
      extended by org.deltava.beans.fleet.FileEntry
          extended by org.deltava.beans.fleet.Video
              extended by org.deltava.beans.academy.TrainingVideo
All Implemented Interfaces:
Serializable, Comparable<LibraryEntry>, AuthoredBean, ViewEntry, Cacheable

public class TrainingVideo
extends Video

A bean to store Flight Academy training video metadata.

Since:
1.0
Version:
2.2
Author:
Luke
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.deltava.beans.fleet.Video
AVI, DIVX, MP3, TYPES, WMV
 
Fields inherited from class org.deltava.beans.fleet.LibraryEntry
AUTH_ONLY, PUBLIC, SECURITY_LEVELS, STAFF_ONLY
 
Constructor Summary
TrainingVideo(String fName)
          Creates a new Training Video bean.
TrainingVideo(Video v)
          Expands a generic video into a Training Video.
 
Method Summary
 void addCertification(String certName)
          Adds a Flight Academy certification to this Training Video.
 Collection<String> getCertifications()
          Returns the Flight Academy certifications associated with this video.
 void setCertifications(Collection<String> certNames)
          Resets and updates the list of Flight Academy certifications associated with this video.
 
Methods inherited from class org.deltava.beans.fleet.Video
getIconName, getType, getTypeName, setType
 
Methods inherited from class org.deltava.beans.fleet.FileEntry
getAuthorID, getCategory, setAuthorID, setCategory
 
Methods inherited from class org.deltava.beans.fleet.LibraryEntry
cacheKey, compareTo, file, getDescription, getDownloadCount, getFileName, getFullName, getName, getRowClassName, getSecurity, getSize, hashCode, setDescription, setDownloadCount, setName, setSecurity, setSize, validateParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrainingVideo

public TrainingVideo(String fName)
Creates a new Training Video bean.

Parameters:
fName - the file name

TrainingVideo

public TrainingVideo(Video v)
Expands a generic video into a Training Video.

Parameters:
v - the existing Video bean
Method Detail

getCertifications

public Collection<String> getCertifications()
Returns the Flight Academy certifications associated with this video.

Returns:
a Collection of Certification names
See Also:
addCertification(String), setCertifications(Collection)

addCertification

public void addCertification(String certName)
Adds a Flight Academy certification to this Training Video.

Parameters:
certName - the Certification name
See Also:
setCertifications(Collection), getCertifications()

setCertifications

public void setCertifications(Collection<String> certNames)
Resets and updates the list of Flight Academy certifications associated with this video.

Parameters:
certNames - a Collection of Certification names
See Also:
addCertification(String), getCertifications()


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.