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