Package org.openiam.common.beans.mq
Class AuthManagerMQService
- java.lang.Object
-
- org.openiam.common.beans.mq.AbstractRabbitMQService
-
- org.openiam.common.beans.mq.AuthManagerMQService
-
@Component public class AuthManagerMQService extends AbstractRabbitMQService
-
-
Field Summary
-
Fields inherited from class org.openiam.common.beans.mq.AbstractRabbitMQService
rabbitMQSender
-
-
Constructor Summary
Constructors Constructor Description AuthManagerMQService()
-
Method Summary
-
Methods inherited from class org.openiam.common.beans.mq.AbstractRabbitMQService
crudRequest, idRequest
-
-
-
-
Method Detail
-
refreshCache
public Response refreshCache()
This method should be called only by test methods which need the authorizaiton manager to be refreshed- Returns:
Response
with success status. back compatibility. this message is async and doesn't return real status
-
getCachedEntitlementsForUser
public Set<AuthorizationResource> getCachedEntitlementsForUser(String userId)
-
showOnlyVisibleObjects
@Cacheable(value="organizations", key="{ #userId }") public boolean showOnlyVisibleObjects(String userId)
-
getRolesForUser
public Set<RoleAuthorizationRight> getRolesForUser(String userId)
-
getGroupsForUser
public Set<GroupAuthorizationRight> getGroupsForUser(String userId)
-
getOrganizationsForUser
public Set<OrganizationAuthorizationRight> getOrganizationsForUser(String userId)
-
getEntitlementMap
public Map<String,Boolean> getEntitlementMap(String userId, Set<String> resourceIds, boolean expectOAuthScopes)
-
isMemberOfOrganization
public boolean isMemberOfOrganization(String userId, String organizationId, String rightId)
-
invalidateUserEntitlementsFromCache
public void invalidateUserEntitlementsFromCache(String userId)
-
markUserAsEntitlementsLoadingInProgress
public void markUserAsEntitlementsLoadingInProgress(String userId, boolean inProgress)
-
-