Class FileEntry
java.lang.Object
org.deltava.beans.fleet.LibraryEntry
org.deltava.beans.fleet.FileEntry
- All Implemented Interfaces:
Serializable, Cloneable, Comparable<LibraryEntry>, Auditable, AuthoredBean, ViewEntry, Cacheable
- Direct Known Subclasses:
Video
A bean to store information about File Library entries.
- Since:
- 1.0
- Version:
- 6.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
FileEntry
-
-
Method Details
-
getAuthorID
public int getAuthorID()Returns the ID of the contributor.- Specified by:
getAuthorIDin interfaceAuthoredBean- Returns:
- the contributor's database ID
- See Also:
-
getCategory
-
setAuthorID
public void setAuthorID(int id) Updates the ID of the contributor.- Specified by:
setAuthorIDin interfaceAuthoredBean- Parameters:
id- the contributor's database ID- Throws:
IllegalArgumentException- if id is zero or negative- See Also:
-
setCategory
Updates the file category.- Parameters:
ct- the category- See Also:
-