Class SgDynamicConfiguration<T>
- java.lang.Object
-
- com.floragunn.searchguard.sgconf.impl.SgDynamicConfiguration<T>
-
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent
public class SgDynamicConfiguration<T> extends Object implements org.elasticsearch.common.xcontent.ToXContent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(SgDynamicConfiguration other)voidclearHashes()SgDynamicConfiguration<T>deepClone()static <T> SgDynamicConfiguration<T>empty()booleanexists(String key)static <T> SgDynamicConfiguration<T>fromJson(String json, CType ctype, int version, long seqNo, long primaryTerm)static <T> SgDynamicConfiguration<T>fromMap(Map<String,Object> map, CType ctype)static <T> SgDynamicConfiguration<T>fromMap(Map<String,Object> map, CType ctype, int version, long seqNo, long primaryTerm)static <T> SgDynamicConfiguration<T>fromNode(com.fasterxml.jackson.databind.JsonNode json, CType ctype, int version, long seqNo, long primaryTerm)static <T> SgDynamicConfiguration<T>fromNode(com.fasterxml.jackson.databind.JsonNode json, Class<T> configType, int version, long seqNo, long primaryTerm)Metaget_sg_meta()Map<String,T>getCEntries()TgetCEntry(String key)CTypegetCType()Class<?>getImplementingClass()longgetPrimaryTerm()longgetSeqNo()intgetVersion()booleanisFragment()TputCEntry(String key, T value)voidputCObject(String key, Object value)voidremove(String key)voidremoveHidden()voidremoveOthers(String key)voidremoveStatic()voidset_sg_meta(Meta _sg_meta)voidsetCType(CType ctype)org.elasticsearch.common.bytes.BytesReferencetoBytesReference()StringtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)static voidvalidate(SgDynamicConfiguration sdc, int version, CType ctype)
-
-
-
Method Detail
-
empty
public static <T> SgDynamicConfiguration<T> empty()
-
fromJson
public static <T> SgDynamicConfiguration<T> fromJson(String json, CType ctype, int version, long seqNo, long primaryTerm) throws IOException
- Throws:
IOException
-
fromMap
public static <T> SgDynamicConfiguration<T> fromMap(Map<String,Object> map, CType ctype) throws IOException
- Throws:
IOException
-
fromMap
public static <T> SgDynamicConfiguration<T> fromMap(Map<String,Object> map, CType ctype, int version, long seqNo, long primaryTerm) throws IOException
- Throws:
IOException
-
validate
public static void validate(SgDynamicConfiguration sdc, int version, CType ctype) throws IOException
- Throws:
IOException
-
fromNode
public static <T> SgDynamicConfiguration<T> fromNode(com.fasterxml.jackson.databind.JsonNode json, CType ctype, int version, long seqNo, long primaryTerm) throws IOException
- Throws:
IOException
-
fromNode
public static <T> SgDynamicConfiguration<T> fromNode(com.fasterxml.jackson.databind.JsonNode json, Class<T> configType, int version, long seqNo, long primaryTerm) throws IOException
- Throws:
IOException
-
get_sg_meta
public Meta get_sg_meta()
-
set_sg_meta
public void set_sg_meta(Meta _sg_meta)
-
removeHidden
public void removeHidden()
-
removeStatic
public void removeStatic()
-
clearHashes
public void clearHashes()
-
removeOthers
public void removeOthers(String key)
-
exists
public boolean exists(String key)
-
toBytesReference
public org.elasticsearch.common.bytes.BytesReference toBytesReference() throws IOException- Throws:
IOException
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-
isFragment
public boolean isFragment()
- Specified by:
isFragmentin interfaceorg.elasticsearch.common.xcontent.ToXContent
-
getSeqNo
public long getSeqNo()
-
getPrimaryTerm
public long getPrimaryTerm()
-
getCType
public CType getCType()
-
setCType
public void setCType(CType ctype)
-
getVersion
public int getVersion()
-
getImplementingClass
public Class<?> getImplementingClass()
-
deepClone
public SgDynamicConfiguration<T> deepClone()
-
remove
public void remove(String key)
-
add
public void add(SgDynamicConfiguration other)
-
-