Class BitBucketPPRActionAbstract
java.lang.Object
hudson.model.InvisibleAction
io.jenkins.plugins.bitbucketpushandpullrequest.action.BitBucketPPRActionAbstract
- All Implemented Interfaces:
Action,ModelObject
- Direct Known Subclasses:
BitBucketPPRPullRequestAction,BitBucketPPRPullRequestServerAction,BitBucketPPRRepositoryAction,BitBucketPPRServerRepositoryAction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static <T> TrequirePayloadProperty(T value, String property) Returnsvalueif it is non-null, otherwise throws aBitBucketPPRPayloadPropertyNotFoundExceptionnaming the missing property.voidsetPropagationUrl(String propagationUrl) Methods inherited from class hudson.model.InvisibleAction
getDisplayName, getIconFileName, getUrlName
-
Constructor Details
-
BitBucketPPRActionAbstract
public BitBucketPPRActionAbstract()
-
-
Method Details
-
requirePayloadProperty
protected static <T> T requirePayloadProperty(T value, String property) throws BitBucketPPRPayloadPropertyNotFoundException Returnsvalueif it is non-null, otherwise throws aBitBucketPPRPayloadPropertyNotFoundExceptionnaming the missing property. Action constructors use this to reject a payload that is missing a property they need, turning a cryptic downstreamNullPointerExceptioninto a clear, catchable error. -
getGlobalConfig
-
setPropagationUrl
-
getPropagationUrl
-