-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump version, support config toggle of add/remove search, exclude que…
…ry, term hyperlinks and new window
- Loading branch information
1 parent
a88f694
commit 6e72d97
Showing
15 changed files
with
509 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 98 additions & 0 deletions
98
src/main/java/org/graylog/plugins/quickvaluesplus/QuickValuesPlusPluginConfiguration3_1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
package org.graylog.plugins.quickvaluesplus; | ||
|
||
import com.fasterxml.jackson.annotation.JsonAutoDetect; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.google.auto.value.AutoValue; | ||
|
||
@JsonAutoDetect | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@AutoValue | ||
public abstract class QuickValuesPlusPluginConfiguration3_1 { | ||
|
||
@JsonProperty("table_size") | ||
public abstract Number tableSize(); | ||
|
||
@JsonProperty("top_values") | ||
public abstract Number topValues(); | ||
|
||
@JsonProperty("sort_order") | ||
public abstract String sortOrder(); | ||
|
||
@JsonProperty("show_pie_chart") | ||
public abstract Boolean showPieChart(); | ||
|
||
@JsonProperty("display_add_to_search_button") | ||
public abstract Boolean addToSearch(); | ||
|
||
@JsonProperty("display_remove_from_search_button") | ||
public abstract Boolean removeFromSearch(); | ||
|
||
@JsonProperty("display_term_hyperlinks") | ||
public abstract Boolean termHyperlinks(); | ||
|
||
@JsonProperty("display_exclude_from_query_button") | ||
public abstract Boolean excludeQuery(); | ||
|
||
@JsonProperty("display_get_term_reply_in_new_window_button") | ||
public abstract Boolean termNewWindow(); | ||
|
||
@JsonProperty("version") | ||
public abstract String version(); | ||
|
||
@JsonCreator | ||
public static QuickValuesPlusPluginConfiguration3_1 create(@JsonProperty("table_size") Number tableSize, | ||
@JsonProperty("top_values") Number topValues, | ||
@JsonProperty("sort_order") String sortOrder, | ||
@JsonProperty("show_pie_chart") Boolean showPieChart, | ||
@JsonProperty("display_add_to_search_button") Boolean addToSearch, | ||
@JsonProperty("display_remove_from_search_button") Boolean removeFromSearch, | ||
@JsonProperty("display_term_hyperlinks") Boolean termHyperlinks, | ||
@JsonProperty("display_exclude_from_query_button") Boolean excludeQuery, | ||
@JsonProperty("display_get_term_reply_in_new_window_button") Boolean termNewWindow, | ||
@JsonProperty("version") String version) { | ||
return builder() | ||
.tableSize(tableSize) | ||
.topValues(topValues) | ||
.sortOrder(sortOrder) | ||
.showPieChart(showPieChart) | ||
.addToSearch(addToSearch) | ||
.removeFromSearch(removeFromSearch) | ||
.termHyperlinks(termHyperlinks) | ||
.excludeQuery(excludeQuery) | ||
.termNewWindow(termNewWindow) | ||
.version(version) | ||
.build(); | ||
} | ||
|
||
public static Builder builder() { | ||
return new AutoValue_QuickValuesPlusPluginConfiguration3_1.Builder(); | ||
} | ||
|
||
@AutoValue.Builder | ||
public static abstract class Builder { | ||
public abstract Builder tableSize(Number tableSize); | ||
|
||
public abstract Builder topValues(Number topValues); | ||
|
||
public abstract Builder sortOrder(String sortOrder); | ||
|
||
public abstract Builder showPieChart(Boolean showPieChart); | ||
|
||
public abstract Builder addToSearch(Boolean addToSearch); | ||
|
||
public abstract Builder removeFromSearch(Boolean removeFromSearch); | ||
|
||
public abstract Builder termHyperlinks(Boolean termHyperlinks); | ||
|
||
public abstract Builder excludeQuery(Boolean excludeQuery); | ||
|
||
public abstract Builder termNewWindow(Boolean termNewWindow); | ||
|
||
public abstract Builder version(String version); | ||
|
||
public abstract QuickValuesPlusPluginConfiguration3_1 build(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.