LPS-49189 allow subclasses to control redirects

Currently, when there is any custom session message defined, the
redirect (if any) is ignored. Allow users to choose if they want to
always send redirects.
LPS-49189 Not needed
LPS-49189 SF
LPS-49192 fix copyright
LPS-49758 Deprecate initMethod in favor of contents
LPS-49758 Use contents attribute in editors
LPS-49758 Update input-editor usages
LPS-49758 Make it consistent
LPS-49758 Resize is independent from content or initmethod
LPS-49758 Format source
LPS-49758 SF
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.