Package io.continual.iam.impl.common
Class CommonJsonObject
java.lang.Object
io.continual.iam.impl.common.CommonJsonObject
- All Implemented Interfaces:
UserDataHolder
- Direct Known Subclasses:
CommonJsonGroup,CommonJsonIdentity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet all of the user dataprotected abstract org.json.JSONObjectgetUserData(String key) Get a named data value.protected booleanprotected StringvoidputUserData(String key, String val) Put a named data value.abstract voidreload()reload this object from the servervoidremoveUserData(String key) Remove a named data value.protected voidremoveValue(String name) protected voidprotected abstract voidstore()
-
Constructor Details
-
CommonJsonObject
public CommonJsonObject()
-
-
Method Details
-
reload
Description copied from interface:UserDataHolderreload this object from the server- Specified by:
reloadin interfaceUserDataHolder- Throws:
IamSvcException- if there's a problem in the IAM service
-
setValue
- Throws:
IamSvcException
-
getValue
-
getValue
-
removeValue
- Throws:
IamSvcException
-
getUserData
Description copied from interface:UserDataHolderGet a named data value.- Specified by:
getUserDatain interfaceUserDataHolder- Parameters:
key- a key for a user data entry- Returns:
- a value or null
- Throws:
IamSvcException- if there's a problem in the IAM service
-
putUserData
Description copied from interface:UserDataHolderPut a named data value.- Specified by:
putUserDatain interfaceUserDataHolder- Parameters:
key- a key for the user data entryval- a value to store- Throws:
IamSvcException- if there's a problem in the IAM service
-
removeUserData
Description copied from interface:UserDataHolderRemove a named data value.- Specified by:
removeUserDatain interfaceUserDataHolder- Parameters:
key- a key for a user data entry- Throws:
IamSvcException- if there's a problem in the IAM service
-
getAllUserData
Description copied from interface:UserDataHolderGet all of the user data- Specified by:
getAllUserDatain interfaceUserDataHolder- Returns:
- a map of user data
- Throws:
IamSvcException- if there's a problem in the IAM service
-
getDataRecord
protected abstract org.json.JSONObject getDataRecord() -
store
- Throws:
IamSvcException
-