Package org.dspace.content

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


      boolean ignoreAuth = context.ignoreAuthorization();
      context.setIgnoreAuthorization(true);

      bs.update();
      original.update();
      item.update();

      // reset the ignore authorisation
      context.setIgnoreAuthorization(ignoreAuth);

      DepositResult result = new DepositResult();
View Full Code Here


                MetadataSchema schema = MetadataSchema.find(context,field.getSchemaID());
                item.addMetadata(schema.getName(),field.getElement(), field.getQualifier(), lang, value);
            }
        }

        item.update();

        // Now work out what next page is
        showNextPage(context, request, response, collection, DEFAULT_ITEM);

        context.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

      // 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);
      installedItem.update();
      context.setIgnoreAuthorization(ignore);

      // for some reason, DSpace will not give you the handle automatically,
      // so we have to look it up
      String handle = HandleManager.findHandle(context, installedItem);
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);
      installedItem.update();
      context.setIgnoreAuthorization(ignore);

      // for some reason, DSpace will not give you the handle automatically,
      // so we have to look it up
      String handle = HandleManager.findHandle(context, installedItem);
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

                    }
                    verboseDescription.append("Original deposit stored as " + fn + ", in item bundle " + swordBundle);
                }

                swordBundle.update();
                item.update();

                // now reset the context ignore authorisation
                context.setIgnoreAuthorization(ignoreAuth);
            }
        }
View Full Code Here

                }

                bitstream.update();

                swordBundle.update();
                item.update();

        swordService.message("Original package stored as " + fn + ", in item bundle " + swordBundle);

        // now reset the context ignore authorisation
        context.setIgnoreAuthorization(ignoreAuth);
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.