use of org.codice.ddf.registry.schemabindings.helper.InternationalStringTypeHelper in project ddf by codice.
the class IdentityNodeInitializationTest method buildRegistryPackageType.
private RegistryPackageType buildRegistryPackageType() {
SlotTypeHelper slotTypeHelper = new SlotTypeHelper();
InternationalStringTypeHelper internationalStringTypeHelper = new InternationalStringTypeHelper();
String registryPackageId = RegistryConstants.GUID_PREFIX + UUID.randomUUID().toString().replaceAll("-", "");
RegistryPackageType registryPackage = RIM_FACTORY.createRegistryPackageType();
registryPackage.setId(registryPackageId);
registryPackage.setObjectType(RegistryConstants.REGISTRY_NODE_OBJECT_TYPE);
ExtrinsicObjectType extrinsicObject = RIM_FACTORY.createExtrinsicObjectType();
extrinsicObject.setObjectType(RegistryConstants.REGISTRY_NODE_OBJECT_TYPE);
String extrinsicObjectId = RegistryConstants.GUID_PREFIX + UUID.randomUUID().toString().replaceAll("-", "");
extrinsicObject.setId(extrinsicObjectId);
extrinsicObject.setName(internationalStringTypeHelper.create(TEST_SITE_NAME));
String home = SystemBaseUrl.getBaseUrl();
extrinsicObject.setHome(home);
registryPackage.setRegistryObjectList(RIM_FACTORY.createRegistryObjectListType());
registryPackage.getRegistryObjectList().getIdentifiable().add(RIM_FACTORY.createIdentifiable(extrinsicObject));
return registryPackage;
}
Aggregations