public class ImportMediaCommand extends AbstractServerCommand<ImportMediaResult>
AbstractServerCommand.param
Constructor and Description |
---|
ImportMediaCommand(Controller controller)
The constructor
|
Modifier and Type | Method and Description |
---|---|
ImportMediaResult |
execute(ICommandLogger logger,
IProgressMonitor monitor)
Used to execute the command
|
void |
setDeleteNonMedia(boolean value)
Used to set if non media files should be deleted.
|
void |
setExecuteActions(boolean executeActions)
If set to true, then actions of the media directory are executed after importing the media
|
protected java.util.Map<java.io.File,java.util.List<java.io.File>> |
setupStoresAndActions() |
void |
setUseDefaults(boolean value)
If set to true, attempts are made to import the media files into a
default media directory if the actual media directory can't be found
|
getController
public ImportMediaCommand(Controller controller)
controller
- The controllerpublic ImportMediaResult execute(ICommandLogger logger, IProgressMonitor monitor)
execute
in class AbstractServerCommand<ImportMediaResult>
logger
- The command loggermonitor
- The progress monitorprotected java.util.Map<java.io.File,java.util.List<java.io.File>> setupStoresAndActions() throws ConfigException, StoreException
ConfigException
StoreException
public void setDeleteNonMedia(boolean value)
value
- True to delete non media filespublic void setUseDefaults(boolean value)
value
- True or false to control if using defaultspublic void setExecuteActions(boolean executeActions)
executeActions
- true cause the actions to be executed on media directories afterward
media import