use of org.bimserver.database.actions.GetDeserializerByNameDatabaseAction in project BIMserver by opensourceBIM.
the class ServiceImpl method getDeserializerByName.
@Override
public SDeserializerPluginConfiguration getDeserializerByName(String deserializerName) throws ServerException, UserException {
requireAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
return getBimServer().getSConverter().convertToSObject(session.executeAndCommitAction(new GetDeserializerByNameDatabaseAction(session, getInternalAccessMethod(), deserializerName)));
} catch (Exception e) {
handleException(e);
} finally {
session.close();
}
return null;
}
Aggregations