org.dataconservancy.ui.model.DataItem.setDepositorId()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(98)

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

DataItem.setDepositorId介绍

[英]Sets the depositor of the dataset.
[中]设置数据集的存款人。

代码示例

代码示例来源:origin: org.dataconservancy.dcs/dcs-ui-model-builder-xstream

final String personId = reader.getAttribute(ATTR_REF);
if (!isEmptyOrNull(personId)) {
  dataItemObject.setDepositorId(personId.trim());

代码示例来源:origin: org.dataconservancy.model/dcs-ui-model-builder-xstream

final String personId = reader.getAttribute(ATTR_REF);
if (!isEmptyOrNull(personId)) {
  dataItemObject.setDepositorId(personId.trim());

代码示例来源:origin: org.dataconservancy.model/dcs-ui-model-builder-xstream

final String personId = reader.getAttribute(ATTR_REF);
if (!isEmptyOrNull(personId)) {
  dataItemObject.setDepositorId(personId.trim());

代码示例来源:origin: org.dataconservancy.dcs/dcs-ui-model-builder-xstream

final String personId = reader.getAttribute(ATTR_REF);
if (!isEmptyOrNull(personId)) {
  dataItemObject.setDepositorId(personId.trim());

代码示例来源:origin: org.dataconservancy.packaging/dcs-pkg-ingest-services

/**
 * Take an attribute set representing a data item and populate fields in the corresponding
 * business object
 */
private void hydrateDataItem(AttributeSet as, IngestWorkflowState state, Map<String,BusinessObject> objects, Map<String,String> parents,
    String localId, DataItem di) throws StatefulIngestServiceException {
  di.setName(get_value(as, Metadata.DATA_ITEM_TITLE));
  di.setDescription(get_value(as, Metadata.DATA_ITEM_DESCRIPTION));
  di.setAlternateIds(get_values(as, Metadata.DATA_ITEM_IDENTIFIER)); 
  di.setCitableLocator(get_values(as, Metadata.DATA_ITEM_CITABLE_LOCATOR));
  di.setCreatedDate(get_datetime(as, Metadata.DATA_ITEM_CREATED, true));
  di.setCreators(get_contact_info(as, Metadata.DATA_ITEM_CREATOR));
  di.setContactInfos(get_contact_info(as, Metadata.DATA_ITEM_CONTACT_INFO));
  di.setDepositorId(state.getIngestUserId());
  di.setContentModel(get_values(as, Metadata.DATA_ITEM_CONTENT_MODEL));       
  di.setModifiedDate(get_datetime(as, Metadata.DATA_ITEM_MODIFIED, true));
  
  di.setParentId(get_parent_business_id(localId, parents, objects));
}

相关文章