Class PackageRevision
java.lang.Object
com.thoughtworks.go.plugin.api.material.packagerepository.PackageRevision
Deprecated.
Represents specific revision of the package. Package revision consists of revision, timestamp, user, revision comment and addition data. Additional data is key vale map.
Each entry added to additional data will be provided to agent as environment variable.
-
Constructor Summary
ConstructorsConstructorDescriptionPackageRevision(String revision, Date timestamp, String user) Deprecated.PackageRevision(String revision, Date timestamp, String user, String revisionComment, String trackbackUrl) Deprecated.PackageRevision(String revision, Date timestamp, String user, String revisionComment, String trackbackUrl, Map<String, String> data) Deprecated.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Adds additional data related to the package revisionbooleanDeprecated.getData()Deprecated.Gets additional data related to package revisiongetDataFor(String key) Deprecated.Gets additional data related to package revision for given keyDeprecated.Gets revision stringDeprecated.Gets comment associated with revisionDeprecated.Gets revision timestampDeprecated.Gets url which can provide information about producer of package revisiongetUser()Deprecated.Gets user associated with revisioninthashCode()Deprecated.toString()Deprecated.voidvalidateDataKey(String key) Deprecated.
-
Constructor Details
-
PackageRevision
Deprecated. -
PackageRevision
Deprecated. -
PackageRevision
public PackageRevision(String revision, Date timestamp, String user, String revisionComment, String trackbackUrl) Deprecated. -
PackageRevision
public PackageRevision(String revision, Date timestamp, String user, String revisionComment, String trackbackUrl, Map<String, String> data) Deprecated.
-
-
Method Details
-
getRevision
Deprecated.Gets revision string- Returns:
- revision string
-
getTimestamp
Deprecated.Gets revision timestamp- Returns:
- revision timestamp
-
getUser
Deprecated.Gets user associated with revision- Returns:
- user associated with revision
-
getRevisionComment
Deprecated.Gets comment associated with revision- Returns:
- comment associated with revision
-
getTrackbackUrl
Deprecated.Gets url which can provide information about producer of package revision- Returns:
- url which can provide information about producer of package revision
-
getData
Deprecated.Gets additional data related to package revision- Returns:
- additional data related to package revision
-
getDataFor
Deprecated.Gets additional data related to package revision for given key- Parameters:
key- for additional data- Returns:
- additional data related to package revision for given key
-
addData
Deprecated.Adds additional data related to the package revision- Parameters:
key- for additional datavalue- for additional data- Throws:
InvalidPackageRevisionDataException- if the key is null or empty
-
validateDataKey
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-