use of org.bimserver.database.actions.GetAllPluginDescriptorsDatabaseAction in project BIMserver by opensourceBIM.
the class PluginServiceImpl method getAllModelComparePluginDescriptors.
@Override
public List<SPluginDescriptor> getAllModelComparePluginDescriptors() throws ServerException, UserException {
requireRealUserAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
return session.executeAndCommitAction(new GetAllPluginDescriptorsDatabaseAction(session, getInternalAccessMethod(), getBimServer(), ModelComparePlugin.class.getName()));
} catch (Exception e) {
return handleException(e);
} finally {
session.close();
}
}
use of org.bimserver.database.actions.GetAllPluginDescriptorsDatabaseAction in project BIMserver by opensourceBIM.
the class PluginServiceImpl method getAllServicePluginDescriptors.
@Override
public List<SPluginDescriptor> getAllServicePluginDescriptors() throws ServerException, UserException {
requireRealUserAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
return session.executeAndCommitAction(new GetAllPluginDescriptorsDatabaseAction(session, getInternalAccessMethod(), getBimServer(), ServicePlugin.class.getName()));
} catch (Exception e) {
return handleException(e);
} finally {
session.close();
}
}
use of org.bimserver.database.actions.GetAllPluginDescriptorsDatabaseAction in project BIMserver by opensourceBIM.
the class PluginServiceImpl method getAllRenderEnginePluginDescriptors.
@Override
public List<SPluginDescriptor> getAllRenderEnginePluginDescriptors() throws ServerException, UserException {
requireRealUserAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
return session.executeAndCommitAction(new GetAllPluginDescriptorsDatabaseAction(session, getInternalAccessMethod(), getBimServer(), RenderEnginePlugin.class.getName()));
} catch (Exception e) {
return handleException(e);
} finally {
session.close();
}
}
use of org.bimserver.database.actions.GetAllPluginDescriptorsDatabaseAction in project BIMserver by opensourceBIM.
the class PluginServiceImpl method getAllDeserializerPluginDescriptors.
@Override
public List<SPluginDescriptor> getAllDeserializerPluginDescriptors() throws ServerException, UserException {
requireRealUserAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
return session.executeAndCommitAction(new GetAllPluginDescriptorsDatabaseAction(session, getInternalAccessMethod(), getBimServer(), DeserializerPlugin.class.getName()));
} catch (Exception e) {
return handleException(e);
} finally {
session.close();
}
}
Aggregations