Class 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
    • Constructor Detail

      • Account

        public Account()
    • 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
      • create

        public static Account create​(String accountType,
                                     String id,
                                     com.fasterxml.jackson.databind.JsonNode jsonNode)
                              throws com.floragunn.searchsupport.config.validation.ConfigValidationException
        Throws:
        com.floragunn.searchsupport.config.validation.ConfigValidationException