Package org.syncany.plugins.transfer
Class StorageTestResult
- java.lang.Object
-
- org.syncany.plugins.transfer.StorageTestResult
-
public class StorageTestResult extends java.lang.Object
Represents the return structure of the tests performed by byTransferManager.test(boolean)method.The result is determined by the following methods:
TransferManager.testTargetExists(): Tests whether the target exists.TransferManager.testTargetCanWrite(): Tests whether the target is writable.TransferManager.testTargetCanCreate(): Tests whether the target can be created if it does not exist already. This is only called iftestCreateTargetis set.TransferManager.testRepoFileExists(): Tests whether the repo file exists.
- See Also:
TransferManager.test(boolean)
-
-
Constructor Summary
Constructors Constructor Description StorageTestResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetErrorMessage()booleanisRepoFileExists()booleanisTargetCanConnect()booleanisTargetCanCreate()booleanisTargetCanWrite()booleanisTargetExists()voidsetErrorMessage(java.lang.String errorMessage)voidsetRepoFileExists(boolean repoFileExists)voidsetTargetCanConnect(boolean targetCanConnect)voidsetTargetCanCreate(boolean targetCanCreate)voidsetTargetCanWrite(boolean targetCanWrite)voidsetTargetExists(boolean targetExists)java.lang.StringtoString()
-
-
-
Constructor Detail
-
StorageTestResult
public StorageTestResult()
-
-
Method Detail
-
isTargetExists
public boolean isTargetExists()
-
setTargetExists
public void setTargetExists(boolean targetExists)
-
isTargetCanConnect
public boolean isTargetCanConnect()
-
setTargetCanConnect
public void setTargetCanConnect(boolean targetCanConnect)
-
isTargetCanCreate
public boolean isTargetCanCreate()
-
setTargetCanCreate
public void setTargetCanCreate(boolean targetCanCreate)
-
isTargetCanWrite
public boolean isTargetCanWrite()
-
setTargetCanWrite
public void setTargetCanWrite(boolean targetCanWrite)
-
isRepoFileExists
public boolean isRepoFileExists()
-
setRepoFileExists
public void setRepoFileExists(boolean repoFileExists)
-
getErrorMessage
public java.lang.String getErrorMessage()
-
setErrorMessage
public void setErrorMessage(java.lang.String errorMessage)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-