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 BitBucketPPRClientType
clientType
protected BitBucketPPREventContext
context
-
Constructor Summary
Constructors Constructor Description BitBucketPPRHandlerTemplate()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
callClient(com.github.scribejava.core.model.Verb verb, String url, Map<String,String> payload)
protected void
callClient(String url, Map<String,String> payload)
protected String
computeBitBucketBuildKey(BitBucketPPREventContext context)
protected BitBucketPPRPluginConfig
getGlobalConfig()
void
run(BitBucketPPREventType eventType)
void
setApprovedOrDeclined()
abstract void
setBuildStatusInProgress()
abstract void
setBuildStatusOnFinished()
-
-
-
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)
-
-