use of oasis.names.tc.ebxml_regrep.xsd.rim._3.ExtrinsicObjectType in project ddf by codice.
the class IdentityNodeInitialization method updateIdentityNodeName.
private void updateIdentityNodeName(Metacard metacard) throws FederationAdminException, ParserException {
RegistryPackageType registryPackage = metacardMarshaller.getRegistryPackageFromMetacard(metacard);
String siteName = SystemInfo.getSiteName();
RegistryPackageTypeHelper registryPackageTypeHelper = new RegistryPackageTypeHelper();
registryPackageTypeHelper.getExtrinsicObjects(registryPackage.getRegistryObjectList()).stream().filter(extrinsicObjectType -> extrinsicObjectType.getObjectType().equals(RegistryConstants.REGISTRY_NODE_OBJECT_TYPE)).findFirst().ifPresent(extrinsicObjectType -> extrinsicObjectType.setName(internationalStringTypeHelper.create(siteName)));
Metacard identityMetacard = getRegistryMetacardFromRegistryPackage(registryPackage);
if (identityMetacard != null) {
federationAdminService.updateRegistryEntry(identityMetacard);
}
}
use of oasis.names.tc.ebxml_regrep.xsd.rim._3.ExtrinsicObjectType in project ddf by codice.
the class RegistryPackageWebConverterTest method getFourthExtrinsicObject.
private ExtrinsicObjectType getFourthExtrinsicObject() {
ExtrinsicObjectType extrinsicObject = RIM_FACTORY.createExtrinsicObjectType();
extrinsicObject.setId("urn:service:params:id0");
extrinsicObject.setMimeType("application/octet-stream");
extrinsicObject.setIsOpaque(false);
extrinsicObject.setContentVersionInfo(getVersionInfo("versionName"));
extrinsicObject.getSlot().add(stHelper.create("parameters", "param1", "xs:string"));
extrinsicObject.setObjectType("urn:registry:content:collection");
return extrinsicObject;
}
Aggregations