org.kie.remote.services.jms.security
Class JmsUserGroupAdapter
java.lang.Object
org.kie.remote.services.jms.security.JmsUserGroupAdapter
- All Implemented Interfaces:
- org.jbpm.services.task.identity.adapter.UserGroupAdapter
public class JmsUserGroupAdapter
- extends Object
- implements org.jbpm.services.task.identity.adapter.UserGroupAdapter
This UserGroupAdapter is meant to be stored in the JAASUserGroupCallbackImpl's
ThreadLocal field for external UserGroupAdapter implementations.
It's necessary because the RequestMessageBean itself must run as a specific or
anonymous user (per EJB/MDB specs).
In order to make sure that a TaskService command does run with the right user/group
info, an instance of this adapter is created with the correct values and injected.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JmsUserGroupAdapter
public JmsUserGroupAdapter(String userId,
String... groups)
getGroupsForUser
public List<String> getGroupsForUser(String userId)
- Specified by:
getGroupsForUser in interface org.jbpm.services.task.identity.adapter.UserGroupAdapter
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.