Search in sources :

Example 1 with GetInstalledPluginBundles

use of org.bimserver.database.actions.GetInstalledPluginBundles in project BIMserver by opensourceBIM.

the class PluginServiceImpl method getInstalledPluginBundles.

@Override
public List<SPluginBundle> getInstalledPluginBundles() throws UserException, ServerException {
    // TODO make sure the database oid's are also coming in with this
    requireRealUserAuthentication();
    DatabaseSession session = getBimServer().getDatabase().createSession();
    try {
        return session.executeAndCommitAction(new GetInstalledPluginBundles(session, getInternalAccessMethod(), getBimServer(), getBimServer().getServerSettingsCache().getServerSettings().isPluginStrictVersionChecking()));
    } catch (Exception e) {
        return handleException(e);
    } finally {
        session.close();
    }
}
Also used : DatabaseSession(org.bimserver.database.DatabaseSession) IOException(java.io.IOException) ServerException(org.bimserver.shared.exceptions.ServerException) BimserverDatabaseException(org.bimserver.BimserverDatabaseException) UserException(org.bimserver.shared.exceptions.UserException) GetInstalledPluginBundles(org.bimserver.database.actions.GetInstalledPluginBundles)

Aggregations

IOException (java.io.IOException)1 BimserverDatabaseException (org.bimserver.BimserverDatabaseException)1 DatabaseSession (org.bimserver.database.DatabaseSession)1 GetInstalledPluginBundles (org.bimserver.database.actions.GetInstalledPluginBundles)1 ServerException (org.bimserver.shared.exceptions.ServerException)1 UserException (org.bimserver.shared.exceptions.UserException)1