Class AccessControlUserConfigUtils
- java.lang.Object
-
- org.apache.pinot.common.utils.config.AccessControlUserConfigUtils
-
public class AccessControlUserConfigUtils extends Object
UserConfigUtils is responsible for two things: 1. Used to acquire user config by parsing znRecord that stored in Zookeeper 2. Used to construct znRecord by packaging user config
-
-
Method Summary
Modifier and Type Method Description static UserConfigfromZNRecord(org.apache.helix.zookeeper.datamodel.ZNRecord znRecord)static org.apache.helix.zookeeper.datamodel.ZNRecordtoZNRecord(UserConfig userConfig)
-
-
-
Method Detail
-
fromZNRecord
public static UserConfig fromZNRecord(org.apache.helix.zookeeper.datamodel.ZNRecord znRecord)
-
toZNRecord
public static org.apache.helix.zookeeper.datamodel.ZNRecord toZNRecord(UserConfig userConfig) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-