Class BitbucketServerCommit
- java.lang.Object
-
- com.cloudbees.jenkins.plugins.bitbucket.server.client.branch.BitbucketServerCommit
-
- All Implemented Interfaces:
BitbucketCommit
public class BitbucketServerCommit extends Object implements BitbucketCommit
-
-
Constructor Summary
Constructors Constructor Description BitbucketServerCommit(String hash)
BitbucketServerCommit(String message, String hash, long dateMillis, BitbucketServerAuthor author)
BitbucketServerCommit(String message, String hash, long dateMillis, String author)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuthor()
Returns the head commit author for this branch.String
getDate()
long
getDateMillis()
String
getHash()
String
getMessage()
void
setAuthor(String author)
void
setDate(String date)
void
setDateMillis(long dateMillis)
void
setHash(String hash)
void
setMessage(String message)
-
-
-
Constructor Detail
-
BitbucketServerCommit
public BitbucketServerCommit(@NonNull String message, @NonNull String hash, @NonNull long dateMillis, @Nullable BitbucketServerAuthor author)
-
BitbucketServerCommit
public BitbucketServerCommit(String message, String hash, long dateMillis, String author)
-
BitbucketServerCommit
public BitbucketServerCommit(String hash)
-
-
Method Detail
-
getMessage
public String getMessage()
- Specified by:
getMessage
in interfaceBitbucketCommit
- Returns:
- commit message
-
getDate
public String getDate()
- Specified by:
getDate
in interfaceBitbucketCommit
- Returns:
- the commit date in ISO format
-
getHash
public String getHash()
- Specified by:
getHash
in interfaceBitbucketCommit
- Returns:
- the commit hash (complete, not reduced)
-
getDateMillis
public long getDateMillis()
- Specified by:
getDateMillis
in interfaceBitbucketCommit
- Returns:
- commit time in milliseconds (Java timestamp)
-
setMessage
public void setMessage(String message)
-
setDate
public void setDate(String date)
-
setHash
public void setHash(String hash)
-
setDateMillis
public void setDateMillis(long dateMillis)
-
getAuthor
public String getAuthor()
Description copied from interface:BitbucketCommit
Returns the head commit author for this branch.- Specified by:
getAuthor
in interfaceBitbucketCommit
- Returns:
- the head commit author of this branch
-
setAuthor
public void setAuthor(String author)
-
-