Search in sources :

Example 11 with ServerGeoObjectTypeConverter

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());
}
Also used : ServerGeoObjectTypeConverter(net.geoprism.registry.conversion.ServerGeoObjectTypeConverter) ServerGeoObjectType(net.geoprism.registry.model.ServerGeoObjectType) GeoObjectType(org.commongeoregistry.adapter.metadata.GeoObjectType) Transaction(com.runwaysdk.dataaccess.transaction.Transaction)

Aggregations

ServerGeoObjectTypeConverter (net.geoprism.registry.conversion.ServerGeoObjectTypeConverter)11 ServerGeoObjectType (net.geoprism.registry.model.ServerGeoObjectType)9 Universal (com.runwaysdk.system.gis.geo.Universal)6 GeoObjectType (org.commongeoregistry.adapter.metadata.GeoObjectType)4 MdGraphClassDAOIF (com.runwaysdk.dataaccess.MdGraphClassDAOIF)3 Transaction (com.runwaysdk.dataaccess.transaction.Transaction)2 RootGeoObjectType (net.geoprism.registry.model.RootGeoObjectType)2 LocalizedValue (org.commongeoregistry.adapter.dataaccess.LocalizedValue)2 MdAttributeDAOIF (com.runwaysdk.dataaccess.MdAttributeDAOIF)1 ValueOverTime (com.runwaysdk.dataaccess.graph.attributes.ValueOverTime)1 MdAttributeBooleanDAO (com.runwaysdk.dataaccess.metadata.MdAttributeBooleanDAO)1 MdAttributeConcreteDAO (com.runwaysdk.dataaccess.metadata.MdAttributeConcreteDAO)1 MdAttributeDAO (com.runwaysdk.dataaccess.metadata.MdAttributeDAO)1 MdAttributeEnumerationDAO (com.runwaysdk.dataaccess.metadata.MdAttributeEnumerationDAO)1 MdBusinessDAO (com.runwaysdk.dataaccess.metadata.MdBusinessDAO)1 MdGeoVertexDAO (com.runwaysdk.gis.dataaccess.metadata.graph.MdGeoVertexDAO)1 QueryFactory (com.runwaysdk.query.QueryFactory)1 Request (com.runwaysdk.session.Request)1 Session (com.runwaysdk.session.Session)1 UniversalQuery (com.runwaysdk.system.gis.geo.UniversalQuery)1