@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 SWebModulePluginConfiguration getDefaultWebModule() throws ServerException, UserException { requireRealUserAuthentication(); WebModulePluginConfiguration defaultWebModule = getBimServer().getServerSettingsCache().getServerSettings().getWebModule(); return getBimServer().getSConverter().convertToSObject(defaultWebModule); }
@Override public void clearMavenCache() throws UserException, ServerException { try { getBimServer().getMavenPluginRepository().clearCache(); } catch (IOException e) { throw new ServerException(e); } }
@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 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> 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(); } }
public void setDefaultWebModule(final Long oid) throws ServerException, UserException { requireRealUserAuthentication(); try { getBimServer().getWebModuleManager().setDefault(oid); } catch (Exception e) { handleException(e); } }
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 SObjectType getPluginSystemSettings(Long poid) throws ServerException, UserException { // TODO possibly use PluginSettingsCache try (DatabaseSession session = getBimServer().getDatabase().createSession()) { PluginDescriptor pluginDescriptor = session.get(StorePackage.eINSTANCE.getPluginDescriptor(), poid, OldQuery.getDefault()); ObjectType settings = pluginDescriptor.getSettings(); return getBimServer().getSConverter().convertToSObject(settings); } catch (Exception e) { return handleException(e); } }
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 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 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(); } }