use of org.codice.alliance.nsili.common.UCO.EntityGraph in project alliance by codice.
the class NsiliDataModel method initMessageViewGraph.
private void initMessageViewGraph() {
EntityRelationship productPartRln = new EntityRelationship(productNode.id, partNode.id, Cardinality.ONE_TO_ONE, Cardinality.ONE_TO_ONE);
EntityNode[] viewNodes = new EntityNode[] { productNode, cardNode, commonNode, coverageNode, fileNode, messageNode, metadataSecurityNode, partNode, relatedFileNode, relationNode, securityNode, approvalNode, exploitationNode, sourceNode, destinationNode, associationNode };
EntityRelationship[] viewRelationships = new EntityRelationship[] { productAssociationRln, productApprovalRln, productCardRln, productFileRln, productMetadataSecurityRln, productRelatedFileRln, productSecurityRln, productPartRln, partCommonRln, partCoverageRln, partSecurityRln, partExploitationRln, partMessageRln, assocCardRln, assocSourceRln, assocDestRln, assocRelationRln, sourceCardRln, destCardRln };
viewGraphMap.put(NsiliConstants.NSIL_MESSAGE_VIEW, new EntityGraph(viewNodes, viewRelationships));
List<Pair<ConceptualAttributeType, String>> conceptualPairs = new ArrayList<>();
conceptualPairs.add(classificationPair);
conceptualPairs.add(dataSetTypePair);
conceptualPairs.add(dataSizePair);
conceptualPairs.add(directAccessPair);
conceptualPairs.add(footprintPair);
conceptualPairs.add(modificationDatePair);
conceptualPairs.add(productTitlePair);
conceptualPairs.add(uniqueIdPair);
conceptualAttrMap.put(NsiliConstants.NSIL_MESSAGE_VIEW, conceptualPairs);
updateMandatoryAttrs(NsiliConstants.NSIL_MESSAGE_VIEW, viewNodes);
}
use of org.codice.alliance.nsili.common.UCO.EntityGraph in project alliance by codice.
the class NsiliDataModel method initImageryViewGraph.
private void initImageryViewGraph() {
EntityNode[] viewNodes = new EntityNode[] { productNode, partNode, sourceNode, destinationNode, associationNode, approvalNode, cardNode, fileNode, streamNode, metadataSecurityNode, relatedFileNode, securityNode, commonNode, coverageNode, exploitationNode, imageryNode, relationNode };
EntityRelationship[] viewRelationships = new EntityRelationship[] { productAssociationRln, productApprovalRln, productCardRln, productFileRln, productStreamRln, productMetadataSecurityRln, productRelatedFileRln, productSecurityRln, productPartRln, partCommonRln, partCoverageRln, partSecurityRln, partExploitationRln, partImageryRln, assocCardRln, assocSourceRln, assocDestRln, assocRelationRln, sourceCardRln, destCardRln };
viewGraphMap.put(NsiliConstants.NSIL_IMAGERY_VIEW, new EntityGraph(viewNodes, viewRelationships));
List<Pair<ConceptualAttributeType, String>> conceptualPairs = new ArrayList<>();
conceptualPairs.add(classificationPair);
conceptualPairs.add(dataSetTypePair);
conceptualPairs.add(dataSizePair);
conceptualPairs.add(directAccessPair);
conceptualPairs.add(footprintPair);
conceptualPairs.add(modificationDatePair);
conceptualPairs.add(productTitlePair);
conceptualPairs.add(uniqueIdPair);
conceptualAttrMap.put(NsiliConstants.NSIL_IMAGERY_VIEW, conceptualPairs);
updateMandatoryAttrs(NsiliConstants.NSIL_IMAGERY_VIEW, viewNodes);
}
use of org.codice.alliance.nsili.common.UCO.EntityGraph in project alliance by codice.
the class NsiliDataModel method initVideoViewGraph.
private void initVideoViewGraph() {
EntityRelationship productPartRln = new EntityRelationship(productNode.id, partNode.id, Cardinality.ONE_TO_ONE, Cardinality.ONE_TO_ONE);
EntityNode[] viewNodes = new EntityNode[] { productNode, cardNode, commonNode, coverageNode, fileNode, streamNode, metadataSecurityNode, partNode, relatedFileNode, relationNode, securityNode, videoNode, approvalNode, exploitationNode, sourceNode, destinationNode, associationNode };
EntityRelationship[] viewRelationships = new EntityRelationship[] { productAssociationRln, productApprovalRln, productCardRln, productFileRln, productStreamRln, productMetadataSecurityRln, productRelatedFileRln, productSecurityRln, productPartRln, partCommonRln, partCoverageRln, partSecurityRln, partExploitationRln, partVideoRln, assocCardRln, assocSourceRln, assocDestRln, assocRelationRln, sourceCardRln, destCardRln };
viewGraphMap.put(NsiliConstants.NSIL_VIDEO_VIEW, new EntityGraph(viewNodes, viewRelationships));
List<Pair<ConceptualAttributeType, String>> conceptualPairs = new ArrayList<>();
conceptualPairs.add(classificationPair);
conceptualPairs.add(dataSetTypePair);
conceptualPairs.add(dataSizePair);
conceptualPairs.add(directAccessPair);
conceptualPairs.add(footprintPair);
conceptualPairs.add(modificationDatePair);
conceptualPairs.add(productTitlePair);
conceptualPairs.add(uniqueIdPair);
conceptualAttrMap.put(NsiliConstants.NSIL_VIDEO_VIEW, conceptualPairs);
updateMandatoryAttrs(NsiliConstants.NSIL_VIDEO_VIEW, viewNodes);
}
use of org.codice.alliance.nsili.common.UCO.EntityGraph in project alliance by codice.
the class NsiliDataModel method initAllViewGraph.
private void initAllViewGraph() {
EntityNode[] viewNodes = new EntityNode[] { productNode, cardNode, commonNode, coverageNode, fileNode, gmtiNode, imageryNode, messageNode, metadataSecurityNode, partNode, relatedFileNode, relationNode, securityNode, streamNode, videoNode, approvalNode, exploitationNode, sdsNode, tdlNode, rfiNode, cxpNode, reportNode, taskNode, sourceNode, destinationNode, associationNode, cbrnNode, intrepNode, intsumNode, entityNode };
EntityRelationship[] viewRelationships = new EntityRelationship[] { productAssociationRln, productApprovalRln, productCardRln, productFileRln, productStreamRln, productMetadataSecurityRln, productRelatedFileRln, productSecurityRln, productPartRln, partCommonRln, partCoverageRln, partSecurityRln, partExploitationRln, partCxpRln, partGmtiRln, partImageryRln, partMessageRln, partReportRln, partRfiRln, partSdsRln, partTaskRln, partTdlRln, partVideoRln, assocCardRln, assocSourceRln, assocDestRln, assocRelationRln, sourceCardRln, destCardRln, partCbrnRln, reportEntityRln, reportIntrepRln, reportIntsumRln };
viewGraphMap.put(NsiliConstants.NSIL_ALL_VIEW, new EntityGraph(viewNodes, viewRelationships));
List<Pair<ConceptualAttributeType, String>> conceptualPairs = new ArrayList<>();
conceptualPairs.add(classificationPair);
conceptualPairs.add(dataSetTypePair);
conceptualPairs.add(dataSizePair);
conceptualPairs.add(directAccessPair);
conceptualPairs.add(footprintPair);
conceptualPairs.add(modificationDatePair);
conceptualPairs.add(productTitlePair);
conceptualPairs.add(uniqueIdPair);
conceptualAttrMap.put(NsiliConstants.NSIL_ALL_VIEW, conceptualPairs);
updateMandatoryAttrs(NsiliConstants.NSIL_ALL_VIEW, viewNodes);
}
use of org.codice.alliance.nsili.common.UCO.EntityGraph in project alliance by codice.
the class NsiliDataModel method initCcirmViewGraph.
private void initCcirmViewGraph() {
productPartRln = new EntityRelationship(productNode.id, partNode.id, Cardinality.ONE_TO_ONE, Cardinality.ONE_TO_ONE);
EntityNode[] viewNodes = new EntityNode[] { productNode, approvalNode, cardNode, fileNode, metadataSecurityNode, relatedFileNode, securityNode, partNode, commonNode, coverageNode, exploitationNode, cxpNode, rfiNode, taskNode, associationNode, relationNode, sourceNode, destinationNode };
EntityRelationship[] viewRelationships = new EntityRelationship[] { productApprovalRln, productCardRln, productFileRln, productMetadataSecurityRln, productRelatedFileRln, productSecurityRln, productPartRln, partSecurityRln, partCommonRln, partCoverageRln, partExploitationRln, partCxpRln, partRfiRln, partTaskRln, productAssociationRln, assocCardRln, assocRelationRln, assocSourceRln, assocDestRln };
viewGraphMap.put(NsiliConstants.NSIL_CCIRM_VIEW, new EntityGraph(viewNodes, viewRelationships));
List<Pair<ConceptualAttributeType, String>> conceptualPairs = new ArrayList<>();
conceptualPairs.add(classificationPair);
conceptualPairs.add(dataSetTypePair);
conceptualPairs.add(dataSizePair);
conceptualPairs.add(directAccessPair);
conceptualPairs.add(footprintPair);
conceptualPairs.add(modificationDatePair);
conceptualPairs.add(productTitlePair);
conceptualPairs.add(uniqueIdPair);
conceptualAttrMap.put(NsiliConstants.NSIL_CCIRM_VIEW, conceptualPairs);
updateMandatoryAttrs(NsiliConstants.NSIL_CCIRM_VIEW, viewNodes);
}
Aggregations