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