@ Override public void getUsersForGroup ( List < String > grpMbrAttrs , int countLimit ) throws WIMException { String securityName = null ; try { securityName = getSecurityName ( false ) ; List < String > returnNames = urBridge . getUsersForGroup ( securityName , countLimit ) . getList ( ) ; for ( int j = 0 ; j < returnNames . size ( ) ; j ++ ) { Root fakeRoot = new Root ( ) ; PersonAccount memberDO = new PersonAccount ( ) ; fakeRoot . getEntities ( ) . add ( memberDO ) ; IdentifierType identifier = new IdentifierType ( ) ; memberDO . setIdentifier ( identifier ) ; URBridgeEntityFactory osFactory = new URBridgeEntityFactory ( ) ; URBridgeEntity osEntity = osFactory . createObject ( memberDO , urBridge , attrMap , baseEntryName , entityConfigMap ) ; osEntity . setSecurityNameProp ( returnNames . get ( j ) ) ; osEntity . populateEntity ( grpMbrAttrs ) ; osEntity . setRDNPropValue ( returnNames . get ( j ) ) ; ( ( Group ) entity ) . getMembers ( ) . add ( memberDO ) ; } } catch ( Exception e ) { throw new WIMApplicationException ( WIMMessageKey . ENTITY_GET_FAILED , Tr . formatMessage ( tc , WIMMessageKey . ENTITY_GET_FAILED , WIMMessageHelper . generateMsgParms ( securityName , e . toString ( ) ) ) ) ; } }
Get the groups for the user and add the specified attributes to each of the groups .