Class WebhookTemplate
java.lang.Object
com.atlassian.crowd.model.webhook.WebhookTemplate
- All Implemented Interfaces:
Webhook
A prototype to create Webhooks
- Since:
- v2.7
-
Constructor Summary
ConstructorsConstructorDescriptionWebhookTemplate(Application application, String endpointUrl, String token) WebhookTemplate(Webhook webhook) -
Method Summary
Modifier and TypeMethodDescriptionlonggetId()getToken()voidvoidvoidsetFailuresSinceLastSuccess(long failuresSinceLastSuccess) voidsetOldestFailureDate(Date oldestFailureDate) toString()
-
Constructor Details
-
WebhookTemplate
-
WebhookTemplate
-
-
Method Details
-
getId
-
getEndpointUrl
- Specified by:
getEndpointUrlin interfaceWebhook
-
getApplication
- Specified by:
getApplicationin interfaceWebhook
-
getToken
-
getOldestFailureDate
- Specified by:
getOldestFailureDatein interfaceWebhook- Returns:
- Date of the last failed delivery that has not been followed by any successful delivery. May be null if the last delivery was successful, or if no delivery has been attempted yet (i.e., new Webhooks).
-
getFailuresSinceLastSuccess
public long getFailuresSinceLastSuccess()- Specified by:
getFailuresSinceLastSuccessin interfaceWebhook- Returns:
- Number of consecutive failed attempts to deliver the ping to the Webhook since the last successful delivery, or since the Webhook was created. May be zero if the last delivery was successful, or if the Webhook has just been created.
-
setOldestFailureDate
-
resetOldestFailureDate
public void resetOldestFailureDate() -
setFailuresSinceLastSuccess
public void setFailuresSinceLastSuccess(long failuresSinceLastSuccess) -
resetFailuresSinceLastSuccess
public void resetFailuresSinceLastSuccess() -
toString
-