KIE Remote Services :: Services 6.1.0.CR2

org.kie.remote.services.jms.security
Class JmsUserGroupAdapter

java.lang.Object
  extended by 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.


Constructor Summary
JmsUserGroupAdapter(String userId, String... groups)
           
 
Method Summary
 List<String> getGroupsForUser(String userId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsUserGroupAdapter

public JmsUserGroupAdapter(String userId,
                           String... groups)
Method Detail

getGroupsForUser

public List<String> getGroupsForUser(String userId)
Specified by:
getGroupsForUser in interface org.jbpm.services.task.identity.adapter.UserGroupAdapter

KIE Remote Services :: Services 6.1.0.CR2

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.