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
ConstructorDescriptionWebhookTemplate
(Application application, String endpointUrl, String token) WebhookTemplate
(Webhook webhook) -
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
getToken()
void
void
void
setFailuresSinceLastSuccess
(long failuresSinceLastSuccess) void
setOldestFailureDate
(Date oldestFailureDate) toString()
-
Constructor Details
-
WebhookTemplate
-
WebhookTemplate
-
-
Method Details
-
getId
-
getEndpointUrl
- Specified by:
getEndpointUrl
in interfaceWebhook
-
getApplication
- Specified by:
getApplication
in interfaceWebhook
-
getToken
-
getOldestFailureDate
- Specified by:
getOldestFailureDate
in 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:
getFailuresSinceLastSuccess
in 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
-