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