mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/mp/CurrentMissionMgrImpl.java
private synchronized void handleProgramTestedEvent(final int systemId, final String programName,
            final TestResult test, final ProgramStatus status, final String exception)
    {
        setMissionStatus(systemId, programName, status);
        setTestResult(systemId, programName, test);

        final String messageSum = "Mission Test";

        if (exception == null || exception.isEmpty())
        {
            final String messageString = "The mission %s for system 0x%08x has been tested.";
            //update with growl message
            m_GrowlUtil.createGlobalFacesMessage(FacesMessage.SEVERITY_INFO, messageSum,
                    String.format(messageString, programName, systemId));
        }
        else 
        {
            final String messageString = "The mission %s for system 0x%08x has been tested and" 
                    + " has resulted in the following error %s";
            //update with growl message
            m_GrowlUtil.createGlobalFacesMessage(FacesMessage.SEVERITY_WARN, messageSum,
                    String.format(messageString, programName, systemId, exception));
        }
        
        //push update event
        postMissionUpdateEvent();
    }
/**
     * Function that handles a {@link Program#TOPIC_PROGRAM_TESTED} event. 
     * @param systemId
     *  the id of the system on which the program was tested.
     * @param programName
     *  the name of the program that was tested
     * @param test
     *  the test result for this program
     * @param status
     *  the status of the tested program
     * @param exception
     *  if an exception has occurred then it will be the exception that was included
     *  in the mission. It will be the empty string otherwise.
     */
Function that handles a  Program#TOPIC_PROGRAM_TESTED event.
@param systemId
the id of the system on which the program was tested.
@param programName
the name of the program that was tested
@param test
the test result for this program
@param status
the status of the tested program
@param exception
if an exception has occurred then it will be the exception that was included
in the mission. It will be the empty string otherwise.
Function that handles a Program#TOPIC_PROGRAM_TESTED event . @param systemId the id of the system on which the program was tested . @param programName the name of the program that was tested @param test the test result for this program @param status the status of the tested program @param exception if an exception has occurred then it will be the exception that was included in the mission . It will be the empty string otherwise .
private synchronized void handleProgramTestedEvent(final int systemId, final String programName,
            final TestResult test, final ProgramStatus status, final String exception)
    {
        setMissionStatus(systemId, programName, status);
        setTestResult(systemId, programName, test);
        final String messageSum = "Mission Test";
        if (exception == null || exception.isEmpty())
        {
            final String messageString = "The mission %s for system 0x%08x has been tested.";
            m_GrowlUtil.createGlobalFacesMessage(FacesMessage.SEVERITY_INFO, messageSum,
                    String.format(messageString, programName, systemId));
        }
        else 
        {
            final String messageString = "The mission %s for system 0x%08x has been tested and" 
                    + " has resulted in the following error %s";
            m_GrowlUtil.createGlobalFacesMessage(FacesMessage.SEVERITY_WARN, messageSum,
                    String.format(messageString, programName, systemId, exception));
        }
        postMissionUpdateEvent();
    }
private synchronized void handleProgramTestedEvent ( final int systemId , final String programName , final TestResult test , final ProgramStatus status , final String exception ) { setMissionStatus ( systemId , programName , status ) ; setTestResult ( systemId , programName , test ) ; final String messageSum = "Mission Test" ; if ( exception == null || exception . isEmpty ( ) ) { final String messageString = "The mission %s for system 0x%08x has been tested." ; m_GrowlUtil . createGlobalFacesMessage ( FacesMessage . SEVERITY_INFO , messageSum , String . format ( messageString , programName , systemId ) ) ; } else { final String messageString = "The mission %s for system 0x%08x has been tested and" + " has resulted in the following error %s" ; m_GrowlUtil . createGlobalFacesMessage ( FacesMessage . SEVERITY_WARN , messageSum , String . format ( messageString , programName , systemId , exception ) ) ; } postMissionUpdateEvent ( ) ; }
Function that handles a {@link Program#TOPIC_PROGRAM_TESTED} event.
Function that handles a { @link Program#TOPIC_PROGRAM_TESTED } event .
//update with growl message //update with growl message //push update event