Package io.continual.iam.impl.common
Class CommonJsonGroup
java.lang.Object
io.continual.iam.impl.common.CommonJsonObject
io.continual.iam.impl.common.CommonJsonGroup
- All Implemented Interfaces:
Group,UserDataHolder
-
Constructor Summary
ConstructorsConstructorDescriptionCommonJsonGroup(CommonJsonDb<?, ?> db, String id, org.json.JSONObject groupData) Deprecated.Use the other form, which is more similar to the identity constructorCommonJsonGroup(String id, org.json.JSONObject groupData, CommonJsonDb<?, ?> db) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected org.json.JSONObjectgetId()Get an identifier for this groupGet members of the groupgetName()Get a readable name for this groupstatic org.json.JSONObjectinitializeGroup(String name) booleanIs the given user a member of this group?voidreload()reload this object from the servervoidremoveUser(String userId) protected voidstore()Methods inherited from class io.continual.iam.impl.common.CommonJsonObject
getAllUserData, getUserData, getValue, getValue, putUserData, removeUserData, removeValue, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.continual.iam.identity.UserDataHolder
getAllUserData, getUserData, putUserData, removeUserData
-
Constructor Details
-
CommonJsonGroup
Deprecated.Use the other form, which is more similar to the identity constructorConstruct a group- Parameters:
db- an identity databaseid- the group's IDgroupData- additional group data
-
CommonJsonGroup
-
-
Method Details
-
initializeGroup
-
getId
Description copied from interface:GroupGet an identifier for this group -
getName
Description copied from interface:GroupGet a readable name for this group -
isMember
Description copied from interface:GroupIs the given user a member of this group?- Specified by:
isMemberin interfaceGroup- Parameters:
userId- a user ID- Returns:
- true if the user is a member
- Throws:
IamSvcException- if there's a problem in the IAM service
-
getMembers
Description copied from interface:GroupGet members of the group- Specified by:
getMembersin interfaceGroup- Returns:
- a set of 0 or more user IDs
- Throws:
IamSvcException- if there's a problem in the IAM service
-
addUser
- Throws:
IamSvcException
-
removeUser
- Throws:
IamSvcException
-
reload
Description copied from interface:UserDataHolderreload this object from the server- Specified by:
reloadin interfaceUserDataHolder- Specified by:
reloadin classCommonJsonObject- Throws:
IamSvcException- if there's a problem in the IAM service
-
getDataRecord
protected org.json.JSONObject getDataRecord()- Specified by:
getDataRecordin classCommonJsonObject
-
store
- Specified by:
storein classCommonJsonObject- Throws:
IamSvcException
-