@Override public List<SObjectIDMPluginDescriptor> getAllObjectIDMPluginDescriptors() throws UserException { requireRealUserAuthentication(); Collection<ObjectIDMPlugin> allObjectIDMs = getBimServer().getPluginManager().getAllObjectIDMPlugins(true).values(); List<SObjectIDMPluginDescriptor> descriptors = new ArrayList<SObjectIDMPluginDescriptor>(); for (ObjectIDMPlugin ObjectIDMPlugin : allObjectIDMs) { SObjectIDMPluginDescriptor descriptor = new SObjectIDMPluginDescriptor(); descriptor.setClassName(ObjectIDMPlugin.getClass().getName()); descriptors.add(descriptor); } return descriptors; }
public void setDefaultWebModule(final Long oid) throws ServerException, UserException { requireRealUserAuthentication(); try { getBimServer().getWebModuleManager().setDefault(oid); } catch (Exception e) { handleException(e); } }
@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(); } }
public SWebModulePluginConfiguration getDefaultWebModule() throws ServerException, UserException { requireRealUserAuthentication(); WebModulePluginConfiguration defaultWebModule = getBimServer().getServerSettingsCache().getServerSettings().getWebModule(); return getBimServer().getSConverter().convertToSObject(defaultWebModule); }
@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(); } }
@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(); } }
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(); } }
public SRenderEnginePluginConfiguration getDefaultRenderEngine() throws ServerException, UserException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { UserSettings settings = getUserSettings(session); return getBimServer().getSConverter().convertToSObject(settings.getDefaultRenderEngine()); } catch (Exception e) { return handleException(e); } finally { session.close(); } }
public SModelComparePluginConfiguration getDefaultModelCompare() throws ServerException, UserException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { UserSettings settings = getUserSettings(session); return getBimServer().getSConverter().convertToSObject(settings.getDefaultModelCompare()); } 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 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(); } }