本文整理了Java中org.dataconservancy.ui.model.DataItem.getDepositDate()
方法的一些代码示例,展示了DataItem.getDepositDate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataItem.getDepositDate()
方法的具体详情如下:
包路径:org.dataconservancy.ui.model.DataItem
类名称:DataItem
方法名:getDepositDate
[英]Gets the date of the deposit
[中]获取存款的日期
代码示例来源:origin: org.dataconservancy.ui/dcs-ui-util
if (one.getDepositDate() == null && two.getDepositDate() == null) {
return 0;
if (one.getDepositDate() == null) {
return -1;
if (two.getDepositDate() == null) {
return 1;
return two.getDepositDate().compareTo(one.getDepositDate());
代码示例来源:origin: org.dataconservancy.mhf/dcs-mhf-finders-impl
@Override
protected MetadataAttributeSet findSystemMetadata(BusinessObject bo) {
checkObjectType(bo);
final DataItem dataItem = (DataItem) bo;
final MetadataAttributeSet attributeSet = super.findSystemMetadata(dataItem);
if (dataItem.getDepositDate() != null) {
attributeSet.addAttribute(new MetadataAttribute(MetadataAttributeName.DEPOSIT_DATE,
dataItem.getDepositDate().getClass().getSimpleName(),
String.valueOf(dataItem.getDepositDate())));
}
//retrieve depositor id
if (dataItem.getDepositorId() != null) {
attributeSet.addAttribute(new MetadataAttribute(MetadataAttributeName.DEPOSITOR_ID,
dataItem.getDepositorId().getClass().getSimpleName(),
dataItem.getDepositorId()));
}
return attributeSet;
}
代码示例来源:origin: org.dataconservancy.dcs/dcs-mhf-finders-impl
@Override
protected MetadataAttributeSet findSystemMetadata(BusinessObject bo) {
checkObjectType(bo);
final DataItem dataItem = (DataItem) bo;
final MetadataAttributeSet attributeSet = super.findSystemMetadata(dataItem);
if (dataItem.getDepositDate() != null) {
attributeSet.addAttribute(new MetadataAttribute(MetadataAttributeName.DEPOSIT_DATE,
dataItem.getDepositDate().getClass().getSimpleName(),
String.valueOf(dataItem.getDepositDate())));
}
//retrieve depositor id
if (dataItem.getDepositorId() != null) {
attributeSet.addAttribute(new MetadataAttribute(MetadataAttributeName.DEPOSITOR_ID,
dataItem.getDepositorId().getClass().getSimpleName(),
dataItem.getDepositorId()));
}
return attributeSet;
}
代码示例来源:origin: org.dataconservancy.frontend/dcs-ui-services-impl
countStructure.get(depositor).addDeposit(ds.getDepositDate());
} else {
countStructure.put(depositor, new DataItemCompressionGroup(ds.getDepositDate()));
代码示例来源:origin: org.dataconservancy.ui/dcs-ui-services-impl
countStructure.get(depositor).addDeposit(ds.getDepositDate());
} else {
countStructure.put(depositor, new DataItemCompressionGroup(ds.getDepositDate()));
代码示例来源:origin: org.dataconservancy.frontend/dcs-ui-services-impl
if (item.getDepositDate() == null) {
item.setDepositDate(DateTime.now());
代码示例来源:origin: org.dataconservancy.model/dcs-ui-model
/**
* Constructs a DataItem, initializing this state with {@code toCopy}.
*/
public DataItem(DataItem toCopy) {
this.name = toCopy.getName();
this.description = toCopy.getDescription();
this.id = toCopy.getId();
this.depositorID = toCopy.getDepositorId();
this.depositDate = toCopy.getDepositDate();
this.files = toCopy.getFiles();
this.parentId = toCopy.getParentId();
this.alternateIds = toCopy.getAlternateIds();
this.citableLocator = toCopy.getCitableLocator();
this.contentModel = toCopy.getContentModel();
this.creators = toCopy.getCreators();
this.contactInfos = toCopy.getContactInfos();
this.createdDate = toCopy.getCreatedDate();
this.modifiedDate = toCopy.getModifiedDate();
}
代码示例来源:origin: org.dataconservancy.dcs/dcs-ui-model
/**
* Constructs a DataItem, initializing this state with {@code toCopy}.
*/
public DataItem(DataItem toCopy) {
this.name = toCopy.getName();
this.description = toCopy.getDescription();
this.id = toCopy.getId();
this.depositorID = toCopy.getDepositorId();
this.depositDate = toCopy.getDepositDate();
this.files = toCopy.getFiles();
this.parentId = toCopy.getParentId();
this.alternateIds = toCopy.getAlternateIds();
this.citableLocator = toCopy.getCitableLocator();
this.contentModel = toCopy.getContentModel();
this.creators = toCopy.getCreators();
this.contactInfos = toCopy.getContactInfos();
this.createdDate = toCopy.getCreatedDate();
this.modifiedDate = toCopy.getModifiedDate();
}
代码示例来源:origin: org.dataconservancy.ui/dcs-ui-services-impl
if (item.getDepositDate() == null) {
item.setDepositDate(DateTime.now());
代码示例来源:origin: org.dataconservancy.model/dcs-ui-model-builder-xstream
if (!isNull(dataItemSource.getDepositDate())) {
writer.startNode(E_DEPOSIT_DATE);
context.convertAnother(dataItemSource.getDepositDate());
writer.endNode();
代码示例来源:origin: org.dataconservancy.dcs/dcs-ui-model-builder-xstream
if (!isNull(dataItemSource.getDepositDate())) {
writer.startNode(E_DEPOSIT_DATE);
context.convertAnother(dataItemSource.getDepositDate());
writer.endNode();
代码示例来源:origin: org.dataconservancy.model/dcs-ui-model-builder-xstream
if (!isNull(dataItemSource.getDepositDate())) {
writer.startNode(E_DEPOSIT_DATE);
context.convertAnother(dataItemSource.getDepositDate());
writer.endNode();
代码示例来源:origin: org.dataconservancy.dcs/dcs-ui-model-builder-xstream
if (!isNull(dataItemSource.getDepositDate())) {
writer.startNode(E_DEPOSIT_DATE);
context.convertAnother(dataItemSource.getDepositDate());
writer.endNode();
内容来源于网络,如有侵权,请联系作者删除!