Class CRScmMaterial
java.lang.Object
com.thoughtworks.go.plugin.configrepo.contract.CRBase
com.thoughtworks.go.plugin.configrepo.contract.material.CRMaterial
com.thoughtworks.go.plugin.configrepo.contract.material.CRScmMaterial
- All Implemented Interfaces:
Locatable,SourceCodeMaterial
- Direct Known Subclasses:
CRGitMaterial,CRHgMaterial,CRP4Material,CRSvnMaterial,CRTfsMaterial
public abstract class CRScmMaterial extends CRMaterial implements SourceCodeMaterial
-
Field Summary
Fields Modifier and Type Field Description protected booleanautoUpdateprotected java.lang.Stringdestinationprotected java.lang.StringencryptedPasswordprotected CRFilterfilterprotected java.lang.Stringpasswordprotected java.lang.StringusernameFields inherited from class com.thoughtworks.go.plugin.configrepo.contract.material.CRMaterial
type -
Constructor Summary
Constructors Constructor Description CRScmMaterial()CRScmMaterial(java.lang.String type, java.lang.String materialName, java.lang.String folder, boolean autoUpdate, boolean isFilterInverted, java.lang.String username, java.util.List<java.lang.String> filter) -
Method Summary
Modifier and Type Method Description protected voidgetCommonErrors(ErrorCollection errors, java.lang.String parentLocation)voidgetErrors(ErrorCollection errors, java.lang.String parentLocation)java.util.List<java.lang.String>getFilterList()booleanhasEncryptedPassword()booleanhasPlainTextPassword()booleanisWhitelist()voidsetIncludesNoCheck(java.lang.String... filters)protected voidvalidatePassword(ErrorCollection errors, java.lang.String location)Methods inherited from class com.thoughtworks.go.plugin.configrepo.contract.material.CRMaterial
typeName, validateNameUniquenessMethods inherited from class com.thoughtworks.go.plugin.configrepo.contract.CRBase
getErrors, getLocation, setLocationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.thoughtworks.go.plugin.configrepo.contract.Locatable
getLocationMethods inherited from interface com.thoughtworks.go.plugin.configrepo.contract.material.SourceCodeMaterial
getDestination
-
Field Details
-
filter
-
destination
@SerializedName("destination") @Expose protected java.lang.String destination -
autoUpdate
@SerializedName("auto_update") @Expose protected boolean autoUpdate -
username
@SerializedName("username") @Expose protected java.lang.String username -
password
@SerializedName("password") @Expose protected java.lang.String password -
encryptedPassword
@SerializedName("encrypted_password") @Expose protected java.lang.String encryptedPassword
-
-
Constructor Details
-
CRScmMaterial
public CRScmMaterial() -
CRScmMaterial
public CRScmMaterial(java.lang.String type, java.lang.String materialName, java.lang.String folder, boolean autoUpdate, boolean isFilterInverted, java.lang.String username, java.util.List<java.lang.String> filter)
-
-
Method Details
-
getFilterList
public java.util.List<java.lang.String> getFilterList() -
isWhitelist
public boolean isWhitelist() -
getErrors
-
getCommonErrors
-
setIncludesNoCheck
public void setIncludesNoCheck(java.lang.String... filters) -
hasEncryptedPassword
public boolean hasEncryptedPassword() -
hasPlainTextPassword
public boolean hasPlainTextPassword() -
validatePassword
-