org.dspace.content.Bitstream.setDescription()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(195)

本文整理了Java中org.dspace.content.Bitstream.setDescription()方法的一些代码示例,展示了Bitstream.setDescription()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bitstream.setDescription()方法的具体详情如下:
包路径:org.dspace.content.Bitstream
类名称:Bitstream
方法名:setDescription

Bitstream.setDescription介绍

[英]Set the description of the bitstream
[中]设置位流的描述

代码示例

代码示例来源:origin: DSpace/DSpace

System.out.println("\tSetting description for "
            + bitstreamName);
bs.setDescription(c, thisDescription);
bitstreamService.update(c, bs);

代码示例来源:origin: DSpace/DSpace

public void removeBitstream(Context context, Item item, Bitstream bitstream,
              boolean keep)
  throws SQLException, AuthorizeException, IOException {
  Bundle exempt = null;
  if (keep) {
    exempt = this.archiveBitstream(context, item, bitstream);
  }
  Iterator<Bundle> bundles = bitstream.getBundles()
                    .iterator();
  while (bundles.hasNext()) {
    Bundle bundle = bundles.next();
    if (exempt != null &&
      bundle.getID() != exempt.getID()) {
      bundles.remove();
      bundleService
        .removeBitstream(context, bundle,
                 bitstream);
    }
  }
  // there is nowhere in the metadata to say when this file was moved, so we
  // are going to drop it into the description
  SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
  String desc = bitstream.getDescription();
  String newDesc = "[Deleted on: " + sdf.format(new Date()) + "] ";
  if (desc != null) {
    newDesc += desc;
  }
  bitstream.setDescription(context, newDesc);
  bitstreamService.update(context, bitstream);
}

代码示例来源:origin: DSpace/DSpace

bs.setDescription(c, description);

代码示例来源:origin: DSpace/DSpace

newBitstream.setDescription(context, bitstream.getDescription());
newBitstream.setFormat(context, bitstream.getFormat(context));
newBitstream.setSource(context, bitstream.getSource());

代码示例来源:origin: DSpace/DSpace

bitstream.setSource(context, value);
} else if (dcField.equals("description")) {
  bitstream.setDescription(context, value);
} else if (dcField.equals("format")) {
  bitstream.setUserFormatDescription(context, value);

代码示例来源:origin: org.dspace/dspace-jspui-api

bitstream.setDescription(desc);
bitstream
    .setFormat(BitstreamFormat.find(context, formatID));

代码示例来源:origin: DSpace/DSpace

dspaceBitstream.setDescription(context, bitstream.getDescription());
if (getMimeType(bitstream.getName()) == null) {
  BitstreamFormat unknownFormat = bitstreamFormatService.findUnknown(context);

代码示例来源:origin: DSpace/DSpace

bs.setDescription(context, ce.description);

代码示例来源:origin: DSpace/DSpace

b.setSource(context, "Written by FormatFilter " + formatFilter.getClass().getName() +
    " on " + DCDate.getCurrent() + " (GMT).");
b.setDescription(context, formatFilter.getDescription());

代码示例来源:origin: DSpace/DSpace

dspaceBitstream.setDescription(context, description);

代码示例来源:origin: DSpace/DSpace

citedBitstream.setDescription(context, bitstream.getDescription());

代码示例来源:origin: DSpace/DSpace

entryBitstream.setDescription(context,
               "Original SWORD entry document");
bitstream.setDescription(context,
             "Original SWORD deposit file");

代码示例来源:origin: org.dspace/dspace-xmlui-api

bitstream.setDescription(request.getParameter("description"));

代码示例来源:origin: org.dspace/dspace-xmlui-api

bitstream.setDescription(description);

代码示例来源:origin: org.dspace/dspace-sword-api

bitstream.setDescription("SWORD deposit package");

代码示例来源:origin: DSpace/DSpace

bitstream.setDescription(context, "SWORD deposit package");

代码示例来源:origin: DSpace/DSpace

bitstream.setDescription(context,
             "Original file deposited via SWORD");

代码示例来源:origin: org.dspace/dspace-sword-api

bitstream.setDescription("Original file deposited via SWORD");

相关文章