Package com.floragunn.signals.accounts
Class Account
- java.lang.Object
-
- com.floragunn.signals.accounts.Account
-
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
- Direct Known Subclasses:
EmailAccount,SlackAccount
public abstract class Account extends Object implements org.elasticsearch.xcontent.ToXContentObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccount.Factory<A extends Account>static classAccount.FactoryRegistry
-
Field Summary
Fields Modifier and Type Field Description static Account.FactoryRegistryfactoryRegistry
-
Constructor Summary
Constructors Constructor Description Account()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Accountcreate(String accountType, String id, com.fasterxml.jackson.databind.JsonNode jsonNode)StringgetId()abstract org.elasticsearch.search.builder.SearchSourceBuildergetReferencingWatchesQuery()StringgetScopedId()abstract StringgetType()booleanisInUse(org.elasticsearch.client.Client client, SignalsSettings settings)voidisInUse(org.elasticsearch.client.Client client, SignalsSettings settings, org.elasticsearch.action.ActionListener<Boolean> actionListener)static Accountparse(String accountType, String id, String string)voidsetId(String id)StringtoJson()
-
-
-
Field Detail
-
factoryRegistry
public static final Account.FactoryRegistry factoryRegistry
-
-
Method Detail
-
isInUse
public boolean isInUse(org.elasticsearch.client.Client client, SignalsSettings settings)
-
isInUse
public void isInUse(org.elasticsearch.client.Client client, SignalsSettings settings, org.elasticsearch.action.ActionListener<Boolean> actionListener)
-
getReferencingWatchesQuery
public abstract org.elasticsearch.search.builder.SearchSourceBuilder getReferencingWatchesQuery()
-
getId
public String getId()
-
setId
public void setId(String id)
-
getScopedId
public String getScopedId()
-
getType
public abstract String getType()
-
toJson
public final String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
parse
public static Account parse(String accountType, String id, String string) throws com.floragunn.searchsupport.config.validation.ConfigValidationException
- Throws:
com.floragunn.searchsupport.config.validation.ConfigValidationException
-
-