use of org.commongeoregistry.adapter.RegistryAdapterServer in project geoprism-registry by terraframe.
the class CambodiaDemoHierarchyGenerator method generateHierarchyTypes.
private static void generateHierarchyTypes() {
RegistryAdapterServer registry = new RegistryAdapterServer(RegistryIdService.getInstance());
HierarchyType ht = MetadataFactory.newHierarchyType("Cambodia", new LocalizedValue("Cambodia"), new LocalizedValue(""), null, registry);
ServiceFactory.getHierarchyService().createHierarchyType(Session.getCurrentSession().getOid(), ht.toJSON().toString());
}
use of org.commongeoregistry.adapter.RegistryAdapterServer in project geoprism-registry by terraframe.
the class ServiceFactory method initialize.
private void initialize() {
this.registryService = new RegistryService();
this.cs = new ConversionService();
this.idService = new RegistryIdService();
this.adapter = new RegistryAdapterServer(this.idService);
this.accountService = new AccountService();
this.goPermissionServ = new GeoObjectPermissionService();
this.serverGoService = new ServerGeoObjectService(goPermissionServ);
this.hierarchyService = new HierarchyService();
this.orgServ = new OrganizationPermissionService();
this.hierarchyPermServ = new HierarchyTypePermissionService();
this.goRelPermissionServ = new GeoObjectRelationshipPermissionService();
this.goTypeRelPermissionServ = new GeoObjectTypeRelationshipPermissionService();
this.goTypePermissionServ = new GeoObjectTypePermissionService();
this.rolePermissionServ = new RolePermissionService();
this.metadataCache = new ServerMetadataCache(this.adapter);
this.metadataCache.rebuild();
this.registryService.initialize(this.adapter);
}
Aggregations