com.atlassian.crowd.model.webhook
Class WebhookTemplate

java.lang.Object
  extended by com.atlassian.crowd.model.webhook.WebhookTemplate
All Implemented Interfaces:
Webhook

public class WebhookTemplate
extends Object
implements Webhook

A prototype to create Webhooks

Since:
v2.7

Constructor Summary
WebhookTemplate(Application application, String endpointUrl, String token)
           
WebhookTemplate(Webhook webhook)
           
 
Method Summary
 Application getApplication()
           
 String getEndpointUrl()
           
 long getFailuresSinceLastSuccess()
           
 Long getId()
           
 Date getOldestFailureDate()
           
 String getToken()
           
 void resetFailuresSinceLastSuccess()
           
 void resetOldestFailureDate()
           
 void setFailuresSinceLastSuccess(long failuresSinceLastSuccess)
           
 void setOldestFailureDate(Date oldestFailureDate)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebhookTemplate

public WebhookTemplate(Application application,
                       String endpointUrl,
                       @Nullable
                       String token)

WebhookTemplate

public WebhookTemplate(Webhook webhook)
Method Detail

getId

@Nullable
public Long getId()
Specified by:
getId in interface Webhook

getEndpointUrl

public String getEndpointUrl()
Specified by:
getEndpointUrl in interface Webhook

getApplication

public Application getApplication()
Specified by:
getApplication in interface Webhook

getToken

@Nullable
public String getToken()
Specified by:
getToken in interface Webhook

getOldestFailureDate

@Nullable
public Date getOldestFailureDate()
Specified by:
getOldestFailureDate in interface Webhook

getFailuresSinceLastSuccess

public long getFailuresSinceLastSuccess()
Specified by:
getFailuresSinceLastSuccess in interface Webhook

setOldestFailureDate

public void setOldestFailureDate(Date oldestFailureDate)

resetOldestFailureDate

public void resetOldestFailureDate()

setFailuresSinceLastSuccess

public void setFailuresSinceLastSuccess(long failuresSinceLastSuccess)

resetFailuresSinceLastSuccess

public void resetFailuresSinceLastSuccess()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 Atlassian. All Rights Reserved.