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<AdvancedLinker> getAdvancedLinkers()
           
 java.util.List<CaseAwarePathGlob> getAllowExcludes()
           
 java.util.List<CaseAwarePath> getAllowIncludes()
           
 CommitMessageSyntaxSettings getCommitMessageSyntaxSettings()
           
 java.util.List<CaseAwarePath> getHiddenDirectories()
           
 java.lang.Long getMaxIndexableSize()
           
 java.util.Map<java.lang.String,java.lang.String> getProperties()
           
 java.util.Set<java.lang.String> getRequiredGroups()
           
 java.util.List<SimpleLinker> getSimpleLinkers()
           
 TarballSettings getTarballSettings()
           
 int hashCode()
           
 boolean isAllowAnon()
           
 boolean isChangesetDiscussionsEnabled()
           
 boolean isWatchesEnabled()
           
static RepositoryOptions newRepositoryOptions(DefaultRepositoryOptions defaultOptions)
          Create a new RepositoryOptions object based on the given default repository options.
 void setAdvancedLinkers(java.util.List<AdvancedLinker> advancedLinkers)
           
 void setAllowAnon(boolean allowAnon)
           
 void setAllowExcludes(java.util.List<CaseAwarePathGlob> allowExcludes)
           
 void setAllowIncludes(java.util.List<CaseAwarePath> allowIncludes)
           
 void setChangesetDiscussionsEnabled(boolean allow)
           
 void setCommitMessageSyntaxSettings(CommitMessageSyntaxSettings commitMessageSyntaxSettings)
           
 void setHiddenDirectories(java.util.List<CaseAwarePath> hiddenDirectories)
           
 void setMaxIndexableSize(java.lang.Long maxIndexableSize)
           
 void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
           
 void setRequiredGroups(java.util.Set<java.lang.String> groups)
           
 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)

getAdvancedLinkers

public java.util.List<AdvancedLinker> getAdvancedLinkers()

setAdvancedLinkers

public void setAdvancedLinkers(java.util.List<AdvancedLinker> advancedLinkers)

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

setChangesetDiscussionsEnabled

public void setChangesetDiscussionsEnabled(boolean allow)

isChangesetDiscussionsEnabled

public boolean isChangesetDiscussionsEnabled()

getCommitMessageSyntaxSettings

public CommitMessageSyntaxSettings getCommitMessageSyntaxSettings()

setCommitMessageSyntaxSettings

public void setCommitMessageSyntaxSettings(CommitMessageSyntaxSettings commitMessageSyntaxSettings)

setRequiredGroups

public void setRequiredGroups(java.util.Set<java.lang.String> groups)

getRequiredGroups

public java.util.Set<java.lang.String> getRequiredGroups()

setProperties

public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)

getProperties

public java.util.Map<java.lang.String,java.lang.String> getProperties()

getMaxIndexableSize

public java.lang.Long getMaxIndexableSize()

setMaxIndexableSize

public void setMaxIndexableSize(java.lang.Long maxIndexableSize)

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