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

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

public class TarballSettings
extends java.lang.Object


Nested Class Summary
static class TarballSettings.Exclude
           
 
Constructor Summary
TarballSettings()
          Create a tarball settings object with no excludes and that allows an unlimited amount of files and is disabled.
TarballSettings(java.util.List<TarballSettings.Exclude> excludes)
          Create a tarball settings object with the specified excludes and that allows an unlimited amount of files and is disabled.
TarballSettings(java.util.List<TarballSettings.Exclude> excludes, long maxFiles, boolean enabled)
          Create a tarball settings object with the specified excludes, number of max files, and enabled setting.
TarballSettings(TarballSettings tarballSettings)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.List<TarballSettings.Exclude> getExcludes()
           
 long getMaxFiles()
           
 int hashCode()
           
 boolean isEnabled()
           
 void setEnabled(boolean enabled)
           
 void setExcludes(java.util.List<TarballSettings.Exclude> excludes)
           
 void setMaxFiles(long maxFiles)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TarballSettings

public TarballSettings()
Create a tarball settings object with no excludes and that allows an unlimited amount of files and is disabled.


TarballSettings

public TarballSettings(java.util.List<TarballSettings.Exclude> excludes)
Create a tarball settings object with the specified excludes and that allows an unlimited amount of files and is disabled.

See setExcludes(java.util.List) for possible exceptions.


TarballSettings

public TarballSettings(TarballSettings tarballSettings)

TarballSettings

public TarballSettings(java.util.List<TarballSettings.Exclude> excludes,
                       long maxFiles,
                       boolean enabled)
Create a tarball settings object with the specified excludes, number of max files, and enabled setting.

See setExcludes(java.util.List), setMaxFiles(long), and setEnabled(boolean) for the treatment of parameters and exceptions.

Method Detail

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

getExcludes

public java.util.List<TarballSettings.Exclude> getExcludes()
Returns:
the excludes. Changes to the returned list are reflected in this object.

setExcludes

public void setExcludes(java.util.List<TarballSettings.Exclude> excludes)
Parameters:
excludes - changes to the passed in reference are reflected in this object.
Throws:
java.lang.NullPointerException - if excludes is null

getMaxFiles

public long getMaxFiles()

setMaxFiles

public void setMaxFiles(long maxFiles)
Parameters:
maxFiles - maximum number of files to allow in the tarball; if 0, then allow an unlimited amount of files
Throws:
java.lang.IllegalArgumentException - if maxFiles is negative

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