Package org.dspace.content

Examples of org.dspace.content.Item.update()


                // Add to item as a DC field
                if(provenance != null){
                    myitem.addMetadata(MetadataSchema.DC_SCHEMA, "description", "provenance", "en", provenance);
                }
                myitem.update();

//            TaskLog tasklog = TaskLog.create(c, wi);
//            tasklog.update();

                // convert into personal workspace
View Full Code Here


                if (ConfigurationManager.getBooleanProperty("cc.submit.addBitstream"))
                {
                  CreativeCommons.removeLicense(context, item);
                }
                removeRequiredAttributes(session);
                item.update();
                context.commit();
            }
          return STATUS_COMPLETE;
        }
        else if (buttonPressed.startsWith(PROGRESS_BAR_PREFIX) || buttonPressed.equals(PREVIOUS_BUTTON))
View Full Code Here

                }
                if (ConfigurationManager.getBooleanProperty("cc.submit.addBitstream"))
                {
                  CreativeCommons.removeLicense(context, item);
                }
          item.update();
          context.commit();
          removeRequiredAttributes(session);
        }
        return STATUS_COMPLETE;
      }
View Full Code Here

          CreativeCommons.setLicenseRDF(context, item, ccLookup.getRdf());
       
        if (ConfigurationManager.getBooleanProperty("cc.submit.setname")) {
          nameField.addItemValue(item, ccLookup.getLicenseName());
        }
        item.update();
        context.commit();
        removeRequiredAttributes(session);
        session.removeAttribute("inProgress");
      }
      else
View Full Code Here

                bf = FormatIdentifier.guessFormat(context, b);
                b.setFormat(bf);

                // Update to DB
                b.update();
                item.update();

                if ((bf != null) && (bf.isInternal()))
                {
                    log.warn("Attempt to upload file format marked as internal system use only");
                    backoutBitstream(subInfo, b, item);
View Full Code Here

//        }
        item.setDiscoverable(true);
        if(request.getParameter("private_option")!=null){
            item.setDiscoverable(false);
        }
        item.update();
        context.commit();

        return STATUS_COMPLETE;
    }
View Full Code Here

      // authorisation briefly, because although the user may be
      // able to add stuff to the repository, they may not have
      // WRITE permissions on the archive.
      boolean ignore = context.ignoreAuthorization();
      context.setIgnoreAuthorization(true);
      item.update();
      context.setIgnoreAuthorization(ignore);

      verboseDescription.append("Ingest successful");
      verboseDescription.append("Item created with internal identifier: " + item.getID());
View Full Code Here

        case CONFIRM_PRIVATING:

            // Withdraw the item
            item.setDiscoverable(false);
            item.update();
            JSPManager.showJSP(request, response, "/tools/get-item-id.jsp");
            context.complete();

            break;
View Full Code Here

            break;

        case PUBLICIZE:
            item.setDiscoverable(true);
            item.update();
            JSPManager.showJSP(request, response, "/tools/get-item-id.jsp");
            context.complete();

            break;
               
View Full Code Here

            // Identify the format
            BitstreamFormat bf = FormatIdentifier.guessFormat(context, b);
            b.setFormat(bf);
            b.update();

            item.update();

            // Back to edit form
            showEditForm(context, request, response, item);

            // Remove temp file
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.