|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.actions.ActionPerformer
public class ActionPerformer
This class is used to perform a list of actions upon files in a media directory
Constructor Summary | |
---|---|
ActionPerformer(Controller controller,
java.util.List<IAction> actions,
MediaDirectory dir,
java.util.List<java.lang.String> exts)
Constructor used to create a instance of the class |
Method Summary | |
---|---|
protected java.util.List<java.io.File> |
findMediaFiles(IProgressMonitor monitor)
|
void |
performActions(IProgressMonitor monitor)
Used to perform the actions |
void |
performActions(java.util.List<java.io.File> files,
java.util.Set<java.io.File> dirs,
IProgressMonitor parentMonitor)
Used to perform the actions |
void |
sendEventDeletedFile(java.io.File file)
Listen for the delete file event and remove it from the stores |
void |
sendEventNewFile(java.io.File file)
Listen for the new file event and perform the actions on it |
void |
sendEventRenamedFile(java.io.File oldFile,
java.io.File newFile)
Listen for the rename file event and and update stores |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionPerformer(Controller controller, java.util.List<IAction> actions, MediaDirectory dir, java.util.List<java.lang.String> exts) throws ConfigException
controller
- The controlleractions
- List of actions to performdir
- The media directoryexts
- The extensions to search for
ConfigException
- Thrown if their is a problem reading the configMethod Detail |
---|
public void performActions(IProgressMonitor monitor) throws ActionException
monitor
- Progress monitor
ActionException
- Thrown if their are any errors with the actionspublic void performActions(java.util.List<java.io.File> files, java.util.Set<java.io.File> dirs, IProgressMonitor parentMonitor) throws ActionException
files
- The files to perform the actions ondirs
- The directories with the media directoryparentMonitor
- Progress monitor parent
ActionException
- Thrown if their are any errors with the actionsprotected java.util.List<java.io.File> findMediaFiles(IProgressMonitor monitor) throws ActionException
ActionException
public void sendEventNewFile(java.io.File file) throws ActionException
sendEventNewFile
in interface IActionEventHandler
file
- the File
ActionException
- Thrown if their are any problemspublic void sendEventDeletedFile(java.io.File file)
sendEventDeletedFile
in interface IActionEventHandler
file
- the Filepublic void sendEventRenamedFile(java.io.File oldFile, java.io.File newFile) throws ActionException
sendEventRenamedFile
in interface IActionEventHandler
oldFile
- The old filenamenewFile
- The new filename
ActionException
- Thrown if their are any problems
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |