@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(); } }
@Override public List<SPluginDescriptor> getAllModelCheckerPluginDescriptors() throws ServerException, UserException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { return session.executeAndCommitAction(new GetAllPluginDescriptorsDatabaseAction(session, getInternalAccessMethod(), getBimServer(), ModelCheckerPlugin.class.getName())); } catch (Exception e) { return handleException(e); } finally { session.close(); } }
@Override public List<SPluginDescriptor> getAllQueryEnginePluginDescriptors() throws ServerException, UserException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { return session.executeAndCommitAction(new GetAllPluginDescriptorsDatabaseAction(session, getInternalAccessMethod(), getBimServer(), QueryEnginePlugin.class.getName())); } catch (Exception e) { return handleException(e); } finally { session.close(); } }
@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(); } }
@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(); } }
@Override public void deletePluginConfiguration(Long oid) throws ServerException, UserException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { BimDatabaseAction<Void> action = new DeletePluginConfigurationDatabaseAction(session, getInternalAccessMethod(), oid); session.executeAndCommitAction(action); } catch (Exception e) { handleException(e); } finally { session.close(); } }
@Override public void deleteDeserializer(Long sid) throws ServerException, UserException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { BimDatabaseAction<Void> action = new DeleteDeserializerDatabaseAction(session, getInternalAccessMethod(), sid); session.executeAndCommitAction(action); } catch (Exception e) { handleException(e); } finally { session.close(); } }
@Override public void deleteInternalService(Long oid) throws ServerException, UserException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { session.executeAndCommitAction(new DeleteInternalServiceDatabaseAction(session, getInternalAccessMethod(), oid)); } catch (Exception e) { handleException(e); } finally { session.close(); } }
public void updatePluginBundle(String repository, String groupId, String artifactId, String version) throws UserException, ServerException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { session.executeAndCommitAction(new UpdatePluginBundle(session, getInternalAccessMethod(), getBimServer(), repository, groupId, artifactId, version)); } catch (Exception e) { handleException(e); } finally { session.close(); } }
public void installPluginBundle(String repository, String groupId, String artifactId, String version, List<SPluginInformation> plugins) throws UserException, ServerException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { session.executeAndCommitAction(new InstallPluginBundle(session, getInternalAccessMethod(), getBimServer(), repository, groupId, artifactId, version, plugins)); } catch (Exception e) { handleException(e); } finally { session.close(); } }
@Override public void uninstallPluginBundle(String repository, String groupId, String artifactId, String version) throws UserException, ServerException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { session.executeAndCommitAction(new UninstallPluginBundle(session, getInternalAccessMethod(), getBimServer(), repository, groupId, artifactId, version)); } catch (Exception e) { handleException(e); } finally { session.close(); } }
@Override public List<SPluginInformation> getPluginInformation(String repository, String groupId, String artifactId, String version) throws UserException, ServerException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { return session.executeAndCommitAction(new GetPluginInformation(session, getInternalAccessMethod(), getBimServer(), repository, groupId, artifactId, version)); } catch (Exception e) { return handleException(e); } finally { session.close(); } }
@Override public SObjectIDMPluginConfiguration getObjectIDMById(Long oid) throws ServerException, UserException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { return getBimServer().getSConverter().convertToSObject(session.executeAndCommitAction(new GetObjectIDMByIdDatabaseAction(session, getInternalAccessMethod(), oid))); } catch (Exception e) { return handleException(e); } finally { session.close(); } }
@Override public List<SPluginDescriptor> listPluginsInBundle(Long pluginBundleVersionOid) throws ServerException, UserException { DatabaseSession session = getBimServer().getDatabase().createSession(); try { return getBimServer().getSConverter() .convertToSListPluginDescriptor(session.executeAndCommitAction(new ListPluginsInBundle(session, getInternalAccessMethod(), getBimServer(), pluginBundleVersionOid))); } catch (Exception e) { return handleException(e); } finally { session.close(); } }
@Override public SRenderEnginePluginConfiguration getRenderEngineByName(String name) throws ServerException, UserException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { return getBimServer().getSConverter().convertToSObject(session.executeAndCommitAction(new GetRenderEngineByNameDatabaseAction(session, getInternalAccessMethod(), name))); } catch (Exception e) { return handleException(e); } finally { session.close(); } }
@Override public SModelMergerPluginConfiguration getModelMergerById(Long oid) throws ServerException, UserException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { return getBimServer().getSConverter().convertToSObject(session.executeAndCommitAction(new GetModelMergerByIdDatabaseAction(session, getInternalAccessMethod(), oid))); } catch (Exception e) { return handleException(e); } finally { session.close(); } }
@Override public SModelComparePluginConfiguration getModelCompareByName(String name) throws ServerException, UserException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { return getBimServer().getSConverter().convertToSObject(session.executeAndCommitAction(new GetModelCompareByNameDatabaseAction(session, getInternalAccessMethod(), name))); } catch (Exception e) { return handleException(e); } finally { session.close(); } }
@Override public SModelMergerPluginConfiguration getModelMergerByName(String name) throws ServerException, UserException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { return getBimServer().getSConverter().convertToSObject(session.executeAndCommitAction(new GetModelMergerByNameDatabaseAction(session, getInternalAccessMethod(), name))); } catch (Exception e) { return handleException(e); } finally { session.close(); } }
@Override public SWebModulePluginConfiguration getWebModuleById(Long oid) throws ServerException, UserException { requireAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { return getBimServer().getSConverter().convertToSObject(session.executeAndCommitAction(new GetWebModuleByIdDatabaseAction(session, getInternalAccessMethod(), oid))); } catch (Exception e) { return handleException(e); } finally { session.close(); } }
@Override public void updateRenderEngine(SRenderEnginePluginConfiguration renderEngine) throws ServerException, UserException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { RenderEnginePluginConfiguration convert = session.get(renderEngine.getOid(), OldQuery.getDefault()); getBimServer().getSConverter().convertFromSObject(renderEngine, convert, session); session.executeAndCommitAction(new UpdateRenderEngineDatabaseAction(session, getInternalAccessMethod(), convert)); } catch (Exception e) { handleException(e); } finally { session.close(); } }