use of net.geoprism.registry.conversion.ServerGeoObjectTypeConverter in project geoprism-registry by terraframe.
the class TestGeoObjectTypeInfo method applyInTrans.
@Transaction
private void applyInTrans() {
if (this.getServerObject() != null) {
return;
}
String organizationCode = this.getOrganization().getCode();
GeoObjectType got = new GeoObjectType(this.getCode(), this.geomType, this.getDisplayLabel(), this.getDescription(), true, organizationCode, ServiceFactory.getAdapter());
got.setIsAbstract(this.isAbstract);
got.setIsPrivate(this.isPrivate);
if (this.getSuperType() != null) {
got.setSuperTypeCode(this.getSuperType().code);
}
this.serverObject = new ServerGeoObjectTypeConverter().create(got);
universal = this.serverObject.getUniversal();
this.setUid(universal.getOid());
}
Aggregations