Beispiel #1
0
  public void deleteMember(RequestContext ctx, String id, Responder responder) throws Exception {
    parent.getResourceInterceptorManager().removeResource(this.id);
    parent.deleteSourceFile(this.id);

    responder.resourceDeleted(this.scriptFileResource);

    this.scriptFileResource = null;
  }
Beispiel #2
0
 public void deleteMember(RequestContext ctx, String id, Responder responder) throws Exception {
   Script script = scripts.get(id);
   if (script != null) {
     if (script.getScriptBuffer() != null) {
       deleteSourceFile(id);
     }
     deleteMetadataFile(id);
     deleteScriptDirectory(id);
     scripts.remove(id);
     responder.resourceDeleted(new ResourceScript(this, script));
   } else {
     responder.noSuchResource(id);
   }
 }
 @Override
 public void delete(RequestContext ctx, Responder responder) throws Exception {
   this.appRegistry.removeApplication(id());
   responder.resourceDeleted(this);
 }