Package org.dspace.content

Examples of org.dspace.content.WorkspaceItem.deleteAll()


      // first figure out if there's anything we need to do about the workflow/workspace state
      WorkflowTools wft = new WorkflowTools();
      if (wft.isItemInWorkspace(swordContext.getContext(), item))
      {
        WorkspaceItem wsi = wft.getWorkspaceItem(context, item);
        wsi.deleteAll();
      }
      else if (wft.isItemInWorkflow(context, item))
      {
        InProgressSubmission wfi = wft.getWorkflowItem(context, item);
        wfi.deleteWrapper();
View Full Code Here


        {
            // User wants to cancel and remove
            // Cancellation page only applies to workspace items
            WorkspaceItem wi = (WorkspaceItem) subInfo.getSubmissionItem();

            wi.deleteAll();

            JSPManager.showJSP(request, response,
                    "/submit/cancelled-removed.jsp");

            context.complete();
View Full Code Here

  {
    if (request.getParameter("submit_remove") != null)
    {
      // If they selected to remove the item then delete everything.
      WorkspaceItem workspace = findWorkspace(context,id);
      workspace.deleteAll();
          context.commit();
    }
  }
 
View Full Code Here

            for (int workflowIdentifier : workflowIdentifiers) {
                XmlWorkflowItem workflowItem = XmlWorkflowItem.find(context, workflowIdentifier);
                if (workflowItem != null) {
                    WorkspaceItem workspaceItem = XmlWorkflowManager.sendWorkflowItemBackSubmission(context, workflowItem, context.getCurrentUser(), "Item sent back to the submisson process by admin", null);
                    //Delete the workspaceItem
                    workspaceItem.deleteAll();
                }
            }
        }

        return null;
View Full Code Here

            // then delete the submission if they reject the license!
            if (!subInfo.isInWorkflow()
                    && (SubmissionController.getStepReached(subInfo) <= SubmissionController.FIRST_STEP))
            {
                WorkspaceItem wi = (WorkspaceItem) subInfo.getSubmissionItem();
                wi.deleteAll();

                // commit changes
                context.commit();
            }
View Full Code Here

            // then delete the submission if they reject the license!
            if (!subInfo.isInWorkflow()
                    && (SubmissionController.getStepReached(subInfo) <= SubmissionController.FIRST_STEP))
            {
                WorkspaceItem wi = (WorkspaceItem) subInfo.getSubmissionItem();
                wi.deleteAll();

                // commit changes
                context.commit();
            }
View Full Code Here

        {
            // User has clicked on "delete"
            log.info(LogManager.getHeader(context, "remove_submission",
                    "workspace_item_id=" + workspaceItem.getID() + ",item_id="
                            + workspaceItem.getItem().getID()));
            workspaceItem.deleteAll();
            showMainPage(context, request, response);
            context.complete();
        }
        else
        {
View Full Code Here

      {
          for (String workspaceID : workspaceIDs)
          {
            // If they selected to remove the item then delete everything.
          WorkspaceItem workspaceItem = WorkspaceItem.find(context, Integer.valueOf(workspaceID));
          workspaceItem.deleteAll();
          }
          context.commit();
      }
   
        return null;
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.