Class BitBucketPPRHandlerTemplate
- java.lang.Object
-
- io.jenkins.plugins.bitbucketpushandpullrequest.observer.BitBucketPPRHandlerTemplate
-
- Direct Known Subclasses:
BitBucketPPRPullRequestCloudObserver,BitBucketPPRPullRequestServerObserver,BitBucketPPRPushCloudObserver,BitBucketPPRPushServerObserver
public abstract class BitBucketPPRHandlerTemplate extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected BitBucketPPRClientTypeclientTypeprotected BitBucketPPREventContextcontext
-
Constructor Summary
Constructors Constructor Description BitBucketPPRHandlerTemplate()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcallClient(com.github.scribejava.core.model.Verb verb, String url, Map<String,String> payload)protected voidcallClient(String url, Map<String,String> payload)protected StringcomputeBitBucketBuildKey(BitBucketPPREventContext context)protected BitBucketPPRPluginConfiggetGlobalConfig()voidrun(BitBucketPPREventType eventType)voidsetApprovedOrDeclined()abstract voidsetBuildStatusInProgress()abstract voidsetBuildStatusOnFinished()
-
-
-
Field Detail
-
context
protected BitBucketPPREventContext context
-
clientType
protected BitBucketPPRClientType clientType
-
-
Method Detail
-
run
public void run(BitBucketPPREventType eventType) throws Exception
- Throws:
Exception
-
setApprovedOrDeclined
public void setApprovedOrDeclined() throws MalformedURLException- Throws:
MalformedURLException
-
setBuildStatusOnFinished
public abstract void setBuildStatusOnFinished() throws MalformedURLException- Throws:
MalformedURLException
-
setBuildStatusInProgress
public abstract void setBuildStatusInProgress() throws MalformedURLException- Throws:
MalformedURLException
-
getGlobalConfig
protected BitBucketPPRPluginConfig getGlobalConfig()
-
computeBitBucketBuildKey
protected String computeBitBucketBuildKey(BitBucketPPREventContext context)
-
-