public class Webhook extends Sysprop
Votable.VoteValue| Constructor and Description |
|---|
Webhook()
No-args constructor.
|
Webhook(String targetUrl)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
create()
Stores this object in the data store.
|
Boolean |
getActive() |
Boolean |
getCreate() |
Boolean |
getCreateAll() |
Boolean |
getDelete() |
Boolean |
getDeleteAll() |
String |
getSecret() |
String |
getTargetUrl() |
Boolean |
getTooManyFailures() |
String |
getTypeFilter() |
Boolean |
getUpdate() |
Boolean |
getUpdateAll() |
Boolean |
getUrlEncoded() |
void |
resetSecret()
Resets the secret key by generating a new one.
|
void |
setActive(Boolean active) |
void |
setCreate(Boolean create) |
void |
setCreateAll(Boolean createAll) |
void |
setDelete(Boolean delete) |
void |
setDeleteAll(Boolean deleteAll) |
void |
setSecret(String secret) |
void |
setTargetUrl(String targetUrl) |
void |
setTooManyFailures(Boolean tooManyFailures) |
void |
setTypeFilter(String typeFilter) |
void |
setUpdate(Boolean update) |
void |
setUpdateAll(Boolean updateAll) |
void |
setUrlEncoded(Boolean urlEncoded) |
void |
update()
Updates the object permanently.
|
addProperty, countChildren, countLinks, delete, deleteChildren, equals, exists, findChildren, findLinkedObjects, getAppid, getCached, getChildren, getChildren, getCreatorid, getId, getIndexed, getLinkedObjects, getLinks, getName, getObjectURI, getParentid, getPlural, getProperties, getProperty, getStored, getTags, getTimestamp, getType, getUpdated, getVersion, getVotes, hashCode, hasProperty, isLinked, isLinked, link, removeProperty, setAppid, setCached, setCreatorid, setId, setIndexed, setName, setParentid, setProperties, setStored, setTags, setTimestamp, setType, setUpdated, setVersion, setVotes, toString, unlink, unlinkAll, voteDown, voteUppublic Webhook()
public Webhook(String targetUrl)
targetUrl - the URL where the payload will be sentpublic String getTargetUrl()
public void setTargetUrl(String targetUrl)
targetUrl - target URL valuepublic String getSecret()
public void setSecret(String secret)
secret - webhook secret keypublic String getTypeFilter()
public void setTypeFilter(String typeFilter)
typeFilter - type filterpublic Boolean getUrlEncoded()
public void setUrlEncoded(Boolean urlEncoded)
urlEncoded - false for JSON payloadspublic Boolean getActive()
targetUrl.public void setActive(Boolean active)
active - if false, nothing is sent to targetUrl.public Boolean getTooManyFailures()
public void setTooManyFailures(Boolean tooManyFailures)
tooManyFailures - don't set this manuallypublic Boolean getCreate()
public void setCreate(Boolean create)
create - set to true to subscribe to create methodspublic Boolean getUpdate()
public void setUpdate(Boolean update)
update - set to true to subscribe to update methodspublic Boolean getDelete()
public void setDelete(Boolean delete)
delete - set to true to subscribe to delete methodspublic Boolean getCreateAll()
public void setCreateAll(Boolean createAll)
createAll - set to true to subscribe to createAll methodspublic Boolean getUpdateAll()
public void setUpdateAll(Boolean updateAll)
updateAll - set to true to subscribe to updateAll methodspublic Boolean getDeleteAll()
public void setDeleteAll(Boolean deleteAll)
deleteAll - set to true to subscribe to deleteAll methodspublic void resetSecret()
public void update()
ParaObjectLocked fields are ignored.update in interface ParaObjectupdate in class SyspropLocked,
DAO.update(com.erudika.para.core.ParaObject)public String create()
ParaObjectcreate in interface ParaObjectcreate in class SyspropStored,
DAO.create(com.erudika.para.core.ParaObject)Copyright © 2019 Erudika. All rights reserved.