com.atlassian.fisheye.spi.admin.data
Class DefaultRepositoryOptions

java.lang.Object
  extended by com.atlassian.fisheye.spi.admin.data.DefaultRepositoryOptions

public class DefaultRepositoryOptions
extends java.lang.Object

Default repository options for FishEye.

Unless otherwise specified, getters and setters on a collection/map will throw a NullPointerException if null is passed in. Also, a reference to the passed in collection/map is stored in this object, thus changes via the getter and changes to the passed in reference are reflected in this object.


Constructor Summary
DefaultRepositoryOptions()
          Create default repository options that disables all options (where possible).
DefaultRepositoryOptions(RepositoryOptions repositoryOptions)
          Create a default repository options object based on the given repository options.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.List<CaseAwarePathGlob> getAllowExcludes()
           
 java.util.List<CaseAwarePath> getAllowIncludes()
           
 java.util.List<CaseAwarePath> getHiddenDirectories()
           
 java.util.List<SimpleLinker> getSimpleLinkers()
           
 TarballSettings getTarballSettings()
           
 int hashCode()
           
 boolean isAllowAnon()
           
 boolean isWatchesEnabled()
           
static RepositoryOptions newRepositoryOptions(DefaultRepositoryOptions defaultOptions)
          Create a new RepositoryOptions object based on the given default repository options.
 void setAllowAnon(boolean allowAnon)
           
 void setAllowExcludes(java.util.List<CaseAwarePathGlob> allowExcludes)
           
 void setAllowIncludes(java.util.List<CaseAwarePath> allowIncludes)
           
 void setHiddenDirectories(java.util.List<CaseAwarePath> hiddenDirectories)
           
 void setSimpleLinkers(java.util.List<SimpleLinker> simpleLinkers)
           
 void setTarballSettings(TarballSettings tarballSettings)
           
 void setWatchesEnabled(boolean enable)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRepositoryOptions

public DefaultRepositoryOptions()
Create default repository options that disables all options (where possible).


DefaultRepositoryOptions

public DefaultRepositoryOptions(RepositoryOptions repositoryOptions)
Create a default repository options object based on the given repository options.

Provides interoperability between RepositoryOptions and DefaultRepositoryOptions objects. Also see newRepositoryOptions(DefaultRepositoryOptions).

Throws:
java.lang.IllegalArgumentException - if any method that may return null in RepositoryOptions, to signify that the repository options should delegate to the repository defaults, does return null for repositoryOptions
Method Detail

newRepositoryOptions

public static RepositoryOptions newRepositoryOptions(DefaultRepositoryOptions defaultOptions)
Create a new RepositoryOptions object based on the given default repository options.

Provides interoperability between RepositoryOptions and DefaultRepositoryOptions objects. Also see DefaultRepositoryOptions(RepositoryOptions).


getSimpleLinkers

public java.util.List<SimpleLinker> getSimpleLinkers()

setSimpleLinkers

public void setSimpleLinkers(java.util.List<SimpleLinker> simpleLinkers)

isWatchesEnabled

public boolean isWatchesEnabled()

setWatchesEnabled

public void setWatchesEnabled(boolean enable)

isAllowAnon

public boolean isAllowAnon()

setAllowAnon

public void setAllowAnon(boolean allowAnon)

getAllowIncludes

public java.util.List<CaseAwarePath> getAllowIncludes()

setAllowIncludes

public void setAllowIncludes(java.util.List<CaseAwarePath> allowIncludes)

getAllowExcludes

public java.util.List<CaseAwarePathGlob> getAllowExcludes()

setAllowExcludes

public void setAllowExcludes(java.util.List<CaseAwarePathGlob> allowExcludes)

getHiddenDirectories

public java.util.List<CaseAwarePath> getHiddenDirectories()

setHiddenDirectories

public void setHiddenDirectories(java.util.List<CaseAwarePath> hiddenDirectories)

getTarballSettings

public TarballSettings getTarballSettings()
Returns:
the tarball settings. Doesn't return null. Changes to the returned object are reflected in this object.

setTarballSettings

public void setTarballSettings(TarballSettings tarballSettings)
Parameters:
tarballSettings - the tarball settings. Changes to the passed in reference are reflected in this object.
Throws:
java.lang.NullPointerException - if tarballSettings is null

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object