Class BitbucketServerBranch
- java.lang.Object
-
- com.cloudbees.jenkins.plugins.bitbucket.server.client.branch.BitbucketServerBranch
-
- All Implemented Interfaces:
BitbucketBranch
public class BitbucketServerBranch extends Object implements BitbucketBranch
-
-
Constructor Summary
Constructors Constructor Description BitbucketServerBranch()
BitbucketServerBranch(String name, String headHash)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuthor()
Returns the head commit author for this branch.long
getDateMillis()
String
getMessage()
Returns the head commit message for this branch.String
getName()
String
getRawNode()
long
getTimestamp()
void
setAuthor(String author)
void
setCommitClosure(Callable<BitbucketCommit> commitClosure)
void
setDisplayId(String displayId)
void
setLatestCommit(String latestCommit)
void
setMessage(String message)
void
setName(String displayId)
void
setRawNode(String latestCommit)
void
setTimestamp(long timestamp)
-
-
-
Method Detail
-
getRawNode
public String getRawNode()
- Specified by:
getRawNode
in interfaceBitbucketBranch
- Returns:
- the head commit node of this branch
-
getName
public String getName()
- Specified by:
getName
in interfaceBitbucketBranch
- Returns:
- the branch name
-
getTimestamp
public long getTimestamp()
-
getDateMillis
public long getDateMillis()
- Specified by:
getDateMillis
in interfaceBitbucketBranch
- Returns:
- the commit milliseconds from epoch
-
setDisplayId
public void setDisplayId(String displayId)
-
setLatestCommit
public void setLatestCommit(String latestCommit)
-
setName
public void setName(String displayId)
-
setRawNode
public void setRawNode(String latestCommit)
-
setTimestamp
public void setTimestamp(long timestamp)
-
setCommitClosure
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public void setCommitClosure(Callable<BitbucketCommit> commitClosure)
-
getMessage
public String getMessage()
Description copied from interface:BitbucketBranch
Returns the head commit message for this branch.- Specified by:
getMessage
in interfaceBitbucketBranch
- Returns:
- the head commit message of this branch
-
setMessage
public void setMessage(String message)
-
getAuthor
public String getAuthor()
Description copied from interface:BitbucketBranch
Returns the head commit author for this branch.- Specified by:
getAuthor
in interfaceBitbucketBranch
- Returns:
- the head commit author of this branch
-
setAuthor
public void setAuthor(String author)
-
-