Package org.dmd.dmp.server.extended

Examples of org.dmd.dmp.server.extended.DeleteResponse


  }
 
  public DeleteResponse handleDeleteRequest(DeleteRequest request){
    request.setOriginatorID(cacheRegistration.getID());

    DeleteResponse rc = request.getResponse();
    rc.setLastResponse(false);
   
    requestTracker.processRequest(request, this);
   
    return(rc);
  }
View Full Code Here


  @Override
  public DeleteResponseDMO delete(DeleteRequestDMO deleteRequest) {
    // All requests are immediately wrapped for use on the server. This includes
    // associating the request with the originating HttpServletRequest.
    DeleteRequest   request   = new DeleteRequest(deleteRequest, getThreadLocalRequest());
    DeleteResponse  response   = null;
   
    if (request.isTrackingEnabled())
      logger.trace("Received by DMP servlet:\n" + request.toOIF());

    try {
      response = (DeleteResponse) pluginManager.getSecurityManager().validateSession(request);
     
      if (response == null){
        SessionRI session = pluginManager.getSecurityManager().getSession(request);

        response = session.handleDeleteRequest(request);
      }
    } catch (DmcValueException e) {
      response = (DeleteResponse) request.getErrorResponse();
      response.setResponseText(e.toString());
     
      logger.error(e.toString());
    }   

    return(response.getDMO());
  }
View Full Code Here

        super(new DeleteResponseDMO(mods), org.dmd.dmp.server.generated.DmpSchemaAG._DeleteResponse);
    }

    // Generated from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:470)
    public DeleteResponse getModificationRecorder(){
        DeleteResponse rc = new DeleteResponse();
        rc.setModifier(new DmcTypeModifierMV(MetaDMSAG.__modify));
        return(rc);
    }
View Full Code Here

    public DeleteResponseDMW(DeleteResponseDMO obj) {
        super(obj, org.dmd.dmp.server.generated.DmpSchemaAG._DeleteResponse);
    }

    public DeleteResponse cloneIt() {
        DeleteResponse rc = new DeleteResponse();
        rc.setDmcObject(getDMO().cloneIt());
        return(rc);
    }
View Full Code Here

      else{
        events.add(createEvent(DMPEventTypeEnum.DELETED, wrapper, request.getOriginatorID(), request.isTrackingEnabled(), request.isNotifyOriginator()));
      }
    }
   
    DeleteResponse response = null;
   
    if (errors == null){
      response = request.getResponse();
    }
    else{
      logger.error("Could not delete: " + errors.toString());
     
      response = (DeleteResponse) request.getErrorResponse();
      response.setResponseText("Could not delete: " + errors.toString());
    }
   
    // Fire back the response
    requestTracker.processResponse(response);
   
View Full Code Here

TOP

Related Classes of org.dmd.dmp.server.extended.DeleteResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.