private void transformSecurity(LegacyConnectionFactoryImp lcf, WeblogicConnector ra) throws Exception
{
if (ra == null || ra.getSecurity() == null || ra.getSecurity().getSecurityWorkContext() == null)
return;
SecurityWorkContext swc = ra.getSecurity().getSecurityWorkContext();
boolean mappingRequired = swc.getInboundMappingRequired();
String defaultPrincipal = swc.getCallerPrincipalDefaultMapped().getPrincipalName();
Map<String, String> userMappings = new HashMap<String, String>();
for (InboundCallerPrincipalMapping icpm : swc.getCallerPrincipalMapping())
{
userMappings.put(icpm.getEisCallerPrincipal(), icpm.getMappedCallerPrincipal().getPrincipalName());
}
List<String> defaultGroups = new ArrayList<String>();
defaultGroups.add(swc.getGroupPrincipalDefaultMapped());
Map<String, String> groupMappings = new HashMap<String, String>();
for (InboundGroupPrincipalMapping igpm : swc.getGroupPrincipalMapping())
{
groupMappings.put(igpm.getEisGroupPrincipal(), igpm.getMappedGroupPrincipal());
}
WorkManagerSecurityImpl wmsImpl = new WorkManagerSecurityImpl(mappingRequired, "FIXME", defaultPrincipal,