Package com.illumon.iris.controller
Class IrisUserContext
java.lang.Object
com.illumon.iris.controller.IrisUserContext
- All Implemented Interfaces:
IrisGroupProvider
A super simple dummy implementation of a user context, where you just assert what the user is, and then
there are some hardcoded rules for testing.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.permissions.IrisGroupProvider
IrisGroupProvider.UserType -
Field Summary
Fields inherited from interface com.illumon.iris.db.v2.permissions.IrisGroupProvider
FULL_ACCESS_GROUP, GROUP_ALLUSERS, IRIS_ACLEDITORS, IRIS_DATAMANAGERS, IRIS_QUERYMANAGERS, IRIS_SCHEMAMANAGERS, IRIS_SUPERUSERS, NON_INTERACTIVE_GROUP, QUERY_VIEW_ONLY_GROUP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRefreshListener(com.fishlib.base.Procedure.Nullary listener) String[]String[]String[]String[]getGroupsForUser(UserContext userContext) String[]getUsersForGroup(String group) getUserType(UserContext userContext) booleanbooleanisAclEditor(UserContext userContext) final booleanisMember(UserContext userContext, String owner, String[] groups) final booleanbooleanbooleanisQueryManager(UserContext userContext) booleanbooleanisSchemaManager(UserContext userContext) booleanbooleanisSuperUser(UserContext userContext) voidvoidremoveRefreshListener(com.fishlib.base.Procedure.Nullary listener) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.v2.permissions.IrisGroupProvider
getRunAsUser, getRunAsUserMap
-
Constructor Details
-
IrisUserContext
public IrisUserContext(@NotNull UserContext userContext, @NotNull IrisGroupProvider wrappedProvider)
-
-
Method Details
-
refreshGroups
public void refreshGroups() -
getUserContext
-
isSuperUser
public boolean isSuperUser() -
isAclEditor
public boolean isAclEditor() -
isSchemaManager
public boolean isSchemaManager() -
isQueryManager
public boolean isQueryManager() -
getUserType
-
isMember
-
isMember
- Specified by:
isMemberin interfaceIrisGroupProvider
-
getGroupsForUser
-
getGroupsForUser
- Specified by:
getGroupsForUserin interfaceIrisGroupProvider
-
getUsersForGroup
- Specified by:
getUsersForGroupin interfaceIrisGroupProvider
-
isSuperUser
- Specified by:
isSuperUserin interfaceIrisGroupProvider
-
isAclEditor
- Specified by:
isAclEditorin interfaceIrisGroupProvider
-
isSchemaManager
- Specified by:
isSchemaManagerin interfaceIrisGroupProvider
-
isQueryManager
- Specified by:
isQueryManagerin interfaceIrisGroupProvider
-
getAllGroups
- Specified by:
getAllGroupsin interfaceIrisGroupProvider
-
getAllUsers
- Specified by:
getAllUsersin interfaceIrisGroupProvider
-
getUserType
- Specified by:
getUserTypein interfaceIrisGroupProvider
-
addRefreshListener
public void addRefreshListener(com.fishlib.base.Procedure.Nullary listener) -
removeRefreshListener
public void removeRefreshListener(com.fishlib.base.Procedure.Nullary listener)
-