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

java.lang.Object
  extended by com.atlassian.fisheye.spi.admin.data.RepositoryData
      extended by com.atlassian.fisheye.spi.admin.data.HgRepositoryData
All Implemented Interfaces:
HasAuthenticationData

public class HgRepositoryData
extends RepositoryData
implements HasAuthenticationData

FishEye repository data object for Hg repositories.

Only those methods specified to throw NullPointerException do not accept null values to clear the corresponding field.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.fisheye.spi.admin.data.RepositoryData
RepositoryData.Type
 
Field Summary
 
Fields inherited from class com.atlassian.fisheye.spi.admin.data.RepositoryData
NAME_REGEX, TIME_INTERVAL_REGEX
 
Constructor Summary
HgRepositoryData(java.lang.String name, java.lang.String location)
           See the documentation of RepositoryData.setName(String) and setLocation(String) for possible exceptions thrown.
 
Method Summary
 AuthenticationData getAuthentication()
           
 java.lang.Integer getBlockSize()
           
 java.lang.String getCommandTimeout()
           
 java.lang.String getLocation()
           
 java.lang.String getLocationDescription()
           
 java.lang.String getPath()
           
 RepositoryData.Type getType()
           
 void setAuthentication(AuthenticationData authenticationData)
           
 void setBlockSize(java.lang.Integer blockSize)
           
 void setCommandTimeout(java.lang.String commandTimeout)
           
 void setLocation(java.lang.String location)
           
 void setPath(java.lang.String path)
           
 
Methods inherited from class com.atlassian.fisheye.spi.admin.data.RepositoryData
getDescription, getName, isStoreDiff, setDescription, setName, setStoreDiff
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HgRepositoryData

public HgRepositoryData(java.lang.String name,
                        java.lang.String location)

See the documentation of RepositoryData.setName(String) and setLocation(String) for possible exceptions thrown.

Method Detail

getType

public RepositoryData.Type getType()
Specified by:
getType in class RepositoryData

getLocation

public java.lang.String getLocation()

setLocation

public void setLocation(java.lang.String location)
Throws:
java.lang.NullPointerException - if location is null
java.lang.IllegalArgumentException - if location is blank

getAuthentication

public AuthenticationData getAuthentication()
Specified by:
getAuthentication in interface HasAuthenticationData

setAuthentication

public void setAuthentication(AuthenticationData authenticationData)
Specified by:
setAuthentication in interface HasAuthenticationData

getPath

public java.lang.String getPath()

setPath

public void setPath(java.lang.String path)

getBlockSize

public java.lang.Integer getBlockSize()

setBlockSize

public void setBlockSize(java.lang.Integer blockSize)

getLocationDescription

public java.lang.String getLocationDescription()
Specified by:
getLocationDescription in class RepositoryData
Returns:
a human-friendly representation of the location of the repository

getCommandTimeout

public java.lang.String getCommandTimeout()

setCommandTimeout

public void setCommandTimeout(java.lang.String commandTimeout)
Throws:
java.lang.IllegalArgumentException - if a non-null commandTimeout does not match RepositoryData.TIME_INTERVAL_REGEX