Search in sources :

Example 6 with SPluginDescriptor

use of org.bimserver.interfaces.objects.SPluginDescriptor in project BIMserver by opensourceBIM.

the class ServiceImpl method getQueryEngineExample.

@Override
public String getQueryEngineExample(Long qeid, String key) throws ServerException, UserException {
    requireRealUserAuthentication();
    SQueryEnginePluginConfiguration queryEngineById = getQueryEngineById(qeid);
    SPluginDescriptor pluginDescriptor = getServiceMap().getPluginInterface().getPluginDescriptor(queryEngineById.getPluginDescriptorId());
    QueryEnginePlugin queryEngine = getBimServer().getPluginManager().getQueryEngine(pluginDescriptor.getPluginClassName(), true);
    return queryEngine.getExample(key);
}
Also used : SPluginDescriptor(org.bimserver.interfaces.objects.SPluginDescriptor) SQueryEnginePluginConfiguration(org.bimserver.interfaces.objects.SQueryEnginePluginConfiguration) QueryEnginePlugin(org.bimserver.plugins.queryengine.QueryEnginePlugin)

Aggregations

SPluginDescriptor (org.bimserver.interfaces.objects.SPluginDescriptor)6 ArrayList (java.util.ArrayList)3 IOException (java.io.IOException)2 SQueryEnginePluginConfiguration (org.bimserver.interfaces.objects.SQueryEnginePluginConfiguration)2 PluginDescriptor (org.bimserver.models.store.PluginDescriptor)2 QueryEnginePlugin (org.bimserver.plugins.queryengine.QueryEnginePlugin)2 Path (java.nio.file.Path)1 BimServer (org.bimserver.BimServer)1 BimServerConfig (org.bimserver.BimServerConfig)1 BimserverDatabaseException (org.bimserver.BimserverDatabaseException)1 BimBotsException (org.bimserver.bimbots.BimBotsException)1 DatabaseSession (org.bimserver.database.DatabaseSession)1 IfcModelInterface (org.bimserver.emf.IfcModelInterface)1 SDeserializerPluginConfiguration (org.bimserver.interfaces.objects.SDeserializerPluginConfiguration)1 SRenderEnginePluginConfiguration (org.bimserver.interfaces.objects.SRenderEnginePluginConfiguration)1 RenderEngineException (org.bimserver.plugins.renderengine.RenderEngineException)1 BimServerClientInterface (org.bimserver.plugins.services.BimServerClientInterface)1 ServicePlugin (org.bimserver.plugins.services.ServicePlugin)1 LocalDevelopmentResourceFetcher (org.bimserver.shared.LocalDevelopmentResourceFetcher)1 UsernamePasswordAuthenticationInfo (org.bimserver.shared.UsernamePasswordAuthenticationInfo)1