org.mmbase.module.builders
Class VideoParts

java.lang.Object
  |
  +--org.mmbase.module.core.MMTable
        |
        +--org.mmbase.module.core.MMObjectBuilder
              |
              +--org.mmbase.module.builders.MediaParts
                    |
                    +--org.mmbase.module.builders.VideoParts

public class VideoParts
extends MediaParts

Version:
$Id: VideoParts.java,v 1.15 2001/04/10 12:20:39 michiel Exp $
Author:
Daniel Ockeloen

Fields inherited from class org.mmbase.module.builders.MediaParts
urlCache
 
Fields inherited from class org.mmbase.module.core.MMObjectBuilder
broadcastChanges, className, database, debug, description, descriptions, fields, NODE_MAX_SIZE, nodeCache, obj2type, OBJ2TYPE_MAX_SIZE, oType, replaceCache, searchAge, sortedDBLayout, TEMPNODE_DEFAULT_SIZE, TemporaryNodes, virtual
 
Fields inherited from class org.mmbase.module.core.MMTable
mmb, tableName
 
Constructor Summary
VideoParts()
           
 
Method Summary
 void addRawVideo(RawVideos bul, int id, int status, int format, int speed, int channels)
           
static long calcTime(java.lang.String time)
           
 java.lang.String doGetUrl(scanpage sp, int number, int userSpeed, int userChannels)
          Calls the get url method for videoparts.
 java.lang.String getGUIIndicator(java.lang.String field, MMObjectNode node)
          What should a GUI display for this node/field combo.
 int getMinChannels()
          Gets minimal channel setting from videoutil
 int getMinSpeed()
          Gets minimal speed setting from videoutil
 java.lang.String getVideopartUrl(MMBase mmbase, scanpage sp, int number, int speed, int channels)
          Gets the url for a videopart using the mediautil classes.
 int insertDone(EditState ed, MMObjectNode node)
          Once a insert is done in the editor this method is called.
static void main(java.lang.String[] args)
           
 void movAvailable(java.lang.String id)
           
 void pcmAvailable(java.lang.String id)
           
 int preEdit(EditState ed, MMObjectNode node)
          pre commit from the editor
 void setDefaults(MMObjectNode node)
          setDefaults for a node
 
Methods inherited from class org.mmbase.module.builders.MediaParts
getChannelsParam, getNumberParam, getSpeedParam, getUrl, init, nodeLocalChanged, nodeRemoteChanged, removeFromUrlCache, removeRaws, replace
 
Methods inherited from class org.mmbase.module.core.MMObjectBuilder
addField, addLocalObserver, addRemoteObserver, buildSet, checkAddTmpField, commit, convertMMNode2SQL, count, create, createAlias, created, debug, deleteNodeCache, executeFunction, fieldLocalChanged, getAge, getAliasedNode, getCacheNumbers, getCacheSize, getCacheSize, getClassName, getDBByte, getDBKey, getDBState, getDBText, getDBType, getDefaultTeaser, getDefaultUrl, getDescription, getDescriptions, getDutchSName, getEditFields, getField, getFieldNames, getFields, getFullTableName, getFunctionParameters, getGUIIndicator, getHardNode, getHTML, getInitParameter, getInitParameters, getList, getMachineName, getMaintainer, getNewNode, getNewTmpNode, getNextField, getNode, getNode, getNodeType, getNumberFromName, getPluralName, getPluralName, getPluralNames, getRelations_main, getSearchAge, getShort, getShortedByte, getShortedText, getSingularName, getSingularName, getSingularNames, getSmartPath, getSortedFields, getSortedListFields, getTableName, getTmpNode, getURLEncode, getValue, getVersion, getWAP, getXMLPath, getXMLSetup, hostname_function, init_obj2type, insert, insert, isNodeCached, isVirtual, isXMLConfig, preCommit, process, putTmpNode, readSearchResults, removeField, removeNode, removeRelations, removeTmpNode, search, search, search, searchIn, searchIn, searchIn, searchNumbers, searchVector, searchVector, searchVector, searchVector, searchVectorIn, searchVectorIn, searchVectorIn, searchVectorIn, searchWithWhere, sendFieldChangeSignal, setClassName, setDBLayout_xml, setDBLayout, setDebug, setDescription, setDescriptions, setDutchSName, setInitParameter, setMaintainer, setMMBase, setPluralNames, setSearchAge, setSingularNames, setTableName, setValue, setVersion, setXmlConfig, setXMLPath, setXMLValues, signalNewObject, testValidData, toXML, waitUntilNodeChanged, wrap
 
Methods inherited from class org.mmbase.module.core.MMTable
size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VideoParts

public VideoParts()
Method Detail

insertDone

public int insertDone(EditState ed,
                      MMObjectNode node)
Description copied from class: MMObjectBuilder
Once a insert is done in the editor this method is called.
Overrides:
insertDone in class MMObjectBuilder
Following copied from class: org.mmbase.module.core.MMObjectBuilder
Parameters:
ed - Contains the current edit state (editor info). The main function of this object is to pass 'settings' and 'parameters' - value pairs that have been the during the edit process.
node - The node thatw as inserted
Returns:
An int value. It's meaning is undefined. The basic routine returns -1.

preEdit

public int preEdit(EditState ed,
                   MMObjectNode node)
pre commit from the editor
Overrides:
preEdit in class MMObjectBuilder
Following copied from class: org.mmbase.module.core.MMObjectBuilder
Parameters:
ed - Contains the current edit state (editor info). The main function of this object is to pass 'settings' and 'parameters' - value pairs that have been the during the edit process.
node - The node that was inserted
Returns:
An int value. It's meaning is undefined. The basic routine returns -1.

calcTime

public static long calcTime(java.lang.String time)

getGUIIndicator

public java.lang.String getGUIIndicator(java.lang.String field,
                                        MMObjectNode node)
Description copied from class: MMObjectBuilder
What should a GUI display for this node/field combo. Default is null (indicating to display the field as is) Override this to display your own choice.
Overrides:
getGUIIndicator in class MMObjectBuilder
Following copied from class: org.mmbase.module.core.MMObjectBuilder
Parameters:
node - The node to display
field - the name field of the field to display
Returns:
the display of the node's field as a String, null if not specified

movAvailable

public void movAvailable(java.lang.String id)

addRawVideo

public void addRawVideo(RawVideos bul,
                        int id,
                        int status,
                        int format,
                        int speed,
                        int channels)

pcmAvailable

public void pcmAvailable(java.lang.String id)

setDefaults

public void setDefaults(MMObjectNode node)
setDefaults for a node
Overrides:
setDefaults in class MMObjectBuilder
Following copied from class: org.mmbase.module.core.MMObjectBuilder
Parameters:
node - The node to set the defaults of.

doGetUrl

public java.lang.String doGetUrl(scanpage sp,
                                 int number,
                                 int userSpeed,
                                 int userChannels)
Calls the get url method for videoparts.
Overrides:
doGetUrl in class MediaParts
Parameters:
sp - the scanpage
number - the videopart object number
speed - the user speed value
channels - the user channels value
Returns:
a String with url to a videopart.

getVideopartUrl

public java.lang.String getVideopartUrl(MMBase mmbase,
                                        scanpage sp,
                                        int number,
                                        int speed,
                                        int channels)
Gets the url for a videopart using the mediautil classes.
Parameters:
mmbase - mmbase reference
sp - the scanpage
number - the videopart object number
speed - the user speed value
channels - the user channels value
Returns:
a String with url to a videopart.

getMinSpeed

public int getMinSpeed()
Gets minimal speed setting from videoutil
Overrides:
getMinSpeed in class MediaParts
Returns:
minimal speed setting

getMinChannels

public int getMinChannels()
Gets minimal channel setting from videoutil
Overrides:
getMinChannels in class MediaParts
Returns:
minimal channel setting

main

public static void main(java.lang.String[] args)


MMBase 2001