(Quick Reference)

Movie domain object.

The com.cantina.lab.Movie object is the primary domain object used by the gvps plugin and maintains information concerning movie files.

Fields.

The objects stored in the database do not use versioning and their primary database key is the video_key column.

Other fields of the object are:

Field NameDescription
urlrelative URI for serving this movie
titletitle of the movie
fileNamename of the file on disk
descriptionbrief description of the movie
sizesize of movie in bytes
createDatedate the movie was created
createdByauthor of the movie
pathFlvpath to converted version of the file
pathThumbpath to the thumbnail file in jpg format
pathMasterpath to the file in original format
contentTypecontent type of the movie, can be flv or mp4
contentTypeMasteroriginal content type of the movie
keya unique identifier for the converted file when stored on disk
statuscurrent status of the file, can be 'blank', 'removed', 'new', 'inprogress', 'converted', or 'failed'

The theFile field is presently unused but is intended for possible future storage of the video file contents in the database.

Operation.

When a Movie object is created, it's status is initially set to 'blank'.

When the newFile method is called on a Movie object the pathMaster and size fields are populated and the status field is set to 'new'.