use of org.n52.shetland.ogc.ows.OwsResponsibleParty in project arctic-sea by 52North.
the class AbstractCapabilitiesBaseTypeDecoder method parseResponsibleParty.
private OwsResponsibleParty parseResponsibleParty(ResponsiblePartySubsetType responsibleParty) {
if (responsibleParty == null) {
return null;
}
String positionName = responsibleParty.getPositionName();
String individualName = responsibleParty.getIndividualName();
String organisationName = null;
OwsContact contactInfo = parseContact(responsibleParty.getContactInfo());
OwsCode role = parseCode(responsibleParty.getRole());
return new OwsResponsibleParty(individualName, organisationName, positionName, contactInfo, role);
}
use of org.n52.shetland.ogc.ows.OwsResponsibleParty in project arctic-sea by 52North.
the class OwsServiceProviderFactory method create.
@Override
protected OwsServiceProvider create(Locale language) throws ConfigurationError {
// TODO organisation name is missing
String organisationName = null;
OwsOnlineResource onlineResource = null;
if (site != null) {
onlineResource = new OwsOnlineResource(site);
}
OwsCode roleCode = null;
if (role != null) {
roleCode = new OwsCode(role, roleCodespace);
}
OwsOnlineResource providerSite = null;
if (onlineResoureHref != null) {
providerSite = new OwsOnlineResource(onlineResoureHref, onlineResoureTitle);
}
OwsAddress address = null;
if (anyNonNull(deliveryPoint, city, administrativeArea, postalCode, country, electronicMailAddress)) {
address = new OwsAddress(deliveryPoint, city, administrativeArea, postalCode, country, electronicMailAddress);
}
OwsPhone owsPhone = null;
if (anyNonNull(phone, facsimile)) {
owsPhone = new OwsPhone(phone, facsimile);
}
OwsContact contactInfo = null;
if (anyNonNull(owsPhone, address, onlineResource, hoursOfService, contactInstructions)) {
contactInfo = new OwsContact(owsPhone, address, onlineResource, hoursOfService, contactInstructions);
}
OwsResponsibleParty serviceContact = new OwsResponsibleParty(individualName, organisationName, positionName, contactInfo, roleCode);
return new OwsServiceProvider(name, providerSite, serviceContact);
}
use of org.n52.shetland.ogc.ows.OwsResponsibleParty in project arctic-sea by 52North.
the class AbstractCapabilitiesBaseTypeDecoder method parseServiceProvider.
private OwsServiceProvider parseServiceProvider(ServiceProvider serviceProvider) {
if (serviceProvider == null) {
return null;
}
OwsOnlineResource providerSite = parseOnlineResource(serviceProvider.getProviderSite());
OwsResponsibleParty serviceContact = parseResponsibleParty(serviceProvider.getServiceContact());
String providerName = serviceProvider.getProviderName();
return new OwsServiceProvider(providerName, providerSite, serviceContact);
}
Aggregations