Package org.dspace.content

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


        InputStream stream = zip.getInputStream(entry);
        Bitstream bs = target.createBitstream(stream);
        BitstreamFormat format = this.getFormat(context, entry.getName());
        bs.setFormat(format);
        bs.setName(entry.getName());
        bs.update();
        derivedResources.add(bs);
      }

      return derivedResources;
    }
View Full Code Here


                    if (bf != null)
                    {
                        entryBitstream.setFormat(bf);
                    }

                    entryBitstream.update();

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

                if (deposit.isMultipart() || deposit.isBinaryOnly())
View Full Code Here

                    if (bf != null)
                    {
                        bitstream.setFormat(bf);
                    }

                    bitstream.update();
                    if (result.getOriginalDeposit() == null)
                    {
                        // it may be that the original deposit is already set, in which case we
                        // shouldn't mess with it
                        result.setOriginalDeposit(bitstream);
View Full Code Here

        // Find the proper format
        BitstreamFormat bf = BitstreamFormat.findByShortDescription(c,
                formatFilter.getFormatString());
        b.setFormat(bf);
        b.update();
       
        //Set permissions on the derivative bitstream
        //- First remove any existing policies
        AuthorizeManager.removeAllPolicies(c, b);
View Full Code Here

                if (bf != null)
                {
                    bitstream.setFormat(bf);
                }

                bitstream.update();

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

        swordService.message("Original package stored as " + fn + ", in item bundle " + swordBundle);
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.