mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/asset/AssetMessageService.java
private Message removeAsset(final AssetNamespace message, final TerraHarvestMessage request, 
            final RemoteChannel channel) throws IOException
    {
        final DeleteRequestData removeRequest = DeleteRequestData.parseFrom(message.getData());

        final Asset asset = m_AssetDirectoryService.getAssetByUuid(
                SharedMessageUtils.convertProtoUUIDtoUUID(removeRequest.getUuid()));
        asset.delete();
        m_MessageFactory.createAssetResponseMessage(request, 
                    AssetMessageType.DeleteResponse, null).queue(channel);
        return removeRequest;
    }
/**
     * Method responsible for handling a remote request to remove an asset from the directory.   
     * @param message
     *      remove asset request message containing the UUID of the asset to be removed from the directory
     * @param request
     *      entire remote message for the request
     * @param channel 
     *      channel to use for sending a response
     * @return
     *      the data message for this request
     * @throws IOException 
     *      if message cannot be parsed  
     */
Method responsible for handling a remote request to remove an asset from the directory.
Method responsible for handling a remote request to remove an asset from the directory .
private Message removeAsset(final AssetNamespace message, final TerraHarvestMessage request, 
            final RemoteChannel channel) throws IOException
    {
        final DeleteRequestData removeRequest = DeleteRequestData.parseFrom(message.getData());
        final Asset asset = m_AssetDirectoryService.getAssetByUuid(
                SharedMessageUtils.convertProtoUUIDtoUUID(removeRequest.getUuid()));
        asset.delete();
        m_MessageFactory.createAssetResponseMessage(request, 
                    AssetMessageType.DeleteResponse, null).queue(channel);
        return removeRequest;
    }
private Message removeAsset ( final AssetNamespace message , final TerraHarvestMessage request , final RemoteChannel channel ) throws IOException { final DeleteRequestData removeRequest = DeleteRequestData . parseFrom ( message . getData ( ) ) ; final Asset asset = m_AssetDirectoryService . getAssetByUuid ( SharedMessageUtils . convertProtoUUIDtoUUID ( removeRequest . getUuid ( ) ) ) ; asset . delete ( ) ; m_MessageFactory . createAssetResponseMessage ( request , AssetMessageType . DeleteResponse , null ) . queue ( channel ) ; return removeRequest ; }
Method responsible for handling a remote request to remove an asset from the directory.
Method responsible for handling a remote request to remove an asset from the directory .