private ServiceBindingType getSecondServiceBinding() { ServiceBindingType binding = RIM_FACTORY.createServiceBindingType(); binding.setId("urn:registry:federation:method:soap13"); binding.setService("urn:uuid:service:2014ca7f59ac46f495e32b4a67a51276"); binding.setAccessURI("some:access:URI:any:URI"); binding.setTargetBinding("some:target:binding:reference:URI"); binding .getSlot() .add(stHelper.create("queryAddress", "https://some/address/here", "xs:anyURI")); binding .getSlot() .add(stHelper.create("ingestAddress", "https://some/address/here", "xs:anyURI")); binding .getSlot() .add(stHelper.create("eventAddress", "https://some/address/here", "xs:anyURI")); binding.getSlot().add(stHelper.create("bindingType", "soap13", "xs:string")); binding.getSlot().add(stHelper.create("serviceType", "SOAP", "xs:string")); binding .getSlot() .add( stHelper.create( "endpointDocumentation", "https://some/path/to/docs.html", "xs:anyURI")); binding.setName(istHelper.create("Soap Federation Method")); binding.setDescription(istHelper.create("This is the Soap federation method.")); binding.setVersionInfo(getVersionInfo("1.3")); binding.getSpecificationLink().add(getSecondSpecificationLink()); return binding; }
private ExtrinsicObjectType getThirdExtrinsicObject() { ExtrinsicObjectType extrinsicObject = RIM_FACTORY.createExtrinsicObjectType(); // set default values extrinsicObject.setMimeType(extrinsicObject.getMimeType()); extrinsicObject.setIsOpaque(extrinsicObject.isIsOpaque()); extrinsicObject.setId("urn:content:collection:id1"); extrinsicObject.setObjectType("urn:registry:content:collection"); extrinsicObject.getSlot().add(stHelper.create("types", "video", "xs:string")); extrinsicObject.getSlot().add(stHelper.create("mimeTypes", "video/mpeg4-generic", "xs:string")); extrinsicObject.getSlot().add(stHelper.create("recordCount", "1234", "xs:long")); extrinsicObject .getSlot() .add(stHelper.create("startDate", "2015-11-01T13:15:30Z", "xs:dateTime")); extrinsicObject .getSlot() .add(stHelper.create("endDate", "2015-12-01T22:01:40Z", "xs:dateTime")); extrinsicObject .getSlot() .add(stHelper.create("lastUpdated", "2016-01-26T17:16:34.996Z", "xs:dateTime")); extrinsicObject.setName(istHelper.create("Collection Name2")); extrinsicObject.setDescription( istHelper.create( "A little something describing this collection in less than 1024 characters")); return extrinsicObject; }
private ExtrinsicObjectType getSecondExtrinsicObject() { ExtrinsicObjectType extrinsicObject = RIM_FACTORY.createExtrinsicObjectType(); // set default values extrinsicObject.setMimeType(extrinsicObject.getMimeType()); extrinsicObject.setIsOpaque(extrinsicObject.isIsOpaque()); extrinsicObject.setId("urn:content:collection:id0"); extrinsicObject.setObjectType("urn:registry:content:collection"); extrinsicObject.getSlot().add(stHelper.create("types", "sensor", "xs:string")); List<String> values = new ArrayList<>(); values.add("application/pdf"); values.add("application/msword"); extrinsicObject.getSlot().add(stHelper.create("mimeTypes", values, "xs:string")); extrinsicObject.getSlot().add(stHelper.create("recordCount", "1234", "xs:long")); extrinsicObject .getSlot() .add(stHelper.create("startDate", "2015-11-01T13:15:30Z", "xs:dateTime")); extrinsicObject .getSlot() .add(stHelper.create("endDate", "2015-12-01T23:01:40Z", "xs:dateTime")); extrinsicObject .getSlot() .add(stHelper.create("lastUpdated", "2016-01-26T17:16:34.996Z", "xs:dateTime")); extrinsicObject .getSlot() .add( stHelper.create( "region", "Arizona", "urn:ogc:def:ebRIM-ClassificationScheme:UNSD:GlobalRegions")); extrinsicObject.setName(istHelper.create("Collection Name")); extrinsicObject.setDescription( istHelper.create( "A little something describing this collection in less than 1024 characters")); return extrinsicObject; }
private ServiceBindingType getFirstServiceBinding() { ServiceBindingType binding = RIM_FACTORY.createServiceBindingType(); binding.setId("urn:registry:federation:method:csw"); binding.setService("urn:uuid:service:2014ca7f59ac46f495e32b4a67a51276"); binding.getSlot().add(stHelper.create("cswUrl", "https://some/address/here", "xs:anyURI")); binding.getSlot().add(stHelper.create("bindingType", "Csw_Federated_Source", "xs:string")); binding.getSlot().add(stHelper.create("serviceType", "REST", "xs:string")); binding .getSlot() .add( stHelper.create( "endpointDocumentation", "https://some/path/to/docs.html", "xs:anyURI")); binding.setName(istHelper.create("CSW Federation Method")); binding.setDescription(istHelper.create("This is the CSW federation method.")); binding.setVersionInfo(getVersionInfo("2.0.2")); binding.getSpecificationLink().add(getFirstSpecificationLink()); return binding; }
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; }
private ExtrinsicObjectType getFirstExtrinsicObject() { ExtrinsicObjectType extrinsicObject = RIM_FACTORY.createExtrinsicObjectType(); // set default values extrinsicObject.setMimeType(extrinsicObject.getMimeType()); extrinsicObject.setIsOpaque(extrinsicObject.isIsOpaque()); extrinsicObject.setId("urn:registry:node"); extrinsicObject.setObjectType("urn:registry:federation:node"); extrinsicObject .getSlot() .add(stHelper.create("liveDate", "2015-11-01T06:15:30-07:00", "xs:dateTime")); extrinsicObject .getSlot() .add(stHelper.create("dataStartDate", "2015-11-01T13:15:30Z", "xs:dateTime")); extrinsicObject .getSlot() .add(stHelper.create("dataEndDate", "2015-12-01T23:01:40Z", "xs:dateTime")); extrinsicObject .getSlot() .add(stHelper.create("lastUpdated", "2016-01-26T17:16:34.996Z", "xs:dateTime")); extrinsicObject .getSlot() .add(stHelper.create("links", "https://some/link/to/my/repo", "xs:string")); SlotType1 locationSlot = stHelper.create("location", (String) null, "urn:ogc:def:dataType:ISO-19107:2003:GM_Point"); PointType point = GML_FACTORY.createPointType(); point.setSrsDimension(BigInteger.valueOf(2)); point.setSrsName("urn:ogc:def:crs:EPSG::4326"); DirectPositionType directPosition = GML_FACTORY.createDirectPositionType(); directPosition.getValue().add(112.267472); directPosition.getValue().add(33.467944); point.setPos(directPosition); ValueListType valueList = WRS_FACTORY.createValueListType(); AnyValueType anyValue = WRS_FACTORY.createAnyValueType(); anyValue.getContent().add(GML_FACTORY.createPoint(point)); valueList.getAnyValue().add(anyValue); locationSlot.setValueList(RIM_FACTORY.createValueList(valueList)); extrinsicObject.getSlot().add(locationSlot); extrinsicObject .getSlot() .add( stHelper.create( "region", "USA", "urn:ogc:def:ebRIM-ClassificationScheme:UNSD:GlobalRegions")); List<String> values = new ArrayList<>(); values.add("youtube"); values.add("myCamera"); extrinsicObject.getSlot().add(stHelper.create("inputDataSources", values, "xs:string")); values = new ArrayList<>(); values.add("video"); values.add("sensor"); extrinsicObject.getSlot().add(stHelper.create("dataTypes", values, "xs:string")); extrinsicObject.getSlot().add(stHelper.create("securityLevel", "role=guest", "xs:string")); extrinsicObject.setName(istHelper.create("Node Name")); extrinsicObject.setDescription( istHelper.create("A little something describing this node in less than 1024 characters")); extrinsicObject.setVersionInfo(getVersionInfo("2.9.x")); ClassificationType classification = RIM_FACTORY.createClassificationType(); classification.setId("urn:classification:id0"); classification.setClassifiedObject("classifiedObjectId"); extrinsicObject.getClassification().add(classification); return extrinsicObject; }