mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/asset/AssetMgrImpl.java
private void processAssetActivatonEvents(final String topic, final AssetModel model)
    {
        boolean doPost = true;

        //process events that require a model
        switch (topic)
        {
            case Asset.TOPIC_ACTIVATION_COMPLETE + RemoteConstants.REMOTE_TOPIC_SUFFIX:
            {
                model.setActiveStatus(AssetActiveStatus.ACTIVATED);
                break;
            }
            case Asset.TOPIC_DEACTIVATION_COMPLETE + RemoteConstants.REMOTE_TOPIC_SUFFIX:
            {
                model.setActiveStatus(AssetActiveStatus.DEACTIVATED);
                break;
            }
            case Asset.TOPIC_WILL_BE_ACTIVATED + RemoteConstants.REMOTE_TOPIC_SUFFIX:
            {
                model.setActiveStatus(AssetActiveStatus.ACTIVATING);
                break;
            }
            case Asset.TOPIC_WILL_BE_DEACTIVATED + RemoteConstants.REMOTE_TOPIC_SUFFIX:
            {
                model.setActiveStatus(AssetActiveStatus.DEACTIVATING);
                break;
            }
            case Asset.TOPIC_ACTIVATION_FAILED + RemoteConstants.REMOTE_TOPIC_SUFFIX:
            {
                model.setActiveStatus(AssetActiveStatus.DEACTIVATED);
                break;
            }
            case Asset.TOPIC_DEACTIVATION_FAILED + RemoteConstants.REMOTE_TOPIC_SUFFIX:
            {
                model.setActiveStatus(AssetActiveStatus.ACTIVATED);
                break;
            }
            default:
            {
                //different topic which is not presently handled by this bean
                doPost = false;
            }
        }

        if (doPost)
        {
            postAssetActiveStatusUpdate(model);
        }
    }
/**
     * Process asset activation events.
     * @param topic
     *      the topic of the event
     * @param model
     *      the model to update
     */
Process asset activation events.
@param topic
the topic of the event
@param model
the model to update
Process asset activation events . @param topic the topic of the event @param model the model to update
private void processAssetActivatonEvents(final String topic, final AssetModel model)
    {
        boolean doPost = true;
        switch (topic)
        {
            case Asset.TOPIC_ACTIVATION_COMPLETE + RemoteConstants.REMOTE_TOPIC_SUFFIX:
            {
                model.setActiveStatus(AssetActiveStatus.ACTIVATED);
                break;
            }
            case Asset.TOPIC_DEACTIVATION_COMPLETE + RemoteConstants.REMOTE_TOPIC_SUFFIX:
            {
                model.setActiveStatus(AssetActiveStatus.DEACTIVATED);
                break;
            }
            case Asset.TOPIC_WILL_BE_ACTIVATED + RemoteConstants.REMOTE_TOPIC_SUFFIX:
            {
                model.setActiveStatus(AssetActiveStatus.ACTIVATING);
                break;
            }
            case Asset.TOPIC_WILL_BE_DEACTIVATED + RemoteConstants.REMOTE_TOPIC_SUFFIX:
            {
                model.setActiveStatus(AssetActiveStatus.DEACTIVATING);
                break;
            }
            case Asset.TOPIC_ACTIVATION_FAILED + RemoteConstants.REMOTE_TOPIC_SUFFIX:
            {
                model.setActiveStatus(AssetActiveStatus.DEACTIVATED);
                break;
            }
            case Asset.TOPIC_DEACTIVATION_FAILED + RemoteConstants.REMOTE_TOPIC_SUFFIX:
            {
                model.setActiveStatus(AssetActiveStatus.ACTIVATED);
                break;
            }
            default:
            {
                doPost = false;
            }
        }
        if (doPost)
        {
            postAssetActiveStatusUpdate(model);
        }
    }
private void processAssetActivatonEvents ( final String topic , final AssetModel model ) { boolean doPost = true ; switch ( topic ) { case Asset . TOPIC_ACTIVATION_COMPLETE + RemoteConstants . REMOTE_TOPIC_SUFFIX : { model . setActiveStatus ( AssetActiveStatus . ACTIVATED ) ; break ; } case Asset . TOPIC_DEACTIVATION_COMPLETE + RemoteConstants . REMOTE_TOPIC_SUFFIX : { model . setActiveStatus ( AssetActiveStatus . DEACTIVATED ) ; break ; } case Asset . TOPIC_WILL_BE_ACTIVATED + RemoteConstants . REMOTE_TOPIC_SUFFIX : { model . setActiveStatus ( AssetActiveStatus . ACTIVATING ) ; break ; } case Asset . TOPIC_WILL_BE_DEACTIVATED + RemoteConstants . REMOTE_TOPIC_SUFFIX : { model . setActiveStatus ( AssetActiveStatus . DEACTIVATING ) ; break ; } case Asset . TOPIC_ACTIVATION_FAILED + RemoteConstants . REMOTE_TOPIC_SUFFIX : { model . setActiveStatus ( AssetActiveStatus . DEACTIVATED ) ; break ; } case Asset . TOPIC_DEACTIVATION_FAILED + RemoteConstants . REMOTE_TOPIC_SUFFIX : { model . setActiveStatus ( AssetActiveStatus . ACTIVATED ) ; break ; } default : { doPost = false ; } } if ( doPost ) { postAssetActiveStatusUpdate ( model ) ; } }
Process asset activation events.
Process asset activation events .
//process events that require a model //different topic which is not presently handled by this bean