You will be able to fetch version records with the following function calls:
public ResourceManager getResourceManager()
Note: userID is only used for checking privilege in this method, and not for filtering the submitter.