mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-05-12 17:04:48 +00:00
Merge pull request #69 from Alfresco/ATS-460
ATS-460 : ATS: T-Engines - Update license information to *not* refer to Enterprise edition
This commit is contained in:
commit
86685c74c1
@ -1,6 +1,5 @@
|
|||||||
# Image provides a container in which to run alfresco-pdf-renderer transformations for Alfresco Enterprise Content Services.
|
# Image provides a container in which to run alfresco-pdf-renderer transformations for Alfresco Content Services.
|
||||||
|
|
||||||
# The container is only intended to be used with the Alfresco Enterprise editon which is covered by https://www.alfresco.com/legal/agreements and https://www.alfresco.com/terms-use.
|
|
||||||
# alfresco-pdf-renderer uses the PDFium library from Google Inc. See the license at https://pdfium.googlesource.com/pdfium/+/master/LICENSE or in /pdfium.txt.
|
# alfresco-pdf-renderer uses the PDFium library from Google Inc. See the license at https://pdfium.googlesource.com/pdfium/+/master/LICENSE or in /pdfium.txt.
|
||||||
|
|
||||||
FROM alfresco/alfresco-base-java:11.0.1-openjdk-centos-7-f410546b40ea
|
FROM alfresco/alfresco-base-java:11.0.1-openjdk-centos-7-f410546b40ea
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
### Licenses
|
### Licenses
|
||||||
|
|
||||||
* The code in the alfresco-docker-alfresco-pdf-renderer project is only intended to be use with the Alfresco Enterprise
|
|
||||||
Content Repository which is covered by [https://www.alfresco.com/legal/agreements](https://www.alfresco.com/legal/agreements) and [https://www.alfresco.com/terms-use](https://www.alfresco.com/terms-use)
|
|
||||||
* The alfresco-pdf-renderer transformer uses the PDFium library from Google Inc. See [https://pdfium.googlesource.com/pdfium/+/master/LICENSE](https://pdfium.googlesource.com/pdfium/+/master/LICENSE)
|
* The alfresco-pdf-renderer transformer uses the PDFium library from Google Inc. See [https://pdfium.googlesource.com/pdfium/+/master/LICENSE](https://pdfium.googlesource.com/pdfium/+/master/LICENSE)
|
||||||
or the [pdfium.txt](https://github.com/Alfresco/acs-community-packaging/blob/master/zip/src/main/resources/licenses/3rd-party/pdfium.txt) file placed in the root directory of the docker image.
|
or the [pdfium.txt](https://github.com/Alfresco/acs-community-packaging/blob/master/zip/src/main/resources/licenses/3rd-party/pdfium.txt) file placed in the root directory of the docker image.
|
||||||
|
@ -30,7 +30,7 @@ import static org.alfresco.transformer.fs.FileManager.createAttachment;
|
|||||||
import static org.alfresco.transformer.fs.FileManager.createSourceFile;
|
import static org.alfresco.transformer.fs.FileManager.createSourceFile;
|
||||||
import static org.alfresco.transformer.fs.FileManager.createTargetFile;
|
import static org.alfresco.transformer.fs.FileManager.createTargetFile;
|
||||||
import static org.alfresco.transformer.fs.FileManager.createTargetFileName;
|
import static org.alfresco.transformer.fs.FileManager.createTargetFileName;
|
||||||
import static org.alfresco.transformer.logging.StandardMessages.ENTERPRISE_LICENCE;
|
import static org.alfresco.transformer.logging.StandardMessages.LICENCE;
|
||||||
import static org.springframework.http.HttpStatus.OK;
|
import static org.springframework.http.HttpStatus.OK;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
@ -85,7 +85,7 @@ public class AlfrescoPdfRendererController extends AbstractTransformerController
|
|||||||
public AlfrescoPdfRendererController()
|
public AlfrescoPdfRendererController()
|
||||||
{
|
{
|
||||||
logger.info("-----------------------------------------------------------------------------------------------------------------------------------------------------------");
|
logger.info("-----------------------------------------------------------------------------------------------------------------------------------------------------------");
|
||||||
Arrays.stream(ENTERPRISE_LICENCE.split("\\n")).forEach(logger::info);
|
Arrays.stream(LICENCE.split("\\n")).forEach(logger::info);
|
||||||
logger.info("alfresco-pdf-renderer uses the PDFium library from Google Inc. See the license at https://pdfium.googlesource.com/pdfium/+/master/LICENSE or in /pdfium.txt");
|
logger.info("alfresco-pdf-renderer uses the PDFium library from Google Inc. See the license at https://pdfium.googlesource.com/pdfium/+/master/LICENSE or in /pdfium.txt");
|
||||||
logger.info("-----------------------------------------------------------------------------------------------------------------------------------------------------------");
|
logger.info("-----------------------------------------------------------------------------------------------------------------------------------------------------------");
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Image provides a container in which to run ImageMagick transformations for Alfresco Enterprise Content Services.
|
# Image provides a container in which to run ImageMagick transformations for Alfresco Content Services.
|
||||||
|
|
||||||
# The container is only intended to be used with the Alfresco Enterprise editon which is covered by https://www.alfresco.com/legal/agreements and https://www.alfresco.com/terms-use.
|
|
||||||
# ImageMagick is from ImageMagick Studio LLC. See the license at http://www.imagemagick.org/script/license.php or in /ImageMagick-license.txt.
|
# ImageMagick is from ImageMagick Studio LLC. See the license at http://www.imagemagick.org/script/license.php or in /ImageMagick-license.txt.
|
||||||
|
|
||||||
FROM alfresco/alfresco-base-java:11.0.1-openjdk-centos-7-f410546b40ea
|
FROM alfresco/alfresco-base-java:11.0.1-openjdk-centos-7-f410546b40ea
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
### Licenses
|
### Licenses
|
||||||
|
|
||||||
* The code in the alfresco-docker-imagemagick project is only intended to be use with the Alfresco Enterprise
|
|
||||||
Content Repository which is covered by [https://www.alfresco.com/legal/agreements](https://www.alfresco.com/legal/agreements) and [https://www.alfresco.com/terms-use](https://www.alfresco.com/terms-use)
|
|
||||||
* ImageMagick is from ImageMagick Studio LLC. See the license at [http://www.imagemagick.org/script/license.php](http://www.imagemagick.org/script/license.php)
|
* ImageMagick is from ImageMagick Studio LLC. See the license at [http://www.imagemagick.org/script/license.php](http://www.imagemagick.org/script/license.php)
|
||||||
or the [ImageMagick-license.txt](https://github.com/Alfresco/acs-community-packaging/blob/master/zip/src/main/resources/licenses/3rd-party/ImageMagick-license.txt)
|
or the [ImageMagick-license.txt](https://github.com/Alfresco/acs-community-packaging/blob/master/zip/src/main/resources/licenses/3rd-party/ImageMagick-license.txt)
|
||||||
file placed in the root directory of the docker image.
|
file placed in the root directory of the docker image.
|
||||||
|
@ -30,7 +30,7 @@ import static org.alfresco.transformer.fs.FileManager.createAttachment;
|
|||||||
import static org.alfresco.transformer.fs.FileManager.createSourceFile;
|
import static org.alfresco.transformer.fs.FileManager.createSourceFile;
|
||||||
import static org.alfresco.transformer.fs.FileManager.createTargetFile;
|
import static org.alfresco.transformer.fs.FileManager.createTargetFile;
|
||||||
import static org.alfresco.transformer.fs.FileManager.createTargetFileName;
|
import static org.alfresco.transformer.fs.FileManager.createTargetFileName;
|
||||||
import static org.alfresco.transformer.logging.StandardMessages.ENTERPRISE_LICENCE;
|
import static org.alfresco.transformer.logging.StandardMessages.LICENCE;
|
||||||
import static org.alfresco.transformer.util.Util.stringToInteger;
|
import static org.alfresco.transformer.util.Util.stringToInteger;
|
||||||
import static org.springframework.http.HttpStatus.OK;
|
import static org.springframework.http.HttpStatus.OK;
|
||||||
|
|
||||||
@ -88,7 +88,7 @@ public class ImageMagickController extends AbstractTransformerController
|
|||||||
public ImageMagickController()
|
public ImageMagickController()
|
||||||
{
|
{
|
||||||
logger.info("--------------------------------------------------------------------------------------------------------------------------------------------------------------");
|
logger.info("--------------------------------------------------------------------------------------------------------------------------------------------------------------");
|
||||||
Arrays.stream(ENTERPRISE_LICENCE.split("\\n")).forEach(logger::info);
|
Arrays.stream(LICENCE.split("\\n")).forEach(logger::info);
|
||||||
logger.info("This transformer uses ImageMagick from ImageMagick Studio LLC. See the license at http://www.imagemagick.org/script/license.php or in /ImageMagick-license.txt");
|
logger.info("This transformer uses ImageMagick from ImageMagick Studio LLC. See the license at http://www.imagemagick.org/script/license.php or in /ImageMagick-license.txt");
|
||||||
logger.info("--------------------------------------------------------------------------------------------------------------------------------------------------------------");
|
logger.info("--------------------------------------------------------------------------------------------------------------------------------------------------------------");
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Image provides a container in which to run LibreOffice transformations for Alfresco Enterprise Content Services.
|
# Image provides a container in which to run LibreOffice transformations for Alfresco Content Services.
|
||||||
|
|
||||||
# The container is only intended to be used with the Alfresco Enterprise editon which is covered by https://www.alfresco.com/legal/agreements and https://www.alfresco.com/terms-use.
|
|
||||||
# LibreOffice is from The Document Foundation. See the license at https://www.libreoffice.org/download/license/ or in /libreoffice.txt.
|
# LibreOffice is from The Document Foundation. See the license at https://www.libreoffice.org/download/license/ or in /libreoffice.txt.
|
||||||
|
|
||||||
FROM alfresco/alfresco-base-java:11.0.1-openjdk-centos-7-f410546b40ea
|
FROM alfresco/alfresco-base-java:11.0.1-openjdk-centos-7-f410546b40ea
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
### Licenses
|
### Licenses
|
||||||
|
|
||||||
* The code in the alfresco-docker-libreoffice project is only intended to be use with the Alfresco Enterprise
|
|
||||||
Content Repository which is covered by [https://www.alfresco.com/legal/agreements](https://www.alfresco.com/legal/agreements) and [https://www.alfresco.com/terms-use](https://www.alfresco.com/terms-use)
|
|
||||||
* This transformer uses LibreOffice from The Document Foundation. See the license at
|
* This transformer uses LibreOffice from The Document Foundation. See the license at
|
||||||
[https://www.libreoffice.org/download/license/](https://www.libreoffice.org/download/license/)
|
[https://www.libreoffice.org/download/license/](https://www.libreoffice.org/download/license/)
|
||||||
or the [libreoffice.txt](https://github.com/Alfresco/acs-community-packaging/blob/master/zip/src/main/resources/licenses/3rd-party/libreoffice.txt)
|
or the [libreoffice.txt](https://github.com/Alfresco/acs-community-packaging/blob/master/zip/src/main/resources/licenses/3rd-party/libreoffice.txt)
|
||||||
|
@ -30,7 +30,7 @@ import static org.alfresco.transformer.fs.FileManager.createAttachment;
|
|||||||
import static org.alfresco.transformer.fs.FileManager.createSourceFile;
|
import static org.alfresco.transformer.fs.FileManager.createSourceFile;
|
||||||
import static org.alfresco.transformer.fs.FileManager.createTargetFile;
|
import static org.alfresco.transformer.fs.FileManager.createTargetFile;
|
||||||
import static org.alfresco.transformer.fs.FileManager.createTargetFileName;
|
import static org.alfresco.transformer.fs.FileManager.createTargetFileName;
|
||||||
import static org.alfresco.transformer.logging.StandardMessages.ENTERPRISE_LICENCE;
|
import static org.alfresco.transformer.logging.StandardMessages.LICENCE;
|
||||||
import static org.springframework.http.HttpStatus.OK;
|
import static org.springframework.http.HttpStatus.OK;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
@ -86,7 +86,7 @@ public class LibreOfficeController extends AbstractTransformerController
|
|||||||
public LibreOfficeController()
|
public LibreOfficeController()
|
||||||
{
|
{
|
||||||
logger.info("-------------------------------------------------------------------------------------------------------------------------------------------------------");
|
logger.info("-------------------------------------------------------------------------------------------------------------------------------------------------------");
|
||||||
Arrays.stream(ENTERPRISE_LICENCE.split("\\n")).forEach(logger::info);
|
Arrays.stream(LICENCE.split("\\n")).forEach(logger::info);
|
||||||
logger.info("This transformer uses LibreOffice from The Document Foundation. See the license at https://www.libreoffice.org/download/license/ or in /libreoffice.txt");
|
logger.info("This transformer uses LibreOffice from The Document Foundation. See the license at https://www.libreoffice.org/download/license/ or in /libreoffice.txt");
|
||||||
logger.info("-------------------------------------------------------------------------------------------------------------------------------------------------------");
|
logger.info("-------------------------------------------------------------------------------------------------------------------------------------------------------");
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Image provides a container in which to run Tika transformations for Alfresco Enterprise Content Services.
|
# Image provides a container in which to run Tika transformations for Alfresco Content Services.
|
||||||
|
|
||||||
# The container is only intended to be used with the Alfresco Enterprise editon which is covered by https://www.alfresco.com/legal/agreements and https://www.alfresco.com/terms-use.
|
|
||||||
# Tika is from Apache. See the license at http://www.apache.org/licenses/LICENSE-2.0.
|
# Tika is from Apache. See the license at http://www.apache.org/licenses/LICENSE-2.0.
|
||||||
|
|
||||||
FROM alfresco/alfresco-base-java:11.0.1-openjdk-centos-7-f410546b40ea
|
FROM alfresco/alfresco-base-java:11.0.1-openjdk-centos-7-f410546b40ea
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
### Licenses
|
### Licenses
|
||||||
|
|
||||||
* The code in the alfresco-docker-imagemagick project is only intended to be use with the Alfresco Enterprise
|
|
||||||
Content Repository which is covered by [https://www.alfresco.com/legal/agreements](https://www.alfresco.com/legal/agreements) and [https://www.alfresco.com/terms-use](https://www.alfresco.com/terms-use)
|
|
||||||
* Tika is from Apache. See the license at http://www.apache.org/licenses/LICENSE-2.0 or the
|
* Tika is from Apache. See the license at http://www.apache.org/licenses/LICENSE-2.0 or the
|
||||||
[Apache 2.0.txt](https://github.com/Alfresco/acs-community-packaging/blob/master/distribution/src/main/resources/licenses/3rd-party/Apache%202.0.txt)
|
[Apache 2.0.txt](https://github.com/Alfresco/acs-community-packaging/blob/master/distribution/src/main/resources/licenses/3rd-party/Apache%202.0.txt)
|
||||||
file placed in the root directory of the docker image.
|
file placed in the root directory of the docker image.
|
||||||
|
@ -37,7 +37,7 @@ import static org.alfresco.transformer.fs.FileManager.createAttachment;
|
|||||||
import static org.alfresco.transformer.fs.FileManager.createSourceFile;
|
import static org.alfresco.transformer.fs.FileManager.createSourceFile;
|
||||||
import static org.alfresco.transformer.fs.FileManager.createTargetFile;
|
import static org.alfresco.transformer.fs.FileManager.createTargetFile;
|
||||||
import static org.alfresco.transformer.fs.FileManager.createTargetFileName;
|
import static org.alfresco.transformer.fs.FileManager.createTargetFileName;
|
||||||
import static org.alfresco.transformer.logging.StandardMessages.ENTERPRISE_LICENCE;
|
import static org.alfresco.transformer.logging.StandardMessages.LICENCE;
|
||||||
import static org.alfresco.transformer.util.Util.stringToBoolean;
|
import static org.alfresco.transformer.util.Util.stringToBoolean;
|
||||||
import static org.springframework.http.HttpStatus.BAD_REQUEST;
|
import static org.springframework.http.HttpStatus.BAD_REQUEST;
|
||||||
import static org.springframework.http.HttpStatus.OK;
|
import static org.springframework.http.HttpStatus.OK;
|
||||||
@ -96,7 +96,7 @@ public class TikaController extends AbstractTransformerController
|
|||||||
public TikaController()
|
public TikaController()
|
||||||
{
|
{
|
||||||
logger.info("--------------------------------------------------------------------------------------------------------------------------------------------------------------");
|
logger.info("--------------------------------------------------------------------------------------------------------------------------------------------------------------");
|
||||||
Arrays.stream(ENTERPRISE_LICENCE.split("\\n")).forEach(logger::info);
|
Arrays.stream(LICENCE.split("\\n")).forEach(logger::info);
|
||||||
logger.info("Tika is from Apache. See the license at http://www.apache.org/licenses/LICENSE-2.0. or in /Apache\\ 2.0.txt");
|
logger.info("Tika is from Apache. See the license at http://www.apache.org/licenses/LICENSE-2.0. or in /Apache\\ 2.0.txt");
|
||||||
logger.info("--------------------------------------------------------------------------------------------------------------------------------------------------------------");
|
logger.info("--------------------------------------------------------------------------------------------------------------------------------------------------------------");
|
||||||
}
|
}
|
||||||
|
@ -26,9 +26,26 @@
|
|||||||
*/
|
*/
|
||||||
package org.alfresco.transformer;
|
package org.alfresco.transformer;
|
||||||
|
|
||||||
import org.alfresco.transformer.transformers.SelectingTransformer;
|
import static org.alfresco.transform.client.model.Mimetype.MIMETYPE_HTML;
|
||||||
|
import static org.alfresco.transform.client.model.Mimetype.MIMETYPE_TEXT_PLAIN;
|
||||||
|
import static org.alfresco.transformer.fs.FileManager.createAttachment;
|
||||||
|
import static org.alfresco.transformer.fs.FileManager.createSourceFile;
|
||||||
|
import static org.alfresco.transformer.fs.FileManager.createTargetFile;
|
||||||
|
import static org.alfresco.transformer.fs.FileManager.createTargetFileName;
|
||||||
|
import static org.alfresco.transformer.transformers.HtmlParserContentTransformer.SOURCE_ENCODING;
|
||||||
|
import static org.alfresco.transformer.transformers.HtmlParserContentTransformer.TARGET_ENCODING;
|
||||||
|
import static org.springframework.http.HttpStatus.OK;
|
||||||
|
import static org.springframework.http.MediaType.MULTIPART_FORM_DATA_VALUE;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
import org.alfresco.transformer.logging.LogEntry;
|
import org.alfresco.transformer.logging.LogEntry;
|
||||||
import org.alfresco.transformer.probes.ProbeTestTransform;
|
import org.alfresco.transformer.probes.ProbeTestTransform;
|
||||||
|
import org.alfresco.transformer.transformers.SelectingTransformer;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@ -39,24 +56,6 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import java.io.File;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import static org.alfresco.transform.client.model.Mimetype.MIMETYPE_HTML;
|
|
||||||
import static org.alfresco.transform.client.model.Mimetype.MIMETYPE_TEXT_PLAIN;
|
|
||||||
import static org.alfresco.transformer.transformers.HtmlParserContentTransformer.SOURCE_ENCODING;
|
|
||||||
import static org.alfresco.transformer.transformers.HtmlParserContentTransformer.TARGET_ENCODING;
|
|
||||||
import static org.alfresco.transformer.fs.FileManager.createAttachment;
|
|
||||||
import static org.alfresco.transformer.fs.FileManager.createSourceFile;
|
|
||||||
import static org.alfresco.transformer.fs.FileManager.createTargetFile;
|
|
||||||
import static org.alfresco.transformer.fs.FileManager.createTargetFileName;
|
|
||||||
import static org.alfresco.transformer.logging.StandardMessages.ENTERPRISE_LICENCE;
|
|
||||||
import static org.springframework.http.HttpStatus.OK;
|
|
||||||
import static org.springframework.http.MediaType.MULTIPART_FORM_DATA_VALUE;
|
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
public class MiscController extends AbstractTransformerController
|
public class MiscController extends AbstractTransformerController
|
||||||
{
|
{
|
||||||
|
@ -28,10 +28,7 @@ package org.alfresco.transformer.logging;
|
|||||||
|
|
||||||
public interface StandardMessages
|
public interface StandardMessages
|
||||||
{
|
{
|
||||||
String ENTERPRISE_LICENCE =
|
String LICENCE =
|
||||||
"This image is only intended to be used with the Alfresco Enterprise Content Repository which is covered by\n"+
|
|
||||||
"https://www.alfresco.com/legal/agreements and https://www.alfresco.com/terms-use\n" +
|
|
||||||
"\n" +
|
|
||||||
"License rights for this program may be obtained from Alfresco Software, Ltd. pursuant to a written agreement\n" +
|
"License rights for this program may be obtained from Alfresco Software, Ltd. pursuant to a written agreement\n" +
|
||||||
"and any use of this program without such an agreement is prohibited.\n" +
|
"and any use of this program without such an agreement is prohibited.\n" +
|
||||||
"\n" ;
|
"\n" ;
|
||||||
|
1
pom.xml
1
pom.xml
@ -14,6 +14,7 @@
|
|||||||
<version>2.1.0-EA4-SNAPSHOT</version>
|
<version>2.1.0-EA4-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<image.tag>latest</image.tag>
|
<image.tag>latest</image.tag>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user