Examples of DeleteCommand


Examples of org.exoplatform.services.jcr.webdav.command.DeleteCommand

            if (lockTokenHeader.contains(WebDavConst.Lock.OPAQUE_LOCK_TOKEN))
            {
               lockTokenHeader = lockTokenHeader.split(":")[1];
            }
         }
         return new DeleteCommand().delete(session, path(repoPath), lockTokenHeader);
      }
      catch (NoSuchWorkspaceException exc)
      {
         log.error("NoSuchWorkspaceException " + exc.getMessage(), exc);
         return Response.status(HTTPStatus.NOT_FOUND).entity(exc.getMessage()).build();
View Full Code Here

Examples of org.exoplatform.services.jcr.webdav.command.DeleteCommand

            if (lockTokenHeader.contains(WebDavConst.Lock.OPAQUE_LOCK_TOKEN))
            {
               lockTokenHeader = lockTokenHeader.split(":")[1];
            }
         }
         return new DeleteCommand().delete(session, path(repoPath), lockTokenHeader);
      }
      catch (NoSuchWorkspaceException exc)
      {
         log.error("NoSuchWorkspaceException " + exc.getMessage(), exc);
         return Response.status(HTTPStatus.NOT_FOUND).entity(exc.getMessage()).build();
View Full Code Here

Examples of org.exoplatform.services.jcr.webdav.command.DeleteCommand

            if (lockTokenHeader.contains(WebDavConst.Lock.OPAQUE_LOCK_TOKEN))
            {
               lockTokenHeader = lockTokenHeader.split(":")[1];
            }
         }
         return new DeleteCommand().delete(session, path(repoPath), lockTokenHeader);
      }
      catch (NoSuchWorkspaceException exc)
      {
         log.error("NoSuchWorkspaceException " + exc.getMessage(), exc);
         return Response.status(HTTPStatus.NOT_FOUND).entity(exc.getMessage()).build();
View Full Code Here

Examples of org.exoplatform.services.jcr.webdav.command.DeleteCommand

         Session session = session(repoName, workspaceName(repoPath), lockTokens(lockTokenHeader, ifHeader));
         if (lockTokenHeader != null)
         {
            lockTokenHeader = lockTokenHeader.substring(1, lockTokenHeader.length() - 1);
         }
         return new DeleteCommand().delete(session, path(repoPath), lockTokenHeader);
      }
      catch (NoSuchWorkspaceException exc)
      {
         log.error("NoSuchWorkspaceException " + exc.getMessage(), exc);
         return Response.status(HTTPStatus.NOT_FOUND).entity(exc.getMessage()).build();
View Full Code Here

Examples of org.exoplatform.services.jcr.webdav.command.DeleteCommand

         Session session = session(repoName, workspaceName(repoPath), lockTokens(lockTokenHeader, ifHeader));
         if (lockTokenHeader != null)
         {
            lockTokenHeader = lockTokenHeader.substring(1, lockTokenHeader.length() - 1);
         }
         return new DeleteCommand().delete(session, path(repoPath), lockTokenHeader);
      }
      catch (NoSuchWorkspaceException exc)
      {
         log.error("NoSuchWorkspaceException " + exc.getMessage(), exc);
         return Response.status(HTTPStatus.NOT_FOUND).build();
View Full Code Here

Examples of org.gvt.command.DeleteCommand

      EditPart childEditPart = (EditPart) selectedObjects.next();
      // if selected one is a node or compound DeleteCommand is called
      if (childEditPart instanceof ChsNodeEditPart)
      {
        NodeModel node = (NodeModel) childEditPart.getModel();
        DeleteCommand command = new DeleteCommand();
        command.setChild(node);
        EditPart parent = childEditPart.getParent();
        command.setParent((CompoundModel) parent.getModel());
        command.execute();
      }
      // else if it is an edge, DeleteConnectionCommand is called
      else if (childEditPart instanceof ChsEdgeEditPart)
      {
        {
          DeleteConnectionCommand command
            = new DeleteConnectionCommand();
          command.setConnectionModel(childEditPart.getModel());
          command.execute();
        }
      }
    }
  }
View Full Code Here

Examples of org.gvt.command.DeleteCommand

  extends org.eclipse.gef.editpolicies.ComponentEditPolicy
{
  protected Command createDeleteCommand(GroupRequest request)
  {
    Object parent = getHost().getParent().getModel();
    DeleteCommand deleteCmd = new DeleteCommand();
    deleteCmd.setParent((CompoundModel) parent);
    deleteCmd.setChild((NodeModel) getHost().getModel());
    return deleteCmd;
  }
View Full Code Here

Examples of org.locationtech.udig.printing.ui.internal.editor.commands.DeleteCommand

*/
public class PageElementEditPolicy extends ComponentEditPolicy {

    protected Command createDeleteCommand( GroupRequest deleteRequest ) {
      Object parent = getHost().getParent().getModel();
      DeleteCommand deleteCmd = new DeleteCommand();
      deleteCmd.setParent((Page)parent);
      deleteCmd.setChild((Box)getHost().getModel());
      return deleteCmd;
    }
View Full Code Here

Examples of org.neo4j.index.impl.lucene.LuceneCommand.DeleteCommand

    }
   
    <T extends PropertyContainer> void delete( LuceneIndex<T> index )
    {
        txData.put( index.getIdentifier(), new DeletedTxDataBoth( index ) );
        queueCommand( new DeleteCommand( index.getIdentifier() ) );
    }
View Full Code Here

Examples of org.openstreetmap.josm.command.DeleteCommand

            }
        }

        //Delete all relations in the list
        relFix.remove(relationToKeep);
        commands.add(new DeleteCommand(relFix));
        return new SequenceCommand(tr("Delete duplicate relations"), commands);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.