void NodeInfoHandler::OnDeleteRequest(const Safir::Dob::EntityRequestProxy /*entityRequestProxy*/,
                                       Safir::Dob::ResponseSenderPtr    responseSender)
 {
     responseSender->Send(Safir::Dob::ErrorResponse::CreateErrorResponse
                          (Safir::Dob::ResponseGeneralErrorCodes::SafirReqErr(),
                           L"It is not possible to send delete requests on Safir::Dob::NodeStatus"));
 }
 void ProcessInfoHandler::OnUpdateRequest(const Safir::Dob::EntityRequestProxy /*entityRequestProxy*/,
                                          Safir::Dob::ResponseSenderPtr    responseSender)
 {
     responseSender->Send(Safir::Dob::ErrorResponse::CreateErrorResponse
         (Safir::Dob::ResponseGeneralErrorCodes::SafirReqErr(),
          L"It is not possible to send update requests on Safir::Dob::ProcessInfo"));
 }
    void ProcessInfoHandler::OnDeleteRequest(const Safir::Dob::EntityRequestProxy entityRequestProxy,
                                             Safir::Dob::ResponseSenderPtr    responseSender)
    {
        if (m_connection.IsCreated(entityRequestProxy.GetEntityId()))
        {
            ProcessInfoPtr procInfo = boost::static_pointer_cast<ProcessInfo>
                (m_connection.Read(entityRequestProxy.GetEntityId()).GetEntity());

            for (auto name = procInfo->ConnectionNames().begin(); name != procInfo->ConnectionNames().end(); ++name)
            {
                const ConnectionId id(Connections::Instance().NodeId(),
                    -1,  // dummy context (context is part of the connection name)
                    (Connection::CalculateIdentifier
                    (Typesystem::Utilities::ToUtf8(*name))));
                ConnectionPtr connection = Connections::Instance().GetConnection(id);

                connection->SendStopOrder();
            }
        }

        responseSender->Send(Safir::Dob::SuccessResponse::Create());
    }
void DopeApp::OnDeleteRequest(const Safir::Dob::EntityRequestProxy entityRequestProxy,
                              Safir::Dob::ResponseSenderPtr        responseSender)
{ 
    responseSender->Send(Safir::Dob::ErrorResponse::Create()); 
};
Beispiel #5
0
void Player::OnDeleteRequest(const Safir::Dob::EntityRequestProxy /*entityRequestProxy*/, Safir::Dob::ResponseSenderPtr responseSender)
{
    Safir::Dob::ErrorResponsePtr err=Safir::Dob::ErrorResponse::CreateErrorResponse(Safir::Dob::ResponseGeneralErrorCodes::SafirNoPermission(), L"");
    responseSender->Send(err);
}