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

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

public class P4RepositoryData
extends RepositoryData

FishEye repository data object for Perforce 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
P4RepositoryData(java.lang.String name, java.lang.String server, java.lang.String path)
           See the documentation of RepositoryData.setName(String), setServer(String), and setPath(String) for the possible exceptions thrown.
 
Method Summary
 java.lang.Integer getBlockSize()
           
 java.nio.charset.Charset getCharset()
           
 java.lang.String getCommandTimeout()
           
 java.lang.Float getConnectionsPerSecond()
           
 java.lang.Integer getFileLogLimit()
           
 java.lang.String getPassword()
           
 java.lang.String getPath()
           
 java.lang.Integer getPort()
           
 java.lang.String getServer()
           
 java.lang.Long getStartRevision()
           
 RepositoryData.Type getType()
           
 java.lang.String getUsername()
           
 java.lang.Boolean isCaseSensitive()
           
 java.lang.Boolean isDisableMutli()
           
 java.lang.Boolean isInitialImport()
           
 java.lang.Boolean isSkipLabels()
           
 java.lang.Boolean isUnicode()
           
 void setBlockSize(java.lang.Integer blockSize)
           
 void setCaseSensitive(java.lang.Boolean caseSensitive)
           
 void setCharset(java.nio.charset.Charset charset)
           
 void setCommandTimeout(java.lang.String commandTimeout)
           
 void setConnectionsPerSecond(java.lang.Float connectionsPerSecond)
           
 void setDisableMutli(java.lang.Boolean disableMutli)
           
 void setFileLogLimit(java.lang.Integer fileLogLimit)
           
 void setInitialImport(java.lang.Boolean initialImport)
           
 void setPassword(java.lang.String password)
           
 void setPath(java.lang.String path)
           
 void setPort(java.lang.Integer port)
           
 void setServer(java.lang.String server)
           
 void setSkipLabels(java.lang.Boolean skipLabels)
           
 void setStartRevision(java.lang.Long startRevision)
           
 void setUnicode(java.lang.Boolean unicode)
           
 void setUsername(java.lang.String username)
           
 
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

P4RepositoryData

public P4RepositoryData(java.lang.String name,
                        java.lang.String server,
                        java.lang.String path)

See the documentation of RepositoryData.setName(String), setServer(String), and setPath(String) for the possible exceptions thrown.

Method Detail

getType

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

getServer

public java.lang.String getServer()

setServer

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

getPath

public java.lang.String getPath()

setPath

public void setPath(java.lang.String path)
Throws:
java.lang.NullPointerException - if path is null
java.lang.IllegalArgumentException - if path is empty

getUsername

public java.lang.String getUsername()

setUsername

public void setUsername(java.lang.String username)

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)

getBlockSize

public java.lang.Integer getBlockSize()

setBlockSize

public void setBlockSize(java.lang.Integer blockSize)
Throws:
java.lang.IllegalArgumentException - if a non-null blockSize is not positive

isCaseSensitive

public java.lang.Boolean isCaseSensitive()

setCaseSensitive

public void setCaseSensitive(java.lang.Boolean caseSensitive)

isDisableMutli

public java.lang.Boolean isDisableMutli()

setDisableMutli

public void setDisableMutli(java.lang.Boolean disableMutli)

getCharset

public java.nio.charset.Charset getCharset()

setCharset

public void setCharset(java.nio.charset.Charset charset)

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

getConnectionsPerSecond

public java.lang.Float getConnectionsPerSecond()

setConnectionsPerSecond

public void setConnectionsPerSecond(java.lang.Float connectionsPerSecond)
Throws:
java.lang.IllegalArgumentException - if a non-null connectionsPerSecond is not positive

getFileLogLimit

public java.lang.Integer getFileLogLimit()

setFileLogLimit

public void setFileLogLimit(java.lang.Integer fileLogLimit)
Throws:
java.lang.IllegalArgumentException - if a non-null fileLogLimit is not positive

isInitialImport

public java.lang.Boolean isInitialImport()

setInitialImport

public void setInitialImport(java.lang.Boolean initialImport)

getPort

public java.lang.Integer getPort()

setPort

public void setPort(java.lang.Integer port)
Throws:
java.lang.IllegalArgumentException - if a non-null port is not positive

isSkipLabels

public java.lang.Boolean isSkipLabels()

setSkipLabels

public void setSkipLabels(java.lang.Boolean skipLabels)

getStartRevision

public java.lang.Long getStartRevision()

setStartRevision

public void setStartRevision(java.lang.Long startRevision)

isUnicode

public java.lang.Boolean isUnicode()

setUnicode

public void setUnicode(java.lang.Boolean unicode)