mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/utils/GrowlMessageUtil.java
private int severityToLogLevel(final FacesMessage.Severity severity)
    {
        final int ordinal = severity.getOrdinal();
        if (ordinal == FacesMessage.SEVERITY_WARN.getOrdinal())
        {
            return LogService.LOG_WARNING;
        }
        else if (ordinal == FacesMessage.SEVERITY_ERROR.getOrdinal() || ordinal == FacesMessage.SEVERITY_FATAL.
            getOrdinal())
        {
            return LogService.LOG_ERROR;
        }
        else
        {
            return LogService.LOG_INFO;
        }
    }
/**
     * Correlate between the {@link javax.faces.application.FacesMessage} severity levels and 
     * {@link org.osgi.service.log.LogService} logging levels.
     * @param severity
     *     the severity set for the 'growl' message
     * @return
     *     integer value for the corresponding OSGi log service level    
     */
Correlate between the  javax.faces.application.FacesMessage severity levels and
org.osgi.service.log.LogService logging levels.
@param severity
the severity set for the 'growl' message
@return
integer value for the corresponding OSGi log service level
Correlate between the javax . faces . application . FacesMessage severity levels and org . osgi . service . log . LogService logging levels . @param severity the severity set for the ' growl ' message @return integer value for the corresponding OSGi log service level
private int severityToLogLevel(final FacesMessage.Severity severity)
    {
        final int ordinal = severity.getOrdinal();
        if (ordinal == FacesMessage.SEVERITY_WARN.getOrdinal())
        {
            return LogService.LOG_WARNING;
        }
        else if (ordinal == FacesMessage.SEVERITY_ERROR.getOrdinal() || ordinal == FacesMessage.SEVERITY_FATAL.
            getOrdinal())
        {
            return LogService.LOG_ERROR;
        }
        else
        {
            return LogService.LOG_INFO;
        }
    }
private int severityToLogLevel ( final FacesMessage . Severity severity ) { final int ordinal = severity . getOrdinal ( ) ; if ( ordinal == FacesMessage . SEVERITY_WARN . getOrdinal ( ) ) { return LogService . LOG_WARNING ; } else if ( ordinal == FacesMessage . SEVERITY_ERROR . getOrdinal ( ) || ordinal == FacesMessage . SEVERITY_FATAL . getOrdinal ( ) ) { return LogService . LOG_ERROR ; } else { return LogService . LOG_INFO ; } }
Correlate between the {@link javax.faces.application.FacesMessage} severity levels and
 {@link org.osgi.service.log.LogService} logging levels.
Correlate between the { @link javax . faces . application . FacesMessage } severity levels and { @link org . osgi . service . log . LogService } logging levels .