private JsMessage addLinkProps(JsMessage msg )
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "addLinkProps" );
      
    // Add Link specific properties to message
    msg.setGuaranteedCrossBusLinkName( linkName );
    msg.setGuaranteedCrossBusSourceBusUUID( messageProcessor.getMessagingEngineBusUuid() );
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
       SibTr.debug(tc, "Test whether outbound userid should be set in message");                       
    // Check whether we need to override the outbound Userid
    String linkOutboundUserid = ((LinkHandler)destinationHandler).getOutboundUserid(); 
    if( linkOutboundUserid != null )
    {
      // Check whether this message was sent by the privileged 
      // Jetstream SIBServerSubject.If it was then we don't reset
      // the userid in the message
      if(!messageProcessor.getAuthorisationUtils().sentBySIBServer(msg))
      {            
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
          SibTr.debug(tc, "Set outbound userid: " + linkOutboundUserid + ", in message");           
        // Call SIB.security (ultimately) to set outbounduserid into msg
        messageProcessor.
          getAccessChecker().
          setSecurityIDInMessage(linkOutboundUserid, msg);    
        // Set the application userid (JMSXuserid)
        msg.setApiUserId(linkOutboundUserid);  
      }                      
    }           
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "addLinkProps");
     
    return msg;   
  }
private JsMessage addLinkProps ( JsMessage msg ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addLinkProps" ) ; msg . setGuaranteedCrossBusLinkName ( linkName ) ; msg . setGuaranteedCrossBusSourceBusUUID ( messageProcessor . getMessagingEngineBusUuid ( ) ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Test whether outbound userid should be set in message" ) ; String linkOutboundUserid = ( ( LinkHandler ) destinationHandler ) . getOutboundUserid ( ) ; if ( linkOutboundUserid != null ) { if ( ! messageProcessor . getAuthorisationUtils ( ) . sentBySIBServer ( msg ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Set outbound userid: " + linkOutboundUserid + ", in message" ) ; messageProcessor . getAccessChecker ( ) . setSecurityIDInMessage ( linkOutboundUserid , msg ) ; msg . setApiUserId ( linkOutboundUserid ) ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "addLinkProps" ) ; return msg ; }
@param jsMsg
@return jsMsg with link properties added