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

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

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

DataItem.setCreatedDate介绍

[英]Set the date of the dataset creation
[中]设置数据集创建的日期

代码示例

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

reader.moveDown();
  createdDate = (DateTime) context.convertAnother(createdDate, DateTime.class);
  dataItemObject.setCreatedDate(createdDate);
  reader.moveUp();
} else if (ename.equals(E_MODIFIED_DATE)) {

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

reader.moveDown();
  createdDate = (DateTime) context.convertAnother(createdDate, DateTime.class);
  dataItemObject.setCreatedDate(createdDate);
  reader.moveUp();
} else if (ename.equals(E_MODIFIED_DATE)) {

代码示例来源:origin: org.dataconservancy.frontend/dcs-ui-test-support-model

dataItemOne.setDepositDate(new DateTime(2012, 4, 24, 0, 0));
dataItemOne.setParentId(collectionWithData.getId());
dataItemOne.setCreatedDate(new DateTime(2012, 1, 1, 0, 0));
dataItemOne.setModifiedDate(new DateTime(2012, 2, 2, 0, 0));
dataItemTwo.setCreatedDate(new DateTime(2013, 5, 5, 0, 0));
dataItemTwo.setModifiedDate(new DateTime(2013, 6, 6, 0, 0));

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

dataItemOne.setDepositDate(new DateTime(2012, 4, 24, 0, 0));
dataItemOne.setParentId(collectionWithData.getId());
dataItemOne.setCreatedDate(new DateTime(2012, 1, 1, 0, 0));
dataItemOne.setModifiedDate(new DateTime(2012, 2, 2, 0, 0));
dataItemTwo.setCreatedDate(new DateTime(2013, 5, 5, 0, 0));
dataItemTwo.setModifiedDate(new DateTime(2013, 6, 6, 0, 0));

代码示例来源: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));
}

相关文章