org.stanwood.media.setup
Class MediaDirConfig

java.lang.Object
  extended by org.stanwood.media.setup.MediaDirConfig

public class MediaDirConfig
extends java.lang.Object

Used to store media directory configuration information


Constructor Summary
MediaDirConfig()
           
 
Method Summary
 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
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaDirConfig

public MediaDirConfig()
Method Detail

getMediaDir

public java.io.File getMediaDir()
Used to get the media directory location

Returns:
the media directory location

setMediaDir

public void setMediaDir(java.io.File mediaDir)
Used to set the media directory location

Parameters:
mediaDir - the media directory location

getPattern

public java.lang.String getPattern()
Used to get the media directory rename pattern

Returns:
the media directory rename pattern

setPattern

public void setPattern(java.lang.String pattern)
Used to set the media directory rename pattern

Parameters:
pattern - the media directory rename pattern

getMode

public Mode getMode()
Used to get the mode of the media directory

Returns:
the mode of the media directory

setMode

public void setMode(Mode mode)
Used to set the mode of the media directory

Parameters:
mode - the mode of the media directory

getStores

public java.util.List<StoreConfig> getStores()
Used to get a list of stores used by the media directory

Returns:
a list of stores used by the media directory

setStores

public void setStores(java.util.List<StoreConfig> stores)
Used to set a list of stores used by the media directory

Parameters:
stores - a list of stores used by the media directory

getSources

public java.util.List<SourceConfig> getSources()
Used to get a list of sources used by the media directory

Returns:
a list of sources used by the media directory

setSources

public void setSources(java.util.List<SourceConfig> sources)
Used to set a list of sources used by the media directory

Parameters:
sources - a list of sources used by the media directory

getActions

public java.util.List<ActionConfig> getActions()
Used to get a list of actions to be performed on the media directory

Returns:
a list of actions to be performed on the media directory

setActions

public void setActions(java.util.List<ActionConfig> actions)
Used to set a list of actions to be performed on the media directory

Parameters:
actions - a list of actions to be performed on the media directory

setExtensions

public void setExtensions(java.util.List<java.lang.String> exts)
Used to set a list of valid extensions within the media directory

Parameters:
exts - A list of valid extensions within the media directory

getExtensions

public java.util.List<java.lang.String> getExtensions()
Used to get a list of valid extensions within the media directory

Returns:
a list of valid extensions within the media directory

setIgnorePatterns

public 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.

Parameters:
patterns - The list of patterns

getIgnorePatterns

public 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.

Returns:
The list of patterns

getIgnoreSeen

public boolean getIgnoreSeen()
Should seen files be ignored in the media directory

Returns:
true if seen files should be ignored

setIgnoreSeen

public void setIgnoreSeen(boolean ignoreSeen)
Used to set if seen files be ignored in the media directory

Parameters:
ignoreSeen - true if seen files should be ignored

setName

public void setName(java.lang.String name)
Used to set the name of the media directory

Parameters:
name - The name of the media directory

getName

public java.lang.String getName()
Used to get the name of the media directory

Returns:
The name of the media directory, or null if it does not have one

isDefaultForMode

public boolean isDefaultForMode()
Used to find out if this is a default media directory for the mode been used

Returns:
True if default

setDefaultForMode

public void setDefaultForMode(boolean defaultForMode)
Used to set if this is a default media directory for the mode been used

Parameters:
defaultForMode - True if default