public class MediaDirConfig
extends java.lang.Object
Constructor and Description |
---|
MediaDirConfig()
The constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.List<ActionConfig> |
getActions()
Used to get a list of actions to be performed on the media directory
|
java.util.List<java.lang.String> |
getExtensions()
Used to get a list of valid extensions within the media directory
|
java.util.List<java.util.regex.Pattern> |
getIgnorePatterns()
Used to get a list of patterns that will be tested against files
in a media directory to work out if they should be ignored.
|
boolean |
getIgnoreSeen()
Should seen files be ignored in the media directory
|
java.io.File |
getMediaDir()
Used to get the media directory location
|
Mode |
getMode()
Used to get the mode of the media directory
|
java.lang.String |
getName()
Used to get the name of the media directory
|
java.lang.String |
getPattern()
Used to get the media directory rename pattern
|
java.util.List<SourceConfig> |
getSources()
Used to get a list of sources used by the media directory
|
java.util.List<StoreConfig> |
getStores()
Used to get a list of stores used by the media directory
|
java.util.List<java.util.regex.Pattern> |
getStripTokens()
Used to get a list of token patterns that can be stripped from filenames
|
boolean |
isDefaultForMode()
Used to find out if this is a default media directory for the mode been used
|
void |
setActions(java.util.List<ActionConfig> actions)
Used to set a list of actions to be performed on the media directory
|
void |
setDefaultForMode(boolean defaultForMode)
Used to set if this is a default media directory for the mode been used
|
void |
setExtensions(java.util.List<java.lang.String> exts)
Used to set a list of valid extensions within the media directory
|
void |
setIgnorePatterns(java.util.List<java.util.regex.Pattern> patterns)
Used to set a list of patterns that will be tested against files
in a media directory to work out if they should be ignored.
|
void |
setIgnoreSeen(boolean ignoreSeen)
Used to set if seen files be ignored in the media directory
|
void |
setMediaDir(java.io.File mediaDir)
Used to set the media directory location
|
void |
setMode(Mode mode)
Used to set the mode of the media directory
|
void |
setName(java.lang.String name)
Used to set the name of the media directory
|
void |
setPattern(java.lang.String pattern)
Used to set the media directory rename pattern
|
void |
setSources(java.util.List<SourceConfig> sources)
Used to set a list of sources used by the media directory
|
void |
setStores(java.util.List<StoreConfig> stores)
Used to set a list of stores used by the media directory
|
void |
setStripTokens(java.util.List<java.util.regex.Pattern> stripTokens)
Used to set the list of tokens that can be striped from filenames
|
public void setStripTokens(java.util.List<java.util.regex.Pattern> stripTokens)
stripTokens
- The tokens that can be stripped from filenamespublic java.util.List<java.util.regex.Pattern> getStripTokens()
public java.io.File getMediaDir()
public void setMediaDir(java.io.File mediaDir)
mediaDir
- the media directory locationpublic java.lang.String getPattern()
public void setPattern(java.lang.String pattern)
pattern
- the media directory rename patternpublic Mode getMode()
public void setMode(Mode mode)
mode
- the mode of the media directorypublic java.util.List<StoreConfig> getStores()
public void setStores(java.util.List<StoreConfig> stores)
stores
- a list of stores used by the media directorypublic java.util.List<SourceConfig> getSources()
public void setSources(java.util.List<SourceConfig> sources)
sources
- a list of sources used by the media directorypublic java.util.List<ActionConfig> getActions()
public void setActions(java.util.List<ActionConfig> actions)
actions
- a list of actions to be performed on the media directorypublic void setExtensions(java.util.List<java.lang.String> exts)
exts
- A list of valid extensions within the media directorypublic java.util.List<java.lang.String> getExtensions()
public void setIgnorePatterns(java.util.List<java.util.regex.Pattern> patterns)
patterns
- The list of patternspublic java.util.List<java.util.regex.Pattern> getIgnorePatterns()
public boolean getIgnoreSeen()
public void setIgnoreSeen(boolean ignoreSeen)
ignoreSeen
- true if seen files should be ignoredpublic void setName(java.lang.String name)
name
- The name of the media directorypublic java.lang.String getName()
public boolean isDefaultForMode()
public void setDefaultForMode(boolean defaultForMode)
defaultForMode
- True if default