public abstract class CommonJsonObject extends Object implements UserDataHolder
| Constructor and Description |
|---|
CommonJsonObject() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getAllUserData()
Get all of the user data
|
protected abstract org.json.JSONObject |
getDataRecord() |
String |
getUserData(String key)
Get a named data value.
|
protected boolean |
getValue(String name,
boolean defval) |
protected String |
getValue(String name,
String defval) |
void |
putUserData(String key,
String val)
Put a named data value.
|
abstract void |
reload()
reload this object from the server
|
void |
removeUserData(String key)
Remove a named data value.
|
protected void |
removeValue(String name) |
protected void |
setValue(String name,
String val) |
protected abstract void |
store() |
public abstract void reload()
throws IamSvcException
UserDataHolderreload in interface UserDataHolderIamSvcException - if there's a problem in the IAM serviceprotected void setValue(String name, String val) throws IamSvcException
IamSvcExceptionprotected boolean getValue(String name, boolean defval)
protected void removeValue(String name) throws IamSvcException
IamSvcExceptionpublic String getUserData(String key) throws IamSvcException
UserDataHoldergetUserData in interface UserDataHolderkey - a key for a user data entryIamSvcException - if there's a problem in the IAM servicepublic void putUserData(String key, String val) throws IamSvcException
UserDataHolderputUserData in interface UserDataHolderkey - a key for the user data entryval - a value to storeIamSvcException - if there's a problem in the IAM servicepublic void removeUserData(String key) throws IamSvcException
UserDataHolderremoveUserData in interface UserDataHolderkey - a key for a user data entryIamSvcException - if there's a problem in the IAM servicepublic Map<String,String> getAllUserData() throws IamSvcException
UserDataHoldergetAllUserData in interface UserDataHolderIamSvcException - if there's a problem in the IAM serviceprotected abstract org.json.JSONObject getDataRecord()
protected abstract void store()
throws IamSvcException
IamSvcExceptionCopyright © 2023 continual.io. All rights reserved.