LPS-48728 rename methods to get repositoryId

Make clear the distinction between the two possible ways for obtaining
repositoryIds:

  - For Liferay (internal) repositories, we have to retrieve the model
    and get the repositoryId from there.

  - For external repositories, get the repository entry from DB.
LPS-48728 get repositoryId and delegate creation

Instead of creating a repository and checking for nullness, try the two
possible ways of getting the repositoryId (first for internal, then for
external repositories), and delegate the creation to the other factory
method.
LPS-48728 remove unused methods and cleanup

Remove the overloaded methods that are no longer needed. Also, move the
getRepository method to the parent class, as the implementation is
identical in both factories.
LPS-48728 get repositoryId in RepositoryLocalService

Move the responsibility of obtaining the repositoryId out of the
factories and into the local service.

The removed tests overlap with those at RepositoryLocalServiceTest, so
there is no loss of test coverage.
LPS-48728 refactor repository id methods

Refactor logic for getting a repositoryId.
LPS-48728 check permissions in remote service
LPS-48728 remove base class

I'm going to fuse the two factories into one. The first step in the
refactoring is to get rid of the common base class, moving the code into
the subclasses.
LPS-48728 rename factory methods

Rename factory methods to match those of RepositoryCreator.
LPS-48728 get local repositories using repository factory

Use RepositoryFactory instead of LocalRepositoryFactory to get local
repositories.
LPS-48728 rename local repository methods

In the next commit I'm going to copy the code into
RepositoryFactoryImpl. The renaming will make things easier.
LPS-48728 move code into RepositoryFactory; no logic change

Move all code out of LocalRepositoryFactory and into RepositoryFactory.
LPS-48728 delete LocalRepositoryFactory

Remove interface, classes and Spring bean. No need to deprecate, as
these elements were added in 7.0
LPS-48728 no need to special case internal repositories

Internal and external repositories are created the same way, no need to
check className.
LPS-48728 inline methods

Methods are simple enough, no need to split them in two.
LPS-48728 copy capability collections before modifying

Collections returned by definitions may be shared.
LPS-48728 remove usages of RepositoryCreator and rename

Remove the RepositoryCreator interface, using RepositoryFactory in its
place. Also, rename all variables and methods accordingly.
LPS-48728 SF
LPS-48728 SF