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

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

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

Bundle.removeBitstream介绍

[英]Remove the given bitstream from this bundles bitstream list
[中]从此束位流列表中删除给定的位流

代码示例

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

bundle.removeBitstream(bitstream);

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

@Override
public void delete(Context context, Bitstream bitstream) throws SQLException, AuthorizeException {
  // changed to a check on delete
  // Check authorisation
  authorizeService.authorizeAction(context, bitstream, Constants.DELETE);
  log.info(LogManager.getHeader(context, "delete_bitstream",
                 "bitstream_id=" + bitstream.getID()));
  context.addEvent(new Event(Event.DELETE, Constants.BITSTREAM, bitstream.getID(),
                String.valueOf(bitstream.getSequenceID()), getIdentifiers(context, bitstream)));
  // Remove bitstream itself
  bitstream.setDeleted(true);
  update(context, bitstream);
  //Remove our bitstream from all our bundles
  final List<Bundle> bundles = bitstream.getBundles();
  for (Bundle bundle : bundles) {
    bundle.removeBitstream(bitstream);
  }
  //Remove all bundles from the bitstream object, clearing the connection in 2 ways
  bundles.clear();
  // Remove policies only after the bitstream has been updated (otherwise the current user has not WRITE rights)
  authorizeService.removeAllPolicies(context, bitstream);
}

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

Bitstream bitstream = Bitstream.find(context,bitstreamID);
bundle.removeBitstream(bitstream);

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

bundle.removeBitstream(bitstream);
bitstream.getBundles().remove(bundle);

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

for (int i = 0; i < bundles.length; i++)
  bundles[i].removeBitstream(bs);
  bundles[i].update();

相关文章