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