本文整理了Java中org.dataconservancy.ui.model.DataItem.getParentId()
方法的一些代码示例,展示了DataItem.getParentId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataItem.getParentId()
方法的具体详情如下:
包路径:org.dataconservancy.ui.model.DataItem
类名称:DataItem
方法名:getParentId
[英]Retrieves the parent id of this data item.
[中]检索此数据项的父id。
代码示例来源:origin: org.dataconservancy.ui/dcs-ui-services-impl
private String get_parent(BusinessObject o) {
if (o instanceof Collection) {
return ((Collection) o).getParentId();
}
if (o instanceof DataItem) {
return ((DataItem) o).getParentId();
}
if (o instanceof DataFile) {
return ((DataFile) o).getParentId();
}
return null;
}
代码示例来源:origin: org.dataconservancy.frontend/dcs-ui-services-impl
private String get_parent(BusinessObject o) {
if (o instanceof Collection) {
return ((Collection) o).getParentId();
}
if (o instanceof DataItem) {
return ((DataItem) o).getParentId();
}
if (o instanceof DataFile) {
return ((DataFile) o).getParentId();
}
return null;
}
代码示例来源:origin: org.dataconservancy.frontend/dcs-ui-webapi
String collId = item.getParentId();
Collection collection = collectionBizService.getCollection(collId);
代码示例来源:origin: org.dataconservancy.ui/dcs-ui-webapi
String collId = item.getParentId();
Collection collection = collectionBizService.getCollection(collId);
代码示例来源:origin: org.dataconservancy.ui/dcs-ui-services-impl
if (dataItemToIngest.getParentId() == null) {
throw new StatefulIngestServiceException("Data Item " + dataItemToIngest.getId() + " could not be deposited, parent id was null");
dataItemBizService.addDataItem(dataItemToIngest, dataItemToIngest.getParentId(), user);
代码示例来源:origin: org.dataconservancy.frontend/dcs-ui-services-impl
if (dataItemToIngest.getParentId() == null) {
throw new StatefulIngestServiceException("Data Item " + dataItemToIngest.getId() + " could not be deposited, parent id was null");
dataItemBizService.addDataItem(dataItemToIngest, dataItemToIngest.getParentId(), user);
代码示例来源: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.model/dcs-ui-model-builder-xstream
if (!isEmptyOrNull(dataItemSource.getParentId())) {
writer.startNode(E_PARENT_ID);
writer.setValue(dataItemSource.getParentId());
writer.endNode();
代码示例来源:origin: org.dataconservancy.dcs/dcs-ui-model-builder-xstream
if (!isEmptyOrNull(dataItemSource.getParentId())) {
writer.startNode(E_PARENT_ID);
writer.setValue(dataItemSource.getParentId());
writer.endNode();
内容来源于网络,如有侵权,请联系作者删除!