Commit Graph

8 Commits

Author SHA1 Message Date
alandavis
b31f8715ef REPO-4791 Use Local transforms where Legacy transforms are called. (#688)
- Improve TransformerDebug for isSupported call
2019-11-30 10:09:21 +00:00
alandavis
2af1a96211 REPO-4791 If possible, use Local transforms where Legacy transforms are called.
The objective of this PR is to replace all the ContentService calls related to transforms with calls to the SynchronousTransformClient that switches between Local and Legacy transforms. This will allow us to remove the Legacy transforms at some point and also take advantage of the T-Engines which can be scaled.

- Introduced a ContentTransformService interface to hold all the ContentService calls related to transforms and an implementation class ContentTransformServiceAdaptor as a super class of ContentServiceImpl. The Adaptor provides code to allow the SynchronousTransformClient to be called. As a result any external custom code that uses these methods will be able to take advantage of Local or Legacy transforms.
- The transform code originally in ContentServiceImpl has been moved to ContentTransformServiceImpl, which is a super class of the LegacySynchronousTransformClient.
- All calls in the repository have been replaced with calls to SynchronousTransformClient. There are still a few calls to these methods in ContentServiceImplTest and ArchiveContentTransformerTest that have not been changes as they test Legacy transform code.
- The asynchronous LocalTransformClient now uses the SynchronousTransformClient.
- Bug fix to the TransformationOptionsConverter as it was found that the page number being used for images was wrong. Legacy transformers start at page 1, where as Local and ImageMagick itself start at 0.
- Added a conversion to the new transform option (Map<String,String) in TransformationOptionsConverter, as some of the ContentTransformServiceAdaptor methods need to wrap a Local transformer in a Legacy transformer, so that it may be returned.
- A number of existing tests were passing because the wrong exception was being thrown. When the Local  transformer was used this became more obvious as the tests would fail.
- To avoid other test failing the Local Transform registry is loaded on start up rather than waiting for it to be scheduled, as a few milliseconds needed to read the config was till too large for the test to run and fail. A similar approach had been taken before with tests.
2019-11-29 22:13:43 +00:00
alandavis
5e42f708be REPO-3276 EOL: Remove DB2 (#351)
Removal of DB2 dialect and patches related to DB2.
2019-02-22 10:48:24 +00:00
alandavis
2b6c77b4c3 REPO-3944 Renditions: Disabling the local transform switch should not disable the transform server (#236)
Problems found in caches in the ThumbnailService caused this to take place. TransformerDebug has also been improved to include Transform Service requests and responses.
2018-10-26 11:57:23 +01:00
alandavis
e62aaa7165 REPO-3766 Renditions: Simplified Async Rendition Service 2018-09-25 17:59:57 +01:00
Alex Mukha
d2d67ecad4 REPO-3766 Disable old trasform tests
Disabled old tests which are part of MiscContextTestSuite. The tests
were not run on CI system due to absent transformers or have unrealistic
options. The test suite is now running with remote transformers.
The TransformDebug was enabled for the tests.
2018-09-17 15:09:34 +01:00
Alex Mukha
27d9cd63ab Upgrade Spring (REPO-1295), Quartz (REPO-3049) and remove Hibernate (REPO-2873) (#77)
* Everything connected to ibatis and dialect in alfresco-core was moved to repository.
* Hibernate was removed, dialect detection was recreated. Including schema reference generation.
* Refactoring was done to many tests that extended Spring test classes. The transaction start/commit can now be done via Spring helper class. The tests needs to be annotated by context config (if not standard), test declaration and if transactions need to be used.
* Quartz was updated. The spring configuration for jobs was refactored. The API usages in the code were refactored as well.
* MBeans class was moved to repository.
2018-03-04 16:01:12 +00:00
Alex Mukha
5e247e50b4 REPO-2724 Apply default maven folder structure 2017-07-28 14:51:21 +01:00