Class Video
java.lang.Object
org.deltava.beans.fleet.LibraryEntry
org.deltava.beans.fleet.FileEntry
org.deltava.beans.fleet.Video
- All Implemented Interfaces:
Serializable, Cloneable, Comparable<LibraryEntry>, Auditable, AuthoredBean, ViewEntry, Cacheable
- Direct Known Subclasses:
TrainingVideo
A bean to store video data.
- Since:
- 1.0
- Version:
- 6.0
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
Video
Creates a new video bean.- Parameters:
f- the File- Throws:
NullPointerException- if fName is nullIllegalArgumentException- if fName has an unknown extension
-
-
Method Details
-
getType
-
setType
Updates the video type.- Parameters:
fName- the file name- Throws:
IllegalArgumentException- if fName has an unknown extension
-
isValidFormat
Returns whether this video is in a supported format.- Parameters:
fName- the video file name- Returns:
- TRUE if supported, otherwise FALSE
-