|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.actions.AbstractAction
org.stanwood.media.actions.podcast.PodCastAction
public class PodCastAction
This action is used create a pod cast of media that it finds. It will add order the most recent media files by the date they were last modified.
This action supports the following parameters:
Parameters can also have variable in them. The following variables cane be used:
Constructor Summary | |
---|---|
PodCastAction()
|
Method Summary | |
---|---|
protected void |
addFileToList(IFeedFile feedFile)
|
void |
finished(MediaDirectory dir)
Used to write the podcast |
void |
init(MediaDirectory dir)
Used to setup the action and parse the podcast if it already exists |
protected void |
parseFeed(IVideo video,
java.io.File mediaFile,
java.lang.Integer part)
|
void |
perform(MediaDirectory dir,
IEpisode episode,
java.io.File mediaFile,
IActionEventHandler actionEventHandler)
Used to perform the action upon a TV episode file. |
void |
perform(MediaDirectory dir,
IFilm film,
java.io.File mediaFile,
java.lang.Integer part,
IActionEventHandler actionEventHandler)
Used to perform the action upon a film file. |
void |
setParameter(java.lang.String key,
java.lang.String value)
Used to set parameters on the action |
protected void |
writeFeed(java.io.File feedFile)
|
Methods inherited from class org.stanwood.media.actions.AbstractAction |
---|
isTestMode, performOnDirectory, resolvePatterns, setTestMode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PodCastAction()
Method Detail |
---|
public void init(MediaDirectory dir) throws ActionException
init
in interface IAction
init
in class AbstractAction
dir
- The media directory
ActionException
- Thrown if their are any problemsprotected void parseFeed(IVideo video, java.io.File mediaFile, java.lang.Integer part) throws ActionException
ActionException
protected void writeFeed(java.io.File feedFile) throws ActionException
ActionException
public void perform(MediaDirectory dir, IEpisode episode, java.io.File mediaFile, IActionEventHandler actionEventHandler) throws ActionException
dir
- File media directory the files belongs toepisode
- The episode informationmediaFile
- The media fileactionEventHandler
- Used to notify the action performer about changes
ActionException
- Thrown if their is a problem with the actionpublic void perform(MediaDirectory dir, IFilm film, java.io.File mediaFile, java.lang.Integer part, IActionEventHandler actionEventHandler) throws ActionException
dir
- File media directory the files belongs tofilm
- The film informationmediaFile
- The media filepart
- The part number of the film, or null if it does not have partsactionEventHandler
- Used to notify the action performer about changes
ActionException
- Thrown if their is a problem with the actionprotected void addFileToList(IFeedFile feedFile)
public void finished(MediaDirectory dir) throws ActionException
finished
in interface IAction
finished
in class AbstractAction
dir
- The media directory
ActionException
- Thrown if their are any problemspublic void setParameter(java.lang.String key, java.lang.String value) throws ActionException
Used to set parameters on the action
key
- The key of the parametervalue
- The value of the parameter
ActionException
- Thrown if their is a problem setting the parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |