com.atlassian.fisheye.spi.admin.data
Class HgRepositoryData
java.lang.Object
com.atlassian.fisheye.spi.admin.data.RepositoryData
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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