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