mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-05-26 17:25:11 +00:00
DEVPLAT-13,14,31-37
This commit is contained in:
parent
a04ef8ad72
commit
60193a7029
@ -38,6 +38,7 @@
|
|||||||
<filtering>false</filtering>
|
<filtering>false</filtering>
|
||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
|
@ -52,12 +52,6 @@
|
|||||||
<include>**/*.properties</include>
|
<include>**/*.properties</include>
|
||||||
</includes>
|
</includes>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
<fileSet encoding="UTF-8" filtered="false">
|
|
||||||
<directory>tomcat</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**</include>
|
|
||||||
</includes>
|
|
||||||
</fileSet>
|
|
||||||
</fileSets>
|
</fileSets>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
@ -87,18 +81,6 @@
|
|||||||
<include>**</include>
|
<include>**</include>
|
||||||
</includes>
|
</includes>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
<fileSet encoding="UTF-8" filtered="false">
|
|
||||||
<directory>src/test/properties</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**/*.properties</include>
|
|
||||||
</includes>
|
|
||||||
</fileSet>
|
|
||||||
<fileSet encoding="UTF-8" filtered="false">
|
|
||||||
<directory>tomcat</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**</include>
|
|
||||||
</includes>
|
|
||||||
</fileSet>
|
|
||||||
</fileSets>
|
</fileSets>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
@ -124,12 +106,6 @@
|
|||||||
|
|
||||||
<module id="share" dir="share" name="share" filtered="false">
|
<module id="share" dir="share" name="share" filtered="false">
|
||||||
<fileSets>
|
<fileSets>
|
||||||
<fileSet encoding="UTF-8">
|
|
||||||
<directory>src/main/properties</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**/*.properties</include>
|
|
||||||
</includes>
|
|
||||||
</fileSet>
|
|
||||||
<fileSet encoding="UTF-8" filtered="false">
|
<fileSet encoding="UTF-8" filtered="false">
|
||||||
<directory>src/main/resources</directory>
|
<directory>src/main/resources</directory>
|
||||||
<includes>
|
<includes>
|
||||||
|
@ -1,11 +1,14 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>${groupId}</groupId>
|
<groupId>${groupId}</groupId>
|
||||||
<artifactId>${artifactId}</artifactId>
|
<artifactId>${artifactId}</artifactId>
|
||||||
<version>${version}</version>
|
<version>${version}</version>
|
||||||
<name>Alfresco Repository and Share Quickstart with database and an embedded runner.</name>
|
<name>Alfresco Repository and Share Quickstart with database and an embedded runner.</name>
|
||||||
<description>This All-in-One project allows to manage all the components involved in Alfresco development (Repo, Share, Solr, AMPs) in one project</description>
|
<description>This All-in-One project allows to manage all the components involved in Alfresco development (Repo,
|
||||||
|
Share, Solr4, AMPs) in one project
|
||||||
|
</description>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
@ -15,23 +18,19 @@
|
|||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
| SDK properties have sensible defaults in the SDK parent, but you can override the properties below to use another version.
|
SDK properties have sensible defaults in the SDK parent,
|
||||||
| For more available properties see the alfresco-sdk-parent POM.
|
but you can override the properties below to use another version.
|
||||||
|
For more available properties see the alfresco-sdk-parent POM.
|
||||||
-->
|
-->
|
||||||
<properties>
|
<properties>
|
||||||
<!--
|
<!-- The following are default values for data location and Alfresco version.
|
||||||
| Defines the groupId for the Alfresco Artifacts to work against. As of 4.2 the only allowed value is: org.alfresco
|
Uncomment if you need to change -->
|
||||||
| NOTE: See http://docs.alfresco.com/4.2/concepts/dev-extensions-maven-sdk-tutorials-alfresco-enterprise.html for details
|
|
||||||
-->
|
|
||||||
<!-- <alfresco.groupId>${alfresco_target_groupId}</alfresco.groupId> -->
|
|
||||||
<!-- Defines the Alfresco version to work against.
|
|
||||||
Community versions are typically identified by major.minor.character (4.2.a) while Enterprise versions are identified by major.minor.digit (4.2.0)
|
|
||||||
-->
|
|
||||||
<!-- <alfresco.version>${alfresco_target_version}</alfresco.version>-->
|
<!-- <alfresco.version>${alfresco_target_version}</alfresco.version>-->
|
||||||
|
<!-- <alfresco.data.location>${alfresco.data.location}</alfresco.data.location> -->
|
||||||
|
|
||||||
<!-- This control the root logging level for all apps -->
|
<!-- This control the root logging level for all apps -->
|
||||||
<app.log.root.level>WARN</app.log.root.level>
|
<app.log.root.level>WARN</app.log.root.level>
|
||||||
<!-- This controls the default data location for dir.root -->
|
|
||||||
<alfresco.data.location>alf_data_dev</alfresco.data.location>
|
|
||||||
<!-- This controls which properties will be picked in multi-enviromment build -->
|
<!-- This controls which properties will be picked in multi-enviromment build -->
|
||||||
<env>local</env>
|
<env>local</env>
|
||||||
</properties>
|
</properties>
|
||||||
@ -54,6 +53,33 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<!-- Compress JavaScript files and store as *-min.js -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>net.alchim31.maven</groupId>
|
||||||
|
<artifactId>yuicompressor-maven-plugin</artifactId>
|
||||||
|
<version>1.5.1</version>
|
||||||
|
<configuration>
|
||||||
|
<excludes>
|
||||||
|
<exclude>alfresco/**/*.*</exclude>
|
||||||
|
<exclude>**/*-min.js</exclude>
|
||||||
|
<exclude>**/*.css</exclude>
|
||||||
|
</excludes>
|
||||||
|
<resources/>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>compress-js</id>
|
||||||
|
<goals>
|
||||||
|
<goal>compress</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
<!-- Invoke your build with -Prun to run the multimodule project and enable rapid dev mode in your IDE.
|
<!-- Invoke your build with -Prun to run the multimodule project and enable rapid dev mode in your IDE.
|
||||||
See 'run' profile in the sub modules pom.xml for further behavioral details.
|
See 'run' profile in the sub modules pom.xml for further behavioral details.
|
||||||
-->
|
-->
|
||||||
|
@ -13,17 +13,12 @@
|
|||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<!-- Defines the target WAR artifactId to run this amp, only used with the -Pamp-to-war switch
|
<!-- Property overrides are mostly done in parent pom -->
|
||||||
. | Allowed values: alfresco | share. Defaults to a repository AMP, but could point to your custom corporate Alfresco WAR -->
|
|
||||||
<alfresco.client.war>alfresco</alfresco.client.war>
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<!--
|
<!-- Following dependencies are needed for compiling Java code in src/main/java;
|
||||||
Following dependencies are needed for compiling Java code in src/main/java; <scope>provided</scope>
|
<scope>provided</scope> is inherited for each of the following;
|
||||||
is inherited for each of the following; for more info, please refer to alfresco-integration-parent
|
for more info, please refer to alfresco-platform-distribution POM -->
|
||||||
POM definition
|
|
||||||
@TODO - document
|
|
||||||
-->
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${alfresco.groupId}</groupId>
|
<groupId>${alfresco.groupId}</groupId>
|
||||||
@ -32,7 +27,24 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
<!-- RM profile, manually activated, automatically adds support for RM development (dependencies) and install the RM amps in the WARs -->
|
|
||||||
|
<!--
|
||||||
|
Brings in the extra Enterprise specific repository classes,
|
||||||
|
if the 'enterprise' profile has been activated, needs to be activated manually. -->
|
||||||
|
<profile>
|
||||||
|
<id>enterprise</id>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>${alfresco.groupId}</groupId>
|
||||||
|
<artifactId>alfresco-enterprise-repository</artifactId>
|
||||||
|
<version>${alfresco.version}</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</profile>
|
||||||
|
|
||||||
|
<!-- RM profile, manually activated, automatically adds support for RM development
|
||||||
|
(dependencies) and install the RM amps in the WARs -->
|
||||||
<profile>
|
<profile>
|
||||||
<id>rm</id>
|
<id>rm</id>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@ -45,19 +57,8 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</profile>
|
</profile>
|
||||||
<!-- Enterprise profile, manually activated, automatically adds support for Enterprise edition development (dependencies) -->
|
|
||||||
<profile>
|
<!-- If we are running embedded skip unit tests -->
|
||||||
<id>enterprise</id>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>${alfresco.groupId}</groupId>
|
|
||||||
<artifactId>alfresco-enterprise-repository</artifactId>
|
|
||||||
<version>${alfresco.version}</version>
|
|
||||||
<type>jar</type>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</profile>
|
|
||||||
<profile>
|
<profile>
|
||||||
<id>run</id>
|
<id>run</id>
|
||||||
<properties>
|
<properties>
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Downloads the spring-loaded lib if not existing and runs the repository AMP
|
|
||||||
springloadedfile=~/.m2/repository/org/springframework/springloaded/${springloaded.version}/springloaded-${springloaded.version}.jar
|
|
||||||
|
|
||||||
if [ ! -f $springloadedfile ]; then
|
|
||||||
mvn validate -Psetup
|
|
||||||
fi
|
|
||||||
|
|
||||||
MAVEN_OPTS="-javaagent:$springloadedfile -noverify -Xms256m -Xmx2G -XX:PermSize=300m" mvn integration-test -Prun
|
|
@ -0,0 +1,5 @@
|
|||||||
|
## This Alfresco Repo Configuration file should be used for custom properties that are introduced by this module.
|
||||||
|
## Define default values for all properties here.
|
||||||
|
## System Administrators can override these values in environment specific configurations in
|
||||||
|
## alfresco/tomcat/shared/classes/alfresco-global.properties.
|
||||||
|
##
|
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||||
|
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
|
||||||
|
|
||||||
|
<!-- The bootstrap-context.xml file is used for patch definitions, importers,
|
||||||
|
workflow, and loading custom content models. -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Registration of new models -->
|
||||||
|
<bean id="com.mycompany.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
|
||||||
|
<property name="models">
|
||||||
|
<list>
|
||||||
|
<value>alfresco/module/${project.artifactId}/model/content-model.xml</value>
|
||||||
|
<value>alfresco/module/${project.artifactId}/model/workflow-model.xml</value>
|
||||||
|
|
||||||
|
</list>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</beans>
|
@ -0,0 +1,27 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<model name="myc:contentModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
||||||
|
|
||||||
|
<!-- Optional meta-data about the model -->
|
||||||
|
<description>Document Model for Repo Extension X</description>
|
||||||
|
<author>My Name</author>
|
||||||
|
<version>1.0</version>
|
||||||
|
|
||||||
|
<imports>
|
||||||
|
<!-- Import Alfresco Dictionary Definitions -->
|
||||||
|
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
|
||||||
|
<!-- Import Alfresco Content Domain Model Definitions -->
|
||||||
|
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
|
||||||
|
<!-- Import Alfresco System Model Definitions -->
|
||||||
|
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
|
||||||
|
</imports>
|
||||||
|
|
||||||
|
<!-- Custom namespace for your domain -->
|
||||||
|
<namespaces>
|
||||||
|
<namespace uri="http://www.mycompany.com/model/content/1.0" prefix="myc"/>
|
||||||
|
</namespaces>
|
||||||
|
|
||||||
|
<!-- ===============================================================================================================
|
||||||
|
Constraints, Types, and Aspects go here...
|
||||||
|
-->
|
||||||
|
|
||||||
|
</model>
|
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<model name="myw:workflowModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
||||||
|
<!-- Optional meta-data about the model -->
|
||||||
|
<description>Workflow Model for Repo Extension X</description>
|
||||||
|
<author>My Name</author>
|
||||||
|
<version>1.0</version>
|
||||||
|
|
||||||
|
<imports>
|
||||||
|
<!-- Import Alfresco Dictionary Definitions -->
|
||||||
|
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
|
||||||
|
<!-- Import Alfresco Content Domain Model Definitions -->
|
||||||
|
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
|
||||||
|
<!-- Import Alfresco Workflow Model Definitions -->
|
||||||
|
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"/>
|
||||||
|
</imports>
|
||||||
|
|
||||||
|
<!-- Custom namespace for your domain -->
|
||||||
|
<namespaces>
|
||||||
|
<namespace uri="http://www.mycompany.com/model/workflow/1.0" prefix="myw"/>
|
||||||
|
</namespaces>
|
||||||
|
|
||||||
|
<!-- ===============================================================================================================
|
||||||
|
Constraints, Types, and Aspects go here...
|
||||||
|
-->
|
||||||
|
</model>
|
||||||
|
|
@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
<beans>
|
<beans>
|
||||||
|
|
||||||
<import resource="classpath:alfresco/module/${artifactId}/context/service-context.xml" />
|
<!-- This is filtered by Maven at build time, so that module name is single sourced. -->
|
||||||
|
<import resource="classpath:alfresco/module/${project.artifactId}/context/service-context.xml" />
|
||||||
|
<import resource="classpath:alfresco/module/${project.artifactId}/context/bootstrap-context.xml" />
|
||||||
|
|
||||||
</beans>
|
</beans>
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!-- This file is included only when running this project with -Pamp-to-war -->
|
|
||||||
<Context docBase="${alfresco.client.war.folder}" path="${alfresco.client.contextPath}">
|
|
||||||
|
|
||||||
|
|
||||||
<Resources className="org.apache.naming.resources.VirtualDirContext"
|
|
||||||
extraResourcePaths="/=${project.build.directory}/${project.build.finalName}/web" />
|
|
||||||
|
|
||||||
|
|
||||||
<Loader searchVirtualFirst="true" className="org.apache.catalina.loader.VirtualWebappLoader"
|
|
||||||
virtualClasspath="${project.build.outputDirectory};${project.build.testOutputDirectory};${project.build.directory}/${project.build.finalName}/config" />
|
|
||||||
|
|
||||||
<!--
|
|
||||||
<Environment override="false" type="java.lang.Boolean" name="properties/startup.enable" description="A flag that globally enables or disables startup of the major Alfresco subsystems." value="true"/>
|
|
||||||
<Environment override="false" type="java.lang.String" name="properties/dir.root" description="The filesystem directory below which content and index data is stored. Should be on a shared disk if this is a clustered installation."/>
|
|
||||||
<Environment override="false" type="java.lang.String" name="properties/hibernate.dialect" description="The fully qualified name of a org.hibernate.dialect.Dialect subclass that allows Hibernate to generate SQL optimized for a particular relational database. Choose from org.hibernate.dialect.DerbyDialect, org.hibernate.dialect.MySQLInnoDBDialect, org.alfresco.repo.domain.hibernate.dialect.AlfrescoOracle9Dialect, org.alfresco.repo.domain.hibernate.dialect.AlfrescoSybaseAnywhereDialect, org.alfresco.repo.domain.hibernate.dialect.AlfrescoSQLServerDialect, org.hibernate.dialect.PostgreSQLDialect"/>
|
|
||||||
<Environment override="false" type="java.lang.String" name="properties/hibernate.query.substitutions" description="Mapping from tokens in Hibernate queries to SQL tokens. For PostgreSQL, set this to "true TRUE, false FALSE"."/>
|
|
||||||
<Environment override="false" type="java.lang.Boolean" name="properties/hibernate.jdbc.use_get_generated_keys" description="Enable use of JDBC3 PreparedStatement.getGeneratedKeys() to retrieve natively generated keys after insert. Requires JDBC3+ driver. Set to false if your driver has problems with the Hibernate identifier generators. By default, tries to determine the driver capabilities using connection metadata."/>
|
|
||||||
<Environment override="false" type="java.lang.String" name="properties/hibernate.default_schema" description="Qualify unqualified table names with the given schema/tablespace in generated SQL. It may be necessary to set this when the target database has more than one schema."/>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- This enables hot reloading of web resources from uncompressed jars (while in prod they would be loaded from WEB-INF/lib/{\*.jar}/META-INF/resources -->
|
|
||||||
<JarScanner scanAllDirectories="true" />
|
|
||||||
|
|
||||||
</Context>
|
|
@ -113,6 +113,7 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
<!-- Runs regression tests using Alfresco Share PO (Page Object) vanilla Selenium / Webdrone driven functional test, during integration-test phase.
|
<!-- Runs regression tests using Alfresco Share PO (Page Object) vanilla Selenium / Webdrone driven functional test, during integration-test phase.
|
||||||
NOTE: Assumes an already running Alfresco + Share at the default location ${app.share.url} (e.g. by invoking -Prun,regression) -->
|
NOTE: Assumes an already running Alfresco + Share at the default location ${app.share.url} (e.g. by invoking -Prun,regression) -->
|
||||||
<profile>
|
<profile>
|
||||||
|
@ -1,14 +1,28 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!-- This context file is used only for rapid development, never installed released with the webapp -->
|
<!-- ===================================================================================================================
|
||||||
<Context>
|
This context file is used only in a development IDE for rapid development,
|
||||||
|
it is never released with the Alfresco.war
|
||||||
|
|
||||||
<Resources className="org.apache.naming.resources.VirtualDirContext" extraResourcePaths="/=${project.parent.basedir}/repo-amp/target/repo-amp/web" />
|
IMPORTANT: If an AMP or JAR extension is added to the Alfresco WAR,
|
||||||
|
then you need to add the paths below for this new extension.
|
||||||
|
=================================================================================================================-->
|
||||||
|
|
||||||
|
<!-- Pick up static resource files from ../repo/target/repo.
|
||||||
|
The Alfresco.war 5.0 does not have a webapp (it used to have Alfresco Explorer but not anymore)
|
||||||
|
that we will access, so this docBase might not be needed -->
|
||||||
|
<Context docBase="${project.parent.basedir}/alfresco-war/target/${project.build.finalName}">
|
||||||
|
<!-- Pick up static resource files from AMPs and other directories (this should not include docBase) -->
|
||||||
|
<Resources className="org.apache.naming.resources.VirtualDirContext"
|
||||||
|
extraResourcePaths="/=${project.parent.basedir}/repo-amp/target/repo-amp/web" />
|
||||||
|
|
||||||
|
<!-- Configure where the Alfresco (alfresco.war) web application can load classes, test classes, and config files -->
|
||||||
<Loader className="org.apache.catalina.loader.VirtualWebappLoader"
|
<Loader className="org.apache.catalina.loader.VirtualWebappLoader"
|
||||||
searchVirtualFirst="true"
|
searchVirtualFirst="true"
|
||||||
virtualClasspath="${project.parent.basedir}/repo-amp/target/classes;${project.parent.basedir}/repo-amp/target/test-classes;${project.parent.basedir}/repo-amp/target/repo-amp/config" />
|
virtualClasspath="${project.parent.basedir}/repo-amp/target/classes;${project.parent.basedir}/repo-amp/target/test-classes;${project.parent.basedir}/repo-amp/target/repo-amp/config" />
|
||||||
|
|
||||||
<!-- This enables hot reloading of web resources from uncompressed jars (while in prod they would be loaded from WEB-INF/lib/{\*.jar}/META-INF/resources -->
|
<!-- Load from all directories, not just when the META-INF directory is found in exploded JAR -->
|
||||||
<JarScanner scanAllDirectories="true" />
|
<JarScanner scanAllDirectories="true" />
|
||||||
</Context>
|
</Context>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,13 +1,25 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!-- This context file is used only for rapid development, never installed released with the webapp -->
|
<!-- ===================================================================================================================
|
||||||
<Context docBase="../share/target/share">
|
This context file is used only in a development IDE for rapid development,
|
||||||
|
it is never released with the Share.war
|
||||||
|
|
||||||
<Resources className="org.apache.naming.resources.VirtualDirContext" extraResourcePaths="/=${project.parent.basedir}/share-amp/target/share-amp/web" />
|
IMPORTANT: If an AMP or JAR extension is added to the Share WAR,
|
||||||
|
then you need to add the paths below for this new extension.
|
||||||
|
=================================================================================================================-->
|
||||||
|
<Context>
|
||||||
|
<!-- Pick up static resource files from any Share extensions, being it a JAR or an AMP
|
||||||
|
(this should not include docBase) -->
|
||||||
|
<Resources className="org.apache.naming.resources.VirtualDirContext"
|
||||||
|
extraResourcePaths="/=${project.parent.basedir}/share-amp/target/share-amp/web" />
|
||||||
|
|
||||||
|
<!-- Configure where the Share (share.war) web application can load classes, test classes, and config -->
|
||||||
<Loader className="org.apache.catalina.loader.VirtualWebappLoader"
|
<Loader className="org.apache.catalina.loader.VirtualWebappLoader"
|
||||||
searchVirtualFirst="true"
|
searchVirtualFirst="true"
|
||||||
virtualClasspath="${project.parent.basedir}/share-amp/target/classes;${project.parent.basedir}/share-amp/target/test-classes;${project.parent.basedir}/share-amp/target/share-amp/config" />
|
virtualClasspath="${project.parent.basedir}/share-amp/target/classes;${project.parent.basedir}/share-amp/target/test-classes;${project.parent.basedir}/share-amp/target/share-amp/config" />
|
||||||
|
|
||||||
<!-- This enables hot reloading of web resources from uncompressed jars (while in prod they would be loaded from WEB-INF/lib/{\*.jar}/META-INF/resources -->
|
<!-- Load from all directories, not just when the META-INF directory is found in exploded JAR -->
|
||||||
<JarScanner scanAllDirectories="true" />
|
<JarScanner scanAllDirectories="true" />
|
||||||
|
|
||||||
</Context>
|
</Context>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,7 +33,6 @@
|
|||||||
<app.log.root.level>WARN</app.log.root.level>
|
<app.log.root.level>WARN</app.log.root.level>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|
||||||
<!-- Following dependencies are needed for compiling Java code in src/main/java;
|
<!-- Following dependencies are needed for compiling Java code in src/main/java;
|
||||||
<scope>provided</scope> is inherited for each of the following;
|
<scope>provided</scope> is inherited for each of the following;
|
||||||
for more info, please refer to alfresco-platform-distribution POM -->
|
for more info, please refer to alfresco-platform-distribution POM -->
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Downloads the spring-loaded lib if not existing and runs the share AMP
|
|
||||||
springloadedfile=~/.m2/repository/org/springframework/springloaded/${springloaded.version}/springloaded-${springloaded.version}.jar
|
|
||||||
|
|
||||||
if [ ! -f $springloadedfile ]; then
|
|
||||||
mvn validate -Psetup
|
|
||||||
fi
|
|
||||||
|
|
||||||
MAVEN_OPTS="-javaagent:$springloadedfile -noverify" mvn integration-test -Pamp-to-war
|
|
@ -0,0 +1,9 @@
|
|||||||
|
# This file should contain messages and labels specific to this share extension
|
||||||
|
# Put here things like:
|
||||||
|
# Content Model Aspect and Type Labels
|
||||||
|
# Form field labels
|
||||||
|
# Doc lib Action labels and messages
|
||||||
|
# Doc Lib Action Forms labels
|
||||||
|
#
|
||||||
|
|
||||||
|
|
@ -0,0 +1,29 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xmlns:hz="http://www.hazelcast.com/schema/spring"
|
||||||
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||||
|
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
||||||
|
http://www.hazelcast.com/schema/spring
|
||||||
|
http://www.hazelcast.com/schema/spring/hazelcast-spring-2.4.xsd">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Define beans related to this Share extension here, such as
|
||||||
|
evaluators and resource bootstrapping.
|
||||||
|
|
||||||
|
Note. Any configuration related to the whole Share.war webapp
|
||||||
|
(i.e. not specific to this share extension) should be
|
||||||
|
placed in the alfresco-allinone/share/src/main/resources/alfresco/web-extension/custom-slingshot-application-context.xml file
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Add extension specific messages and labels -->
|
||||||
|
<bean id="com.mycompany.share-amp.resources"
|
||||||
|
class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
|
||||||
|
<property name="resourceBundles">
|
||||||
|
<list>
|
||||||
|
<value>alfresco.messages.custom</value>
|
||||||
|
</list>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
</beans>
|
@ -0,0 +1,4 @@
|
|||||||
|
## If you are overriding existing pages/components put these extension modules here.
|
||||||
|
## If you are defining new extensions add them under resources/alfresco/site-data.
|
||||||
|
##
|
||||||
|
|
@ -0,0 +1,4 @@
|
|||||||
|
## If you are overriding out-of-the-box Alfresco web scripts put these files here.
|
||||||
|
## If you are defining new web scripts add them under resources/alfresco/site-webscripts.
|
||||||
|
##
|
||||||
|
|
@ -1,422 +1,14 @@
|
|||||||
|
<!-- Share configuration related to this particular Share module extension, such as:
|
||||||
|
- Doclib action config
|
||||||
|
- Form config
|
||||||
|
- Aspect and Type config
|
||||||
|
|
||||||
|
Note. Any configuration related to the whole Share.war webapp
|
||||||
|
(i.e. not specific to this share extension) should be
|
||||||
|
placed in the environment specific config:
|
||||||
|
alfresco-allinone/share/src/main/resources/alfresco/web-extension/share-config-custom.xml file
|
||||||
|
-->
|
||||||
<alfresco-config>
|
<alfresco-config>
|
||||||
|
|
||||||
<!-- Global config section -->
|
|
||||||
<config replace="true">
|
|
||||||
<flags>
|
|
||||||
<!--
|
|
||||||
Developer debugging setting to turn on DEBUG mode for client scripts in the browser
|
|
||||||
-->
|
|
||||||
<client-debug>false</client-debug>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
LOGGING can always be toggled at runtime when in DEBUG mode (Ctrl, Ctrl, Shift, Shift).
|
|
||||||
This flag automatically activates logging on page load.
|
|
||||||
-->
|
|
||||||
<client-debug-autologging>false</client-debug-autologging>
|
|
||||||
</flags>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
<config evaluator="string-compare" condition="WebFramework">
|
|
||||||
<web-framework>
|
|
||||||
<!-- SpringSurf Autowire Runtime Settings -->
|
|
||||||
<!--
|
|
||||||
Developers can set mode to 'development' to disable; SpringSurf caches,
|
|
||||||
FreeMarker template caching and Rhino JavaScript compilation.
|
|
||||||
-->
|
|
||||||
<autowire>
|
|
||||||
<!-- Pick the mode: "production" or "development" -->
|
|
||||||
<mode>production</mode>
|
|
||||||
</autowire>
|
|
||||||
|
|
||||||
<!-- Allows extension modules with <auto-deploy> set to true to be automatically deployed -->
|
|
||||||
<module-deployment>
|
|
||||||
<mode>manual</mode>
|
|
||||||
<enable-auto-deploy-modules>true</enable-auto-deploy-modules>
|
|
||||||
</module-deployment>
|
|
||||||
</web-framework>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
<!-- Disable the CSRF Token Filter -->
|
|
||||||
<!--
|
|
||||||
<config evaluator="string-compare" condition="CSRFPolicy" replace="true">
|
|
||||||
<filter/>
|
|
||||||
</config>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--
|
|
||||||
To run the CSRF Token Filter behind 1 or more proxies that do not rewrite the Origin or Referere headers:
|
|
||||||
|
|
||||||
1. Copy the "CSRFPolicy" default config in share-security-config.xml and paste it into this file.
|
|
||||||
2. Replace the old config by setting the <config> element's "replace" attribute to "true" like below:
|
|
||||||
<config evaluator="string-compare" condition="CSRFPolicy" replace="true">
|
|
||||||
3. To every <action name="assertReferer"> element add the following child element
|
|
||||||
<param name="referer">http://www.proxy1.com/.*|http://www.proxy2.com/.*</param>
|
|
||||||
4. To every <action name="assertOrigin"> element add the following child element
|
|
||||||
<param name="origin">http://www.proxy1.com|http://www.proxy2.com</param>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Remove the default wildcard setting and use instead a strict whitelist of the only domains that shall be allowed
|
|
||||||
to be used inside iframes (i.e. in the WebView dashlet on the dashboards)
|
|
||||||
-->
|
|
||||||
<!--
|
|
||||||
<config evaluator="string-compare" condition="IFramePolicy" replace="true">
|
|
||||||
<cross-domain>
|
|
||||||
<url>http://www.trusted-domain-1.com/</url>
|
|
||||||
<url>http://www.trusted-domain-2.com/</url>
|
|
||||||
</cross-domain>
|
|
||||||
</config>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- Turn off header that stops Share from being displayed in iframes on pages from other domains -->
|
|
||||||
<!--
|
|
||||||
<config evaluator="string-compare" condition="SecurityHeadersPolicy">
|
|
||||||
<headers>
|
|
||||||
<header>
|
|
||||||
<name>X-Frame-Options</name>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</header>
|
|
||||||
</headers>
|
|
||||||
</config>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- Prevent browser communication over HTTP (for HTTPS servers) -->
|
|
||||||
<!--
|
|
||||||
<config evaluator="string-compare" condition="SecurityHeadersPolicy">
|
|
||||||
<headers>
|
|
||||||
<header>
|
|
||||||
<name>Strict-Transport-Security</name>
|
|
||||||
<value>max-age=31536000</value>
|
|
||||||
</header>
|
|
||||||
</headers>
|
|
||||||
</config>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<config evaluator="string-compare" condition="Replication">
|
|
||||||
<share-urls>
|
|
||||||
<!--
|
|
||||||
To discover a Repository Id, browse to the remote server's CMIS landing page at:
|
|
||||||
http://{server}:{port}/alfresco/service/cmis/index.html
|
|
||||||
The Repository Id field is found under the "CMIS Repository Information" expandable panel.
|
|
||||||
|
|
||||||
Example config entry:
|
|
||||||
<share-url repositoryId="622f9533-2a1e-48fe-af4e-ee9e41667ea4">http://new-york-office:8080/share/</share-url>
|
|
||||||
-->
|
|
||||||
</share-urls>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
<!-- Document Library config section -->
|
|
||||||
<config evaluator="string-compare" condition="DocumentLibrary" replace="true">
|
|
||||||
|
|
||||||
<tree>
|
|
||||||
<!--
|
|
||||||
Whether the folder Tree component should enumerate child folders or not.
|
|
||||||
This is a relatively expensive operation, so should be set to "false" for Repositories with broad folder structures.
|
|
||||||
-->
|
|
||||||
<evaluate-child-folders>false</evaluate-child-folders>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Optionally limit the number of folders shown in treeview throughout Share.
|
|
||||||
-->
|
|
||||||
<maximum-folder-count>1000</maximum-folder-count>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Default timeout in milliseconds for folder Tree component to recieve response from Repository
|
|
||||||
-->
|
|
||||||
<timeout>7000</timeout>
|
|
||||||
</tree>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Used by the "Manage Aspects" action
|
|
||||||
|
|
||||||
For custom aspects, remember to also add the relevant i18n string(s)
|
|
||||||
cm_myaspect=My Aspect
|
|
||||||
-->
|
|
||||||
<aspects>
|
|
||||||
<!-- Aspects that a user can see -->
|
|
||||||
<visible>
|
|
||||||
<aspect name="cm:generalclassifiable" />
|
|
||||||
<aspect name="cm:complianceable" />
|
|
||||||
<aspect name="cm:dublincore" />
|
|
||||||
<aspect name="cm:effectivity" />
|
|
||||||
<aspect name="cm:summarizable" />
|
|
||||||
<aspect name="cm:versionable" />
|
|
||||||
<aspect name="cm:templatable" />
|
|
||||||
<aspect name="cm:emailed" />
|
|
||||||
<aspect name="emailserver:aliasable" />
|
|
||||||
<aspect name="cm:taggable" />
|
|
||||||
<aspect name="app:inlineeditable" />
|
|
||||||
<aspect name="gd:googleEditable" />
|
|
||||||
<aspect name="cm:geographic" />
|
|
||||||
<aspect name="exif:exif" />
|
|
||||||
<aspect name="audio:audio" />
|
|
||||||
<aspect name="cm:indexControl" />
|
|
||||||
<aspect name="dp:restrictable" />
|
|
||||||
</visible>
|
|
||||||
|
|
||||||
<!-- Aspects that a user can add. Same as "visible" if left empty -->
|
|
||||||
<addable>
|
|
||||||
</addable>
|
|
||||||
|
|
||||||
<!-- Aspects that a user can remove. Same as "visible" if left empty -->
|
|
||||||
<removeable>
|
|
||||||
</removeable>
|
|
||||||
</aspects>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Used by the "Change Type" action
|
|
||||||
|
|
||||||
Define valid subtypes using the following example:
|
|
||||||
<type name="cm:content">
|
|
||||||
<subtype name="cm:mysubtype" />
|
|
||||||
</type>
|
|
||||||
|
|
||||||
Remember to also add the relevant i18n string(s):
|
|
||||||
cm_mysubtype=My SubType
|
|
||||||
-->
|
|
||||||
<types>
|
|
||||||
<type name="cm:content">
|
|
||||||
</type>
|
|
||||||
|
|
||||||
<type name="cm:folder">
|
|
||||||
</type>
|
|
||||||
|
|
||||||
<type name="trx:transferTarget">
|
|
||||||
<subtype name="trx:fileTransferTarget" />
|
|
||||||
</type>
|
|
||||||
</types>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
If set, will present a WebDAV link for the current item on the Document and Folder details pages.
|
|
||||||
Also used to generate the "View in Alfresco Explorer" action for folders.
|
|
||||||
-->
|
|
||||||
<repository-url>http://localhost:8080/alfresco</repository-url>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Google Docs integration
|
|
||||||
-->
|
|
||||||
<google-docs>
|
|
||||||
<!--
|
|
||||||
Enable/disable the Google Docs UI integration (Extra types on Create Content menu, Google Docs actions).
|
|
||||||
-->
|
|
||||||
<enabled>false</enabled>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
The mimetypes of documents Google Docs allows you to create via the Share interface.
|
|
||||||
The I18N label is created from the "type" attribute, e.g. google-docs.doc=Google Docs™ Document
|
|
||||||
-->
|
|
||||||
<creatable-types>
|
|
||||||
<creatable type="doc">application/msword</creatable>
|
|
||||||
<creatable type="xls">application/vnd.ms-excel</creatable>
|
|
||||||
<creatable type="ppt">application/vnd.ms-powerpoint</creatable>
|
|
||||||
</creatable-types>
|
|
||||||
</google-docs>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
File upload configuration
|
|
||||||
-->
|
|
||||||
<file-upload>
|
|
||||||
<!--
|
|
||||||
Adobe Flash™
|
|
||||||
In certain environments, an HTTP request originating from Flash cannot be authenticated using an existing session.
|
|
||||||
See: http://bugs.adobe.com/jira/browse/FP-4830
|
|
||||||
For these cases, it is useful to disable the Flash-based uploader for Share Document Libraries.
|
|
||||||
-->
|
|
||||||
<adobe-flash-enabled>true</adobe-flash-enabled>
|
|
||||||
</file-upload>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Custom DocLibActions config section -->
|
|
||||||
<config evaluator="string-compare" condition="DocLibActions">
|
|
||||||
<actionGroups>
|
|
||||||
<actionGroup id="document-browse">
|
|
||||||
|
|
||||||
<!-- Simple Repo Actions -->
|
|
||||||
<!--
|
|
||||||
<action index="340" id="document-extract-metadata" />
|
|
||||||
<action index="350" id="document-increment-counter" />
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- Dialog Repo Actions -->
|
|
||||||
<!--
|
|
||||||
<action index="360" id="document-transform" />
|
|
||||||
<action index="370" id="document-transform-image" />
|
|
||||||
<action index="380" id="document-execute-script" />
|
|
||||||
-->
|
|
||||||
|
|
||||||
</actionGroup>
|
|
||||||
</actionGroups>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
<!-- Global folder picker config section -->
|
|
||||||
<config evaluator="string-compare" condition="GlobalFolder">
|
|
||||||
<siteTree>
|
|
||||||
<container type="cm:folder">
|
|
||||||
<!-- Use a specific label for this container type in the tree -->
|
|
||||||
<rootLabel>location.path.documents</rootLabel>
|
|
||||||
<!-- Use a specific uri to retreive the child nodes for this container type in the tree -->
|
|
||||||
<uri>slingshot/doclib/treenode/site/{site}/{container}{path}?children={evaluateChildFoldersSite}&max={maximumFolderCountSite}</uri>
|
|
||||||
</container>
|
|
||||||
</siteTree>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
<!-- Repository Library config section -->
|
|
||||||
<config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
|
|
||||||
<!--
|
|
||||||
Root nodeRef or xpath expression for top-level folder.
|
|
||||||
e.g. alfresco://user/home, /app:company_home/st:sites/cm:site1
|
|
||||||
If using an xpath expression, ensure it is properly ISO9075 encoded here.
|
|
||||||
-->
|
|
||||||
<root-node>alfresco://company/home</root-node>
|
|
||||||
|
|
||||||
<tree>
|
|
||||||
<!--
|
|
||||||
Whether the folder Tree component should enumerate child folders or not.
|
|
||||||
This is a relatively expensive operation, so should be set to "false" for Repositories with broad folder structures.
|
|
||||||
-->
|
|
||||||
<evaluate-child-folders>false</evaluate-child-folders>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Optionally limit the number of folders shown in treeview throughout Share.
|
|
||||||
-->
|
|
||||||
<maximum-folder-count>500</maximum-folder-count>
|
|
||||||
</tree>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Whether the link to the Repository Library appears in the header component or not.
|
|
||||||
-->
|
|
||||||
<visible>true</visible>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
<!-- Kerberos settings -->
|
|
||||||
<!-- To enable kerberos rename this condition to "Kerberos" -->
|
|
||||||
<config evaluator="string-compare" condition="KerberosDisabled" replace="true">
|
|
||||||
<kerberos>
|
|
||||||
<!--
|
|
||||||
Password for HTTP service account.
|
|
||||||
The account name *must* be built from the HTTP server name, in the format :
|
|
||||||
HTTP/<server_name>@<realm>
|
|
||||||
(NB this is because the web browser requests an ST for the
|
|
||||||
HTTP/<server_name> principal in the current realm, so if we're to decode
|
|
||||||
that ST, it has to match.)
|
|
||||||
-->
|
|
||||||
<password>secret</password>
|
|
||||||
<!--
|
|
||||||
Kerberos realm and KDC address.
|
|
||||||
-->
|
|
||||||
<realm>ALFRESCO.ORG</realm>
|
|
||||||
<!--
|
|
||||||
Service Principal Name to use on the repository tier.
|
|
||||||
This must be like: HTTP/host.name@REALM
|
|
||||||
-->
|
|
||||||
<endpoint-spn>HTTP/repository.server.com@ALFRESCO.ORG</endpoint-spn>
|
|
||||||
<!--
|
|
||||||
JAAS login configuration entry name.
|
|
||||||
-->
|
|
||||||
<config-entry>ShareHTTP</config-entry>
|
|
||||||
</kerberos>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
<!-- Uncomment and modify the URL to Activiti Admin Console if required. -->
|
|
||||||
<!--
|
|
||||||
<config evaluator="string-compare" condition="ActivitiAdmin" replace="true">
|
|
||||||
<activiti-admin-url>http://localhost:8080/alfresco/activiti-admin</activiti-admin-url>
|
|
||||||
</config>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<config evaluator="string-compare" condition="Remote">
|
|
||||||
<remote>
|
|
||||||
<endpoint>
|
|
||||||
<id>alfresco-noauth</id>
|
|
||||||
<name>Alfresco - unauthenticated access</name>
|
|
||||||
<description>Access to Alfresco Repository WebScripts that do not require authentication</description>
|
|
||||||
<connector-id>alfresco</connector-id>
|
|
||||||
<endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
|
|
||||||
<identity>none</identity>
|
|
||||||
</endpoint>
|
|
||||||
|
|
||||||
<endpoint>
|
|
||||||
<id>alfresco</id>
|
|
||||||
<name>Alfresco - user access</name>
|
|
||||||
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
|
|
||||||
<connector-id>alfresco</connector-id>
|
|
||||||
<endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
|
|
||||||
<identity>user</identity>
|
|
||||||
</endpoint>
|
|
||||||
|
|
||||||
<endpoint>
|
|
||||||
<id>alfresco-feed</id>
|
|
||||||
<name>Alfresco Feed</name>
|
|
||||||
<description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
|
|
||||||
<connector-id>http</connector-id>
|
|
||||||
<endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
|
|
||||||
<basic-auth>true</basic-auth>
|
|
||||||
<identity>user</identity>
|
|
||||||
</endpoint>
|
|
||||||
|
|
||||||
<endpoint>
|
|
||||||
<id>activiti-admin</id>
|
|
||||||
<name>Activiti Admin UI - user access</name>
|
|
||||||
<description>Access to Activiti Admin UI, that requires user authentication</description>
|
|
||||||
<connector-id>activiti-admin-connector</connector-id>
|
|
||||||
<endpoint-url>http://localhost:8080/alfresco/activiti-admin</endpoint-url>
|
|
||||||
<identity>user</identity>
|
|
||||||
</endpoint>
|
|
||||||
</remote>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Overriding endpoints to reference an Alfresco server with external SSO enabled
|
|
||||||
NOTE: If utilising a load balancer between web-tier and repository cluster, the "sticky
|
|
||||||
sessions" feature of your load balancer must be used.
|
|
||||||
NOTE: If alfresco server location is not localhost:8080 then also combine changes from the
|
|
||||||
"example port config" section below.
|
|
||||||
*Optional* keystore contains SSL client certificate + trusted CAs.
|
|
||||||
Used to authenticate share to an external SSO system such as CAS
|
|
||||||
Remove the keystore section if not required i.e. for NTLM.
|
|
||||||
|
|
||||||
NOTE: For Kerberos SSO rename the "KerberosDisabled" condition above to "Kerberos"
|
|
||||||
|
|
||||||
NOTE: For external SSO, switch the endpoint connector to "AlfrescoHeader" and set
|
|
||||||
the userHeader to the name of the HTTP header that the external SSO
|
|
||||||
uses to provide the authenticated user name.
|
|
||||||
-->
|
|
||||||
<!--
|
|
||||||
<config evaluator="string-compare" condition="Remote">
|
|
||||||
<remote>
|
|
||||||
<keystore>
|
|
||||||
<path>alfresco/web-extension/alfresco-system.p12</path>
|
|
||||||
<type>pkcs12</type>
|
|
||||||
<password>alfresco-system</password>
|
|
||||||
</keystore>
|
|
||||||
|
|
||||||
<connector>
|
|
||||||
<id>alfrescoCookie</id>
|
|
||||||
<name>Alfresco Connector</name>
|
|
||||||
<description>Connects to an Alfresco instance using cookie-based authentication</description>
|
|
||||||
<class>org.alfresco.web.site.servlet.SlingshotAlfrescoConnector</class>
|
|
||||||
</connector>
|
|
||||||
|
|
||||||
<connector>
|
|
||||||
<id>alfrescoHeader</id>
|
|
||||||
<name>Alfresco Connector</name>
|
|
||||||
<description>Connects to an Alfresco instance using header and cookie-based authentication</description>
|
|
||||||
<class>org.alfresco.web.site.servlet.SlingshotAlfrescoConnector</class>
|
|
||||||
<userHeader>SsoUserHeader</userHeader>
|
|
||||||
</connector>
|
|
||||||
|
|
||||||
<endpoint>
|
|
||||||
<id>alfresco</id>
|
|
||||||
<name>Alfresco - user access</name>
|
|
||||||
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
|
|
||||||
<connector-id>alfrescoCookie</connector-id>
|
|
||||||
<endpoint-url>http://localhost:8080/alfresco/wcs</endpoint-url>
|
|
||||||
<identity>user</identity>
|
|
||||||
<external-auth>true</external-auth>
|
|
||||||
</endpoint>
|
|
||||||
</remote>
|
|
||||||
</config>
|
|
||||||
-->
|
|
||||||
|
|
||||||
</alfresco-config>
|
</alfresco-config>
|
@ -1,75 +0,0 @@
|
|||||||
<alfresco-config>
|
|
||||||
|
|
||||||
<config evaluator="string-compare" condition="WebFramework">
|
|
||||||
<web-framework>
|
|
||||||
<autowire>
|
|
||||||
<mode>development</mode>
|
|
||||||
</autowire>
|
|
||||||
<disable-resource-caching>true</disable-resource-caching>
|
|
||||||
</web-framework>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Global config section -->
|
|
||||||
<config replace="true">
|
|
||||||
<flags>
|
|
||||||
<!--
|
|
||||||
Developer debugging setting to turn on DEBUG mode for client scripts in the browser
|
|
||||||
-->
|
|
||||||
<client-debug>true</client-debug>
|
|
||||||
<!--
|
|
||||||
LOGGING can always be toggled at runtime when in DEBUG mode (Ctrl, Ctrl, Shift, Shift).
|
|
||||||
This flag automatically activates logging on page load.
|
|
||||||
-->
|
|
||||||
<client-debug-autologging>false</client-debug-autologging>
|
|
||||||
</flags>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
<!-- Disable CSRF completely for now -->
|
|
||||||
<!-- It seems Share has issues on 4.2.x with the embedded tomcat and CSRFPolicy -->
|
|
||||||
<config evaluator="string-compare" condition="CSRFPolicy" replace="true">
|
|
||||||
<filter/>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
<config evaluator="string-compare" condition="Remote">
|
|
||||||
<remote>
|
|
||||||
<endpoint>
|
|
||||||
<id>alfresco-noauth</id>
|
|
||||||
<name>Alfresco - unauthenticated access</name>
|
|
||||||
<description>Access to Alfresco Repository WebScripts that do not require authentication</description>
|
|
||||||
<connector-id>alfresco</connector-id>
|
|
||||||
<endpoint-url>${alfresco.repo.url}/s</endpoint-url>
|
|
||||||
<identity>none</identity>
|
|
||||||
</endpoint>
|
|
||||||
|
|
||||||
<endpoint>
|
|
||||||
<id>alfresco</id>
|
|
||||||
<name>Alfresco - user access</name>
|
|
||||||
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
|
|
||||||
<connector-id>alfresco</connector-id>
|
|
||||||
<endpoint-url>${alfresco.repo.url}/s</endpoint-url>
|
|
||||||
<identity>user</identity>
|
|
||||||
</endpoint>
|
|
||||||
|
|
||||||
<endpoint>
|
|
||||||
<id>alfresco-feed</id>
|
|
||||||
<name>Alfresco Feed</name>
|
|
||||||
<description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
|
|
||||||
<connector-id>http</connector-id>
|
|
||||||
<endpoint-url>${alfresco.repo.url}/s</endpoint-url>
|
|
||||||
<basic-auth>true</basic-auth>
|
|
||||||
<identity>user</identity>
|
|
||||||
</endpoint>
|
|
||||||
|
|
||||||
<endpoint>
|
|
||||||
<id>activiti-admin</id>
|
|
||||||
<name>Activiti Admin UI - user access</name>
|
|
||||||
<description>Access to Activiti Admin UI, that requires user authentication</description>
|
|
||||||
<connector-id>activiti-admin-connector</connector-id>
|
|
||||||
<endpoint-url>${alfresco.repo.url}/activiti-admin</endpoint-url>
|
|
||||||
<identity>user</identity>
|
|
||||||
</endpoint>
|
|
||||||
</remote>
|
|
||||||
</config>
|
|
||||||
</alfresco-config>
|
|
||||||
|
|
@ -1,266 +0,0 @@
|
|||||||
# This is a full override of Alfresco 4.2.b log4j.properties
|
|
||||||
# This file overwrites the alfresco.war log4j.properties
|
|
||||||
|
|
||||||
# Set root logger level to error
|
|
||||||
log4j.rootLogger=${app.log.root.level}, Console, File
|
|
||||||
|
|
||||||
###### Console appender definition #######
|
|
||||||
|
|
||||||
# All outputs currently set to be a ConsoleAppender.
|
|
||||||
log4j.appender.Console=org.apache.log4j.ConsoleAppender
|
|
||||||
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
|
|
||||||
|
|
||||||
# use log4j NDC to replace %x with tenant domain / username
|
|
||||||
log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n
|
|
||||||
#log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
|
|
||||||
|
|
||||||
###### File appender definition #######
|
|
||||||
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
|
|
||||||
log4j.appender.File.File=${app.log.dir}alfresco.log
|
|
||||||
log4j.appender.File.Append=true
|
|
||||||
log4j.appender.File.DatePattern='.'yyyy-MM-dd
|
|
||||||
log4j.appender.File.layout=org.apache.log4j.PatternLayout
|
|
||||||
log4j.appender.File.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
|
|
||||||
|
|
||||||
###### Hibernate specific appender definition #######
|
|
||||||
#log4j.appender.file=org.apache.log4j.FileAppender
|
|
||||||
#log4j.appender.file.File=hibernate.log
|
|
||||||
#log4j.appender.file.layout=org.apache.log4j.PatternLayout
|
|
||||||
#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
|
|
||||||
|
|
||||||
###### Log level overrides #######
|
|
||||||
|
|
||||||
# Commented-in loggers will be exposed as JMX MBeans (refer to org.alfresco.repo.admin.Log4JHierarchyInit)
|
|
||||||
# Hence, generally useful loggers should be listed with at least ERROR level to allow simple runtime
|
|
||||||
# control of the level via a suitable JMX Console. Also, any other loggers can be added transiently via
|
|
||||||
# Log4j addLoggerMBean as long as the logger exists and has been loaded.
|
|
||||||
|
|
||||||
# Hibernate
|
|
||||||
log4j.logger.org.hibernate=error
|
|
||||||
log4j.logger.org.hibernate.util.JDBCExceptionReporter=fatal
|
|
||||||
log4j.logger.org.hibernate.event.def.AbstractFlushingEventListener=fatal
|
|
||||||
log4j.logger.org.hibernate.type=warn
|
|
||||||
log4j.logger.org.hibernate.cfg.SettingsFactory=warn
|
|
||||||
|
|
||||||
# Spring
|
|
||||||
log4j.logger.org.springframework=warn
|
|
||||||
# Turn off Spring remoting warnings that should really be info or debug.
|
|
||||||
log4j.logger.org.springframework.remoting.support=error
|
|
||||||
log4j.logger.org.springframework.util=error
|
|
||||||
|
|
||||||
# Axis/WSS4J
|
|
||||||
log4j.logger.org.apache.axis=info
|
|
||||||
log4j.logger.org.apache.ws=info
|
|
||||||
|
|
||||||
# CXF
|
|
||||||
log4j.logger.org.apache.cxf=error
|
|
||||||
|
|
||||||
# MyFaces
|
|
||||||
log4j.logger.org.apache.myfaces.util.DebugUtils=info
|
|
||||||
log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error
|
|
||||||
log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error
|
|
||||||
log4j.logger.org.apache.myfaces.taglib=error
|
|
||||||
|
|
||||||
# OpenOfficeConnection
|
|
||||||
log4j.logger.net.sf.jooreports.openoffice.connection=fatal
|
|
||||||
|
|
||||||
# log prepared statement cache activity ###
|
|
||||||
log4j.logger.org.hibernate.ps.PreparedStatementCache=info
|
|
||||||
|
|
||||||
# Alfresco
|
|
||||||
log4j.logger.org.alfresco=error
|
|
||||||
log4j.logger.org.alfresco.repo.admin=info
|
|
||||||
log4j.logger.org.alfresco.repo.cache.TransactionalCache=warn
|
|
||||||
log4j.logger.org.alfresco.repo.model.filefolder=warn
|
|
||||||
log4j.logger.org.alfresco.repo.tenant=info
|
|
||||||
log4j.logger.org.alfresco.repo.avm=info
|
|
||||||
log4j.logger.org.alfresco.config=warn
|
|
||||||
log4j.logger.org.alfresco.config.JndiObjectFactoryBean=warn
|
|
||||||
log4j.logger.org.alfresco.config.JBossEnabledWebApplicationContext=warn
|
|
||||||
log4j.logger.org.alfresco.repo.management.subsystems=warn
|
|
||||||
log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory=info
|
|
||||||
log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ChildApplicationContext=warn
|
|
||||||
log4j.logger.org.alfresco.repo.security.sync=info
|
|
||||||
log4j.logger.org.alfresco.repo.security.person=info
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.sample=info
|
|
||||||
log4j.logger.org.alfresco.web=info
|
|
||||||
#log4j.logger.org.alfresco.web.app.AlfrescoNavigationHandler=debug
|
|
||||||
#log4j.logger.org.alfresco.web.ui.repo.component.UIActions=debug
|
|
||||||
#log4j.logger.org.alfresco.web.ui.repo.tag.PageTag=debug
|
|
||||||
#log4j.logger.org.alfresco.web.bean.clipboard=debug
|
|
||||||
log4j.logger.org.alfresco.repo.webservice=info
|
|
||||||
log4j.logger.org.alfresco.service.descriptor.DescriptorService=info
|
|
||||||
#log4j.logger.org.alfresco.web.page=debug
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=error
|
|
||||||
#log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=info
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.web.ui.common.Utils=error
|
|
||||||
#log4j.logger.org.alfresco.web.ui.common.Utils=info
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.repo.admin.patch.PatchExecuter=info
|
|
||||||
log4j.logger.org.alfresco.repo.domain.patch.ibatis.PatchDAOImpl=info
|
|
||||||
|
|
||||||
# Specific patches
|
|
||||||
log4j.logger.org.alfresco.repo.admin.patch.impl.DeploymentMigrationPatch=info
|
|
||||||
log4j.logger.org.alfresco.repo.version.VersionMigrator=info
|
|
||||||
log4j.logger.org.alfresco.repo.admin.patch.impl.ResetWCMToGroupBasedPermissionsPatch=info
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.repo.module.ModuleServiceImpl=info
|
|
||||||
log4j.logger.org.alfresco.repo.domain.schema.SchemaBootstrap=info
|
|
||||||
log4j.logger.org.alfresco.repo.admin.ConfigurationChecker=info
|
|
||||||
log4j.logger.org.alfresco.repo.node.index.AbstractReindexComponent=warn
|
|
||||||
log4j.logger.org.alfresco.repo.node.index.IndexTransactionTracker=warn
|
|
||||||
log4j.logger.org.alfresco.repo.node.index.FullIndexRecoveryComponent=info
|
|
||||||
log4j.logger.org.alfresco.repo.node.index.AVMFullIndexRecoveryComponent=info
|
|
||||||
log4j.logger.org.alfresco.util.OpenOfficeConnectionTester=info
|
|
||||||
log4j.logger.org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl=warn
|
|
||||||
log4j.logger.org.alfresco.repo.domain.hibernate.DirtySessionMethodInterceptor=warn
|
|
||||||
log4j.logger.org.alfresco.repo.transaction.RetryingTransactionHelper=warn
|
|
||||||
log4j.logger.org.alfresco.util.transaction.SpringAwareUserTransaction.trace=warn
|
|
||||||
log4j.logger.org.alfresco.util.AbstractTriggerBean=warn
|
|
||||||
log4j.logger.org.alfresco.enterprise.repo.cache.cluster.KeepAliveHeartbeatReceiver=info
|
|
||||||
log4j.logger.org.alfresco.repo.version.Version2ServiceImpl=warn
|
|
||||||
|
|
||||||
#log4j.logger.org.alfresco.web.app.DebugPhaseListener=debug
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.repo.workflow=info
|
|
||||||
|
|
||||||
# CIFS server debugging
|
|
||||||
log4j.logger.org.alfresco.smb.protocol=error
|
|
||||||
#log4j.logger.org.alfresco.smb.protocol.auth=debug
|
|
||||||
#log4j.logger.org.alfresco.acegi=debug
|
|
||||||
|
|
||||||
# FTP server debugging
|
|
||||||
log4j.logger.org.alfresco.ftp.protocol=error
|
|
||||||
#log4j.logger.org.alfresco.ftp.server=debug
|
|
||||||
|
|
||||||
# WebDAV debugging
|
|
||||||
#log4j.logger.org.alfresco.webdav.protocol=debug
|
|
||||||
log4j.logger.org.alfresco.webdav.protocol=error
|
|
||||||
|
|
||||||
# NTLM servlet filters
|
|
||||||
#log4j.logger.org.alfresco.web.app.servlet.NTLMAuthenticationFilter=debug
|
|
||||||
#log4j.logger.org.alfresco.repo.webdav.auth.NTLMAuthenticationFilter=debug
|
|
||||||
|
|
||||||
# Kerberos servlet filters
|
|
||||||
#log4j.logger.org.alfresco.web.app.servlet.KerberosAuthenticationFilter=debug
|
|
||||||
#log4j.logger.org.alfresco.repo.webdav.auth.KerberosAuthenticationFilter=debug
|
|
||||||
|
|
||||||
# File servers
|
|
||||||
log4j.logger.org.alfresco.fileserver=warn
|
|
||||||
|
|
||||||
# Repo filesystem debug logging
|
|
||||||
#log4j.logger.org.alfresco.filesys.repo.ContentDiskDriver=debug
|
|
||||||
|
|
||||||
# AVM filesystem debug logging
|
|
||||||
#log4j.logger.org.alfresco.filesys.avm.AVMDiskDriver=debug
|
|
||||||
|
|
||||||
# Integrity message threshold - if 'failOnViolation' is off, then WARNINGS are generated
|
|
||||||
log4j.logger.org.alfresco.repo.node.integrity=ERROR
|
|
||||||
|
|
||||||
# Indexer debugging
|
|
||||||
log4j.logger.org.alfresco.repo.search.Indexer=error
|
|
||||||
#log4j.logger.org.alfresco.repo.search.Indexer=debug
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.repo.search.impl.lucene.index=error
|
|
||||||
log4j.logger.org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl=warn
|
|
||||||
#log4j.logger.org.alfresco.repo.search.impl.lucene.index=DEBUG
|
|
||||||
|
|
||||||
# Audit debugging
|
|
||||||
# log4j.logger.org.alfresco.repo.audit=DEBUG
|
|
||||||
# log4j.logger.org.alfresco.repo.audit.model=DEBUG
|
|
||||||
|
|
||||||
# Forms debugging
|
|
||||||
# log4j.logger.org.alfresco.web.forms=debug
|
|
||||||
# log4j.logger.org.chiba.xml.xforms=debug
|
|
||||||
log4j.logger.org.alfresco.web.forms.xforms.XFormsBean=error
|
|
||||||
log4j.logger.org.alfresco.web.forms.XSLTRenderingEngine=error
|
|
||||||
|
|
||||||
# Property sheet and modelling debugging
|
|
||||||
# change to error to hide the warnings about missing properties and associations
|
|
||||||
log4j.logger.alfresco.missingProperties=warn
|
|
||||||
log4j.logger.org.alfresco.web.ui.repo.component.property.UIChildAssociation=warn
|
|
||||||
log4j.logger.org.alfresco.web.ui.repo.component.property.UIAssociation=warn
|
|
||||||
#log4j.logger.org.alfresco.web.ui.repo.component.property=debug
|
|
||||||
|
|
||||||
# Dictionary/Model debugging
|
|
||||||
log4j.logger.org.alfresco.repo.dictionary=warn
|
|
||||||
log4j.logger.org.alfresco.repo.dictionary.types.period=warn
|
|
||||||
|
|
||||||
# Virtualization Server Registry
|
|
||||||
log4j.logger.org.alfresco.mbeans.VirtServerRegistry=error
|
|
||||||
|
|
||||||
# Spring context runtime property setter
|
|
||||||
log4j.logger.org.alfresco.util.RuntimeSystemPropertiesSetter=info
|
|
||||||
|
|
||||||
# Debugging options for clustering
|
|
||||||
log4j.logger.org.alfresco.repo.content.ReplicatingContentStore=error
|
|
||||||
log4j.logger.org.alfresco.repo.content.replication=error
|
|
||||||
|
|
||||||
#log4j.logger.org.alfresco.repo.deploy.DeploymentServiceImpl=debug
|
|
||||||
|
|
||||||
# Activity service
|
|
||||||
log4j.logger.org.alfresco.repo.activities=warn
|
|
||||||
|
|
||||||
# User usage tracking
|
|
||||||
log4j.logger.org.alfresco.repo.usage=info
|
|
||||||
|
|
||||||
# Sharepoint
|
|
||||||
log4j.logger.org.alfresco.module.vti=info
|
|
||||||
|
|
||||||
# Forms Engine
|
|
||||||
log4j.logger.org.alfresco.repo.forms=info
|
|
||||||
log4j.logger.org.alfresco.web.config.forms=info
|
|
||||||
log4j.logger.org.alfresco.web.scripts.forms=info
|
|
||||||
|
|
||||||
# CMIS
|
|
||||||
log4j.logger.org.alfresco.opencmis=error
|
|
||||||
log4j.logger.org.alfresco.opencmis.AlfrescoCmisServiceInterceptor=error
|
|
||||||
log4j.logger.org.alfresco.cmis=error
|
|
||||||
log4j.logger.org.alfresco.cmis.dictionary=warn
|
|
||||||
log4j.logger.org.apache.chemistry.opencmis=info
|
|
||||||
|
|
||||||
# IMAP
|
|
||||||
log4j.logger.org.alfresco.repo.imap=info
|
|
||||||
|
|
||||||
# JBPM
|
|
||||||
# Note: non-fatal errors (eg. logged during job execution) should be handled by Alfresco's retrying transaction handler
|
|
||||||
log4j.logger.org.jbpm.graph.def.GraphElement=fatal
|
|
||||||
|
|
||||||
#log4j.logger.org.alfresco.repo.googledocs=debug
|
|
||||||
|
|
||||||
###### Scripting #######
|
|
||||||
|
|
||||||
# Web Framework
|
|
||||||
log4j.logger.org.springframework.extensions.webscripts=info
|
|
||||||
log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=warn
|
|
||||||
log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=off
|
|
||||||
|
|
||||||
# Repository
|
|
||||||
log4j.logger.org.alfresco.repo.web.scripts=warn
|
|
||||||
log4j.logger.org.alfresco.repo.web.scripts.BaseWebScriptTest=info
|
|
||||||
log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=off
|
|
||||||
log4j.logger.org.alfresco.repo.jscript=error
|
|
||||||
log4j.logger.org.alfresco.repo.jscript.ScriptLogger=warn
|
|
||||||
log4j.logger.org.alfresco.repo.cmis.rest.CMISTest=info
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.repo.avm.actions=info
|
|
||||||
|
|
||||||
# Freemarker
|
|
||||||
# Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler
|
|
||||||
log4j.logger.freemarker.runtime=
|
|
||||||
|
|
||||||
# Metadata extraction
|
|
||||||
log4j.logger.org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter=warn
|
|
||||||
|
|
||||||
# Reduces PDFont error level due to ALF-7105
|
|
||||||
log4j.logger.org.apache.pdfbox.pdmodel.font.PDSimpleFont=fatal
|
|
||||||
log4j.logger.org.apache.pdfbox.pdmodel.font.PDFont=fatal
|
|
||||||
log4j.logger.org.apache.pdfbox.pdmodel.font.PDCIDFont=fatal
|
|
||||||
|
|
||||||
# no index support
|
|
||||||
log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexIndexer=fatal
|
|
||||||
log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexSearchService=fatal
|
|
||||||
log4j.logger.org.alfresco.demoamp.test=DEBUG
|
|
@ -1,25 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!-- This file is included only when running this project with -Pamp-to-war -->
|
|
||||||
<Context docBase="${alfresco.client.war.folder}" path="${alfresco.client.contextPath}">
|
|
||||||
|
|
||||||
|
|
||||||
<Resources className="org.apache.naming.resources.VirtualDirContext"
|
|
||||||
extraResourcePaths="/=${project.build.directory}/${project.build.finalName}/web" />
|
|
||||||
|
|
||||||
|
|
||||||
<Loader searchVirtualFirst="true" className="org.apache.catalina.loader.VirtualWebappLoader"
|
|
||||||
virtualClasspath="${project.build.outputDirectory};${project.build.testOutputDirectory};${project.build.directory}/${project.build.finalName}/config" />
|
|
||||||
|
|
||||||
<!--
|
|
||||||
<Environment override="false" type="java.lang.Boolean" name="properties/startup.enable" description="A flag that globally enables or disables startup of the major Alfresco subsystems." value="true"/>
|
|
||||||
<Environment override="false" type="java.lang.String" name="properties/dir.root" description="The filesystem directory below which content and index data is stored. Should be on a shared disk if this is a clustered installation."/>
|
|
||||||
<Environment override="false" type="java.lang.String" name="properties/hibernate.dialect" description="The fully qualified name of a org.hibernate.dialect.Dialect subclass that allows Hibernate to generate SQL optimized for a particular relational database. Choose from org.hibernate.dialect.DerbyDialect, org.hibernate.dialect.MySQLInnoDBDialect, org.alfresco.repo.domain.hibernate.dialect.AlfrescoOracle9Dialect, org.alfresco.repo.domain.hibernate.dialect.AlfrescoSybaseAnywhereDialect, org.alfresco.repo.domain.hibernate.dialect.AlfrescoSQLServerDialect, org.hibernate.dialect.PostgreSQLDialect"/>
|
|
||||||
<Environment override="false" type="java.lang.String" name="properties/hibernate.query.substitutions" description="Mapping from tokens in Hibernate queries to SQL tokens. For PostgreSQL, set this to "true TRUE, false FALSE"."/>
|
|
||||||
<Environment override="false" type="java.lang.Boolean" name="properties/hibernate.jdbc.use_get_generated_keys" description="Enable use of JDBC3 PreparedStatement.getGeneratedKeys() to retrieve natively generated keys after insert. Requires JDBC3+ driver. Set to false if your driver has problems with the Hibernate identifier generators. By default, tries to determine the driver capabilities using connection metadata."/>
|
|
||||||
<Environment override="false" type="java.lang.String" name="properties/hibernate.default_schema" description="Qualify unqualified table names with the given schema/tablespace in generated SQL. It may be necessary to set this when the target database has more than one schema."/>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- This enables hot reloading of web resources from uncompressed jars (while in prod they would be loaded from WEB-INF/lib/{\*.jar}/META-INF/resources -->
|
|
||||||
<JarScanner scanAllDirectories="true" />
|
|
||||||
|
|
||||||
</Context>
|
|
@ -28,6 +28,7 @@
|
|||||||
<type>amp</type>
|
<type>amp</type>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
@ -61,6 +62,7 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
<!-- Installs the needed runtime component for an Alfresco RM (Records Management) project -->
|
<!-- Installs the needed runtime component for an Alfresco RM (Records Management) project -->
|
||||||
<profile>
|
<profile>
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
# SHARE client environment dependent properties (local build)
|
|
||||||
share.server.scheme=http
|
|
||||||
share.server.name=localhost
|
|
||||||
share.server.port=${jetty.port}
|
|
||||||
alfresco.server.scheme=http
|
|
||||||
alfresco.server.name=localhost
|
|
||||||
alfresco.server.port=${jetty.port}
|
|
||||||
alfresco.webapp.name=alfresco
|
|
@ -1,12 +1,18 @@
|
|||||||
|
<!-- Alfresco 5.0.d custom-slingshot-application-context.xml sample
|
||||||
|
|
||||||
|
Note. Any configuration related to a specific Share extension
|
||||||
|
(such as evaluator bean and message resource bean) should be
|
||||||
|
placed in the specific extension config file, such as for example
|
||||||
|
alfresco-allinone/share-amp/src/main/amp/config/alfresco/web-extension/custom-slingshot-application-context.xml
|
||||||
|
-->
|
||||||
<?xml version='1.0' encoding='UTF-8'?>
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
<!-- This is a sample configuration file from Alfresco Community 4.2.b - Please adapt to your version -->
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xmlns:hz="http://www.hazelcast.com/schema/config"
|
xmlns:hz="http://www.hazelcast.com/schema/spring"
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||||
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
||||||
http://www.hazelcast.com/schema/config
|
http://www.hazelcast.com/schema/spring
|
||||||
http://www.hazelcast.com/schema/config/hazelcast-spring.xsd">
|
http://www.hazelcast.com/schema/spring/hazelcast-spring-2.4.xsd">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Hazelcast distributed messaging configuration - Share web-tier cluster config (3.4.8 and 4.0.1)
|
Hazelcast distributed messaging configuration - Share web-tier cluster config (3.4.8 and 4.0.1)
|
||||||
@ -47,6 +53,7 @@
|
|||||||
<bean id="webframework.factory.requestcontext.servlet" class="org.alfresco.web.site.ClusterAwareRequestContextFactory" parent="webframework.factory.base">
|
<bean id="webframework.factory.requestcontext.servlet" class="org.alfresco.web.site.ClusterAwareRequestContextFactory" parent="webframework.factory.base">
|
||||||
<property name="linkBuilderFactory" ref="webframework.factory.linkbuilder.servlet" />
|
<property name="linkBuilderFactory" ref="webframework.factory.linkbuilder.servlet" />
|
||||||
<property name="extensibilityModuleHandler" ref="webscripts.extensibility.handler" />
|
<property name="extensibilityModuleHandler" ref="webscripts.extensibility.handler" />
|
||||||
|
<property name="dependencyHandler" ref="dependency.handler" />
|
||||||
<property name="clusterObjectPersister" ref="webframework.slingshot.persister.remote" />
|
<property name="clusterObjectPersister" ref="webframework.slingshot.persister.remote" />
|
||||||
</bean>
|
</bean>
|
||||||
-->
|
-->
|
||||||
|
@ -1,4 +1,11 @@
|
|||||||
<!-- This is a sample configuration file from Alfresco Community 4.2.b - Please adapt to your version -->
|
<!-- Alfresco 5.0.d share-config-custom.xml sample.
|
||||||
|
|
||||||
|
Note:
|
||||||
|
Any configuration related to a specific Share AMP extension
|
||||||
|
(such as doclib action config and form config)
|
||||||
|
should be added to that extension's custom config
|
||||||
|
(i.e. into the share-amp/src/main/resources/META-INF/share-config-custom.xml)
|
||||||
|
-->
|
||||||
<alfresco-config>
|
<alfresco-config>
|
||||||
|
|
||||||
<!-- Global config section -->
|
<!-- Global config section -->
|
||||||
@ -37,6 +44,62 @@
|
|||||||
</web-framework>
|
</web-framework>
|
||||||
</config>
|
</config>
|
||||||
|
|
||||||
|
<!-- Disable the CSRF Token Filter -->
|
||||||
|
<!--
|
||||||
|
<config evaluator="string-compare" condition="CSRFPolicy" replace="true">
|
||||||
|
<filter/>
|
||||||
|
</config>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
To run the CSRF Token Filter behind 1 or more proxies that do not rewrite the Origin or Referere headers:
|
||||||
|
|
||||||
|
1. Copy the "CSRFPolicy" default config in share-security-config.xml and paste it into this file.
|
||||||
|
2. Replace the old config by setting the <config> element's "replace" attribute to "true" like below:
|
||||||
|
<config evaluator="string-compare" condition="CSRFPolicy" replace="true">
|
||||||
|
3. To every <action name="assertReferer"> element add the following child element
|
||||||
|
<param name="referer">http://www.proxy1.com/.*|http://www.proxy2.com/.*</param>
|
||||||
|
4. To every <action name="assertOrigin"> element add the following child element
|
||||||
|
<param name="origin">http://www.proxy1.com|http://www.proxy2.com</param>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Remove the default wildcard setting and use instead a strict whitelist of the only domains that shall be allowed
|
||||||
|
to be used inside iframes (i.e. in the WebView dashlet on the dashboards)
|
||||||
|
-->
|
||||||
|
<!--
|
||||||
|
<config evaluator="string-compare" condition="IFramePolicy" replace="true">
|
||||||
|
<cross-domain>
|
||||||
|
<url>http://www.trusted-domain-1.com/</url>
|
||||||
|
<url>http://www.trusted-domain-2.com/</url>
|
||||||
|
</cross-domain>
|
||||||
|
</config>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Turn off header that stops Share from being displayed in iframes on pages from other domains -->
|
||||||
|
<!--
|
||||||
|
<config evaluator="string-compare" condition="SecurityHeadersPolicy">
|
||||||
|
<headers>
|
||||||
|
<header>
|
||||||
|
<name>X-Frame-Options</name>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</header>
|
||||||
|
</headers>
|
||||||
|
</config>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Prevent browser communication over HTTP (for HTTPS servers) -->
|
||||||
|
<!--
|
||||||
|
<config evaluator="string-compare" condition="SecurityHeadersPolicy">
|
||||||
|
<headers>
|
||||||
|
<header>
|
||||||
|
<name>Strict-Transport-Security</name>
|
||||||
|
<value>max-age=31536000</value>
|
||||||
|
</header>
|
||||||
|
</headers>
|
||||||
|
</config>
|
||||||
|
-->
|
||||||
|
|
||||||
<config evaluator="string-compare" condition="Replication">
|
<config evaluator="string-compare" condition="Replication">
|
||||||
<share-urls>
|
<share-urls>
|
||||||
<!--
|
<!--
|
||||||
@ -63,7 +126,12 @@
|
|||||||
<!--
|
<!--
|
||||||
Optionally limit the number of folders shown in treeview throughout Share.
|
Optionally limit the number of folders shown in treeview throughout Share.
|
||||||
-->
|
-->
|
||||||
<maximum-folder-count>-1</maximum-folder-count>
|
<maximum-folder-count>1000</maximum-folder-count>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Default timeout in milliseconds for folder Tree component to recieve response from Repository
|
||||||
|
-->
|
||||||
|
<timeout>7000</timeout>
|
||||||
</tree>
|
</tree>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
@ -86,9 +154,11 @@
|
|||||||
<aspect name="emailserver:aliasable" />
|
<aspect name="emailserver:aliasable" />
|
||||||
<aspect name="cm:taggable" />
|
<aspect name="cm:taggable" />
|
||||||
<aspect name="app:inlineeditable" />
|
<aspect name="app:inlineeditable" />
|
||||||
<aspect name="gd:googleEditable" />
|
|
||||||
<aspect name="cm:geographic" />
|
<aspect name="cm:geographic" />
|
||||||
<aspect name="exif:exif" />
|
<aspect name="exif:exif" />
|
||||||
|
<aspect name="audio:audio" />
|
||||||
|
<aspect name="cm:indexControl" />
|
||||||
|
<aspect name="dp:restrictable" />
|
||||||
</visible>
|
</visible>
|
||||||
|
|
||||||
<!-- Aspects that a user can add. Same as "visible" if left empty -->
|
<!-- Aspects that a user can add. Same as "visible" if left empty -->
|
||||||
@ -117,6 +187,10 @@
|
|||||||
|
|
||||||
<type name="cm:folder">
|
<type name="cm:folder">
|
||||||
</type>
|
</type>
|
||||||
|
|
||||||
|
<type name="trx:transferTarget">
|
||||||
|
<subtype name="trx:fileTransferTarget" />
|
||||||
|
</type>
|
||||||
</types>
|
</types>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
@ -139,8 +213,8 @@
|
|||||||
The I18N label is created from the "type" attribute, e.g. google-docs.doc=Google Docs™ Document
|
The I18N label is created from the "type" attribute, e.g. google-docs.doc=Google Docs™ Document
|
||||||
-->
|
-->
|
||||||
<creatable-types>
|
<creatable-types>
|
||||||
<creatable type="doc">application/msword</creatable>
|
<creatable type="doc">application/vnd.openxmlformats-officedocument.wordprocessingml.document</creatable>
|
||||||
<creatable type="xls">application/vnd.ms-excel</creatable>
|
<creatable type="xls">application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</creatable>
|
||||||
<creatable type="ppt">application/vnd.ms-powerpoint</creatable>
|
<creatable type="ppt">application/vnd.ms-powerpoint</creatable>
|
||||||
</creatable-types>
|
</creatable-types>
|
||||||
</google-docs>
|
</google-docs>
|
||||||
@ -215,6 +289,11 @@
|
|||||||
-->
|
-->
|
||||||
<maximum-folder-count>500</maximum-folder-count>
|
<maximum-folder-count>500</maximum-folder-count>
|
||||||
</tree>
|
</tree>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Whether the link to the Repository Library appears in the header component or not.
|
||||||
|
-->
|
||||||
|
<visible>true</visible>
|
||||||
</config>
|
</config>
|
||||||
|
|
||||||
<!-- Kerberos settings -->
|
<!-- Kerberos settings -->
|
||||||
@ -243,11 +322,21 @@
|
|||||||
JAAS login configuration entry name.
|
JAAS login configuration entry name.
|
||||||
-->
|
-->
|
||||||
<config-entry>ShareHTTP</config-entry>
|
<config-entry>ShareHTTP</config-entry>
|
||||||
|
<!--
|
||||||
|
A Boolean which when true strips the @domain sufix from Kerberos authenticated usernames.
|
||||||
|
Use together with stripUsernameSuffix property in alfresco-global.properties file.
|
||||||
|
-->
|
||||||
|
<stripUserNameSuffix>true</stripUserNameSuffix>
|
||||||
</kerberos>
|
</kerberos>
|
||||||
</config>
|
</config>
|
||||||
|
|
||||||
<!-- example port config used to access remote Alfresco server (default is 8080) -->
|
<!-- Uncomment and modify the URL to Activiti Admin Console if required. -->
|
||||||
<!--
|
<!--
|
||||||
|
<config evaluator="string-compare" condition="ActivitiAdmin" replace="true">
|
||||||
|
<activiti-admin-url>http://localhost:8080/alfresco/activiti-admin</activiti-admin-url>
|
||||||
|
</config>
|
||||||
|
-->
|
||||||
|
|
||||||
<config evaluator="string-compare" condition="Remote">
|
<config evaluator="string-compare" condition="Remote">
|
||||||
<remote>
|
<remote>
|
||||||
<endpoint>
|
<endpoint>
|
||||||
@ -279,16 +368,17 @@
|
|||||||
</endpoint>
|
</endpoint>
|
||||||
|
|
||||||
<endpoint>
|
<endpoint>
|
||||||
<id>activiti-admin</id>
|
<id>alfresco-api</id>
|
||||||
<name>Activiti Admin UI - user access</name>
|
<parent-id>alfresco</parent-id>
|
||||||
<description>Access to Activiti Admin UI, that requires user authentication</description>
|
<name>Alfresco Public API - user access</name>
|
||||||
<connector-id>activiti-admin-connector</connector-id>
|
<description>Access to Alfresco Repository Public API that require user authentication.
|
||||||
<endpoint-url>http://localhost:8080/alfresco/activiti-admin</endpoint-url>
|
This makes use of the authentication that is provided by parent 'alfresco' endpoint.</description>
|
||||||
|
<connector-id>alfresco</connector-id>
|
||||||
|
<endpoint-url>http://localhost:8080/alfresco/api</endpoint-url>
|
||||||
<identity>user</identity>
|
<identity>user</identity>
|
||||||
</endpoint>
|
</endpoint>
|
||||||
</remote>
|
</remote>
|
||||||
</config>
|
</config>
|
||||||
-->
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Overriding endpoints to reference an Alfresco server with external SSO enabled
|
Overriding endpoints to reference an Alfresco server with external SSO enabled
|
||||||
@ -302,9 +392,20 @@
|
|||||||
|
|
||||||
NOTE: For Kerberos SSO rename the "KerberosDisabled" condition above to "Kerberos"
|
NOTE: For Kerberos SSO rename the "KerberosDisabled" condition above to "Kerberos"
|
||||||
|
|
||||||
NOTE: For external SSO, switch the endpoint connector to "AlfrescoHeader" and set
|
NOTE: For external SSO, switch the endpoint connector to "alfrescoHeader" and set
|
||||||
the userHeader to the name of the HTTP header that the external SSO
|
the userHeader value to the name of the HTTP header that the external SSO
|
||||||
uses to provide the authenticated user name.
|
uses to provide the authenticated user name.
|
||||||
|
NOTE: For external SSO, Share now supports the "userIdPattern" mechanism as is available
|
||||||
|
on the repository config for External Authentication sub-system. Add the following
|
||||||
|
element to your "alfrescoHeader" connector config:
|
||||||
|
<userIdPattern>^ignore-(\w+)-ignore</userIdPattern>
|
||||||
|
This is an example, ensure the Id pattern matches your repository config.
|
||||||
|
NOTE: For external SSO, Share now supports stateless (no Http Session or sticky session)
|
||||||
|
connection to the repository when using the alfrescoHeader remote user connector.
|
||||||
|
e.g. You can change endpoint config to use the faster /service URL instead of the
|
||||||
|
/wcs URL if you are using External Authentication and then remove sticky session config
|
||||||
|
from your proxy between Share and Alfresco. Note that this is also faster because Share
|
||||||
|
will no longer call the /touch REST API before every remote call to the repository.
|
||||||
-->
|
-->
|
||||||
<!--
|
<!--
|
||||||
<config evaluator="string-compare" condition="Remote">
|
<config evaluator="string-compare" condition="Remote">
|
||||||
@ -339,8 +440,50 @@
|
|||||||
<identity>user</identity>
|
<identity>user</identity>
|
||||||
<external-auth>true</external-auth>
|
<external-auth>true</external-auth>
|
||||||
</endpoint>
|
</endpoint>
|
||||||
|
|
||||||
|
<endpoint>
|
||||||
|
<id>alfresco-feed</id>
|
||||||
|
<parent-id>alfresco</parent-id>
|
||||||
|
<name>Alfresco Feed</name>
|
||||||
|
<description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
|
||||||
|
<connector-id>alfrescoHeader</connector-id>
|
||||||
|
<endpoint-url>http://localhost:8080/alfresco/wcs</endpoint-url>
|
||||||
|
<identity>user</identity>
|
||||||
|
<external-auth>true</external-auth>
|
||||||
|
</endpoint>
|
||||||
|
|
||||||
|
<endpoint>
|
||||||
|
<id>alfresco-api</id>
|
||||||
|
<parent-id>alfresco</parent-id>
|
||||||
|
<name>Alfresco Public API - user access</name>
|
||||||
|
<description>Access to Alfresco Repository Public API that require user authentication.
|
||||||
|
This makes use of the authentication that is provided by parent 'alfresco' endpoint.</description>
|
||||||
|
<connector-id>alfrescoHeader</connector-id>
|
||||||
|
<endpoint-url>http://localhost:8080/alfresco/api</endpoint-url>
|
||||||
|
<identity>user</identity>
|
||||||
|
<external-auth>true</external-auth>
|
||||||
|
</endpoint>
|
||||||
</remote>
|
</remote>
|
||||||
</config>
|
</config>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
<!-- Cookie settings -->
|
||||||
|
<!-- To disable alfUsername2 cookie set enableCookie value to "false" -->
|
||||||
|
<!--
|
||||||
|
<plug-ins>
|
||||||
|
<element-readers>
|
||||||
|
<element-reader element-name="cookie" class="org.alfresco.web.config.cookie.CookieElementReader"/>
|
||||||
|
</element-readers>
|
||||||
|
</plug-ins>
|
||||||
|
|
||||||
|
<config evaluator="string-compare" condition="Cookie" replace="true">
|
||||||
|
<cookie>
|
||||||
|
<enableCookie>false</enableCookie>
|
||||||
|
<cookies-to-remove>
|
||||||
|
<cookie-to-remove>alfUsername3</cookie-to-remove>
|
||||||
|
<cookie-to-remove>alfLogin</cookie-to-remove>
|
||||||
|
</cookies-to-remove>
|
||||||
|
</cookie>
|
||||||
|
</config>
|
||||||
|
-->
|
||||||
</alfresco-config>
|
</alfresco-config>
|
@ -1,5 +1,5 @@
|
|||||||
# Set root logger level to error
|
# Set root logger level to error
|
||||||
log4j.rootLogger=${app.log.root.level}, Console, File
|
log4j.rootLogger=error, Console, File
|
||||||
|
|
||||||
###### Console appender definition #######
|
###### Console appender definition #######
|
||||||
|
|
||||||
@ -17,27 +17,7 @@ log4j.appender.File.File=${app.log.dir}share.log
|
|||||||
log4j.appender.File.Append=true
|
log4j.appender.File.Append=true
|
||||||
log4j.appender.File.DatePattern='.'yyyy-MM-dd
|
log4j.appender.File.DatePattern='.'yyyy-MM-dd
|
||||||
log4j.appender.File.layout=org.apache.log4j.PatternLayout
|
log4j.appender.File.layout=org.apache.log4j.PatternLayout
|
||||||
log4j.appender.File.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
|
log4j.appender.File.layout.ConversionPattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %m%n
|
||||||
|
|
||||||
###### Hibernate specific appender definition #######
|
|
||||||
#log4j.appender.file=org.apache.log4j.FileAppender
|
|
||||||
#log4j.appender.file.File=hibernate.log
|
|
||||||
#log4j.appender.file.layout=org.apache.log4j.PatternLayout
|
|
||||||
#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
|
|
||||||
|
|
||||||
###### Log level overrides #######
|
|
||||||
|
|
||||||
# Commented-in loggers will be exposed as JMX MBeans (refer to org.alfresco.repo.admin.Log4JHierarchyInit)
|
|
||||||
# Hence, generally useful loggers should be listed with at least ERROR level to allow simple runtime
|
|
||||||
# control of the level via a suitable JMX Console. Also, any other loggers can be added transiently via
|
|
||||||
# Log4j addLoggerMBean as long as the logger exists and has been loaded.
|
|
||||||
|
|
||||||
# Hibernate
|
|
||||||
log4j.logger.org.hibernate=error
|
|
||||||
log4j.logger.org.hibernate.util.JDBCExceptionReporter=fatal
|
|
||||||
log4j.logger.org.hibernate.event.def.AbstractFlushingEventListener=fatal
|
|
||||||
log4j.logger.org.hibernate.type=warn
|
|
||||||
log4j.logger.org.hibernate.cfg.SettingsFactory=warn
|
|
||||||
|
|
||||||
# Spring
|
# Spring
|
||||||
log4j.logger.org.springframework=warn
|
log4j.logger.org.springframework=warn
|
||||||
@ -45,218 +25,23 @@ log4j.logger.org.springframework=warn
|
|||||||
log4j.logger.org.springframework.remoting.support=error
|
log4j.logger.org.springframework.remoting.support=error
|
||||||
log4j.logger.org.springframework.util=error
|
log4j.logger.org.springframework.util=error
|
||||||
|
|
||||||
# Axis/WSS4J
|
|
||||||
log4j.logger.org.apache.axis=info
|
|
||||||
log4j.logger.org.apache.ws=info
|
|
||||||
|
|
||||||
# CXF
|
|
||||||
log4j.logger.org.apache.cxf=error
|
|
||||||
|
|
||||||
# MyFaces
|
# MyFaces
|
||||||
log4j.logger.org.apache.myfaces.util.DebugUtils=info
|
log4j.logger.org.apache.myfaces.util.DebugUtils=info
|
||||||
log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error
|
log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error
|
||||||
log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error
|
log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error
|
||||||
log4j.logger.org.apache.myfaces.taglib=error
|
log4j.logger.org.apache.myfaces.taglib=error
|
||||||
|
|
||||||
# OpenOfficeConnection
|
|
||||||
log4j.logger.net.sf.jooreports.openoffice.connection=fatal
|
|
||||||
|
|
||||||
# log prepared statement cache activity ###
|
|
||||||
log4j.logger.org.hibernate.ps.PreparedStatementCache=info
|
|
||||||
|
|
||||||
# Alfresco
|
# Alfresco
|
||||||
log4j.logger.org.alfresco=error
|
log4j.logger.org.alfresco=error
|
||||||
log4j.logger.org.alfresco.repo.admin=info
|
|
||||||
log4j.logger.org.alfresco.repo.cache.TransactionalCache=warn
|
|
||||||
log4j.logger.org.alfresco.repo.model.filefolder=warn
|
|
||||||
log4j.logger.org.alfresco.repo.tenant=info
|
|
||||||
log4j.logger.org.alfresco.repo.avm=info
|
|
||||||
log4j.logger.org.alfresco.config=warn
|
log4j.logger.org.alfresco.config=warn
|
||||||
log4j.logger.org.alfresco.config.JndiObjectFactoryBean=warn
|
log4j.logger.org.alfresco.config.JndiObjectFactoryBean=warn
|
||||||
log4j.logger.org.alfresco.config.JBossEnabledWebApplicationContext=warn
|
|
||||||
log4j.logger.org.alfresco.repo.management.subsystems=warn
|
|
||||||
log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory=info
|
|
||||||
log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ChildApplicationContext=warn
|
|
||||||
log4j.logger.org.alfresco.repo.security.sync=info
|
|
||||||
log4j.logger.org.alfresco.repo.security.person=info
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.sample=info
|
|
||||||
log4j.logger.org.alfresco.web=info
|
log4j.logger.org.alfresco.web=info
|
||||||
#log4j.logger.org.alfresco.web.app.AlfrescoNavigationHandler=debug
|
|
||||||
#log4j.logger.org.alfresco.web.ui.repo.component.UIActions=debug
|
|
||||||
#log4j.logger.org.alfresco.web.ui.repo.tag.PageTag=debug
|
|
||||||
#log4j.logger.org.alfresco.web.bean.clipboard=debug
|
|
||||||
log4j.logger.org.alfresco.repo.webservice=info
|
|
||||||
log4j.logger.org.alfresco.service.descriptor.DescriptorService=info
|
|
||||||
#log4j.logger.org.alfresco.web.page=debug
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=error
|
|
||||||
#log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=info
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.web.ui.common.Utils=error
|
|
||||||
#log4j.logger.org.alfresco.web.ui.common.Utils=info
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.repo.admin.patch.PatchExecuter=info
|
|
||||||
log4j.logger.org.alfresco.repo.domain.patch.ibatis.PatchDAOImpl=info
|
|
||||||
|
|
||||||
# Specific patches
|
|
||||||
log4j.logger.org.alfresco.repo.admin.patch.impl.DeploymentMigrationPatch=info
|
|
||||||
log4j.logger.org.alfresco.repo.version.VersionMigrator=info
|
|
||||||
log4j.logger.org.alfresco.repo.admin.patch.impl.ResetWCMToGroupBasedPermissionsPatch=info
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.repo.module.ModuleServiceImpl=info
|
|
||||||
log4j.logger.org.alfresco.repo.domain.schema.SchemaBootstrap=info
|
|
||||||
log4j.logger.org.alfresco.repo.admin.ConfigurationChecker=info
|
|
||||||
log4j.logger.org.alfresco.repo.node.index.AbstractReindexComponent=warn
|
|
||||||
log4j.logger.org.alfresco.repo.node.index.IndexTransactionTracker=warn
|
|
||||||
log4j.logger.org.alfresco.repo.node.index.FullIndexRecoveryComponent=info
|
|
||||||
log4j.logger.org.alfresco.repo.node.index.AVMFullIndexRecoveryComponent=info
|
|
||||||
log4j.logger.org.alfresco.util.OpenOfficeConnectionTester=info
|
|
||||||
log4j.logger.org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl=warn
|
|
||||||
log4j.logger.org.alfresco.repo.domain.hibernate.DirtySessionMethodInterceptor=warn
|
|
||||||
log4j.logger.org.alfresco.repo.transaction.RetryingTransactionHelper=warn
|
|
||||||
log4j.logger.org.alfresco.util.transaction.SpringAwareUserTransaction.trace=warn
|
|
||||||
log4j.logger.org.alfresco.util.AbstractTriggerBean=warn
|
|
||||||
log4j.logger.org.alfresco.enterprise.repo.cache.cluster.KeepAliveHeartbeatReceiver=info
|
|
||||||
log4j.logger.org.alfresco.repo.version.Version2ServiceImpl=warn
|
|
||||||
|
|
||||||
#log4j.logger.org.alfresco.web.app.DebugPhaseListener=debug
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.repo.workflow=info
|
|
||||||
|
|
||||||
# CIFS server debugging
|
|
||||||
log4j.logger.org.alfresco.smb.protocol=error
|
|
||||||
#log4j.logger.org.alfresco.smb.protocol.auth=debug
|
|
||||||
#log4j.logger.org.alfresco.acegi=debug
|
|
||||||
|
|
||||||
# FTP server debugging
|
|
||||||
log4j.logger.org.alfresco.ftp.protocol=error
|
|
||||||
#log4j.logger.org.alfresco.ftp.server=debug
|
|
||||||
|
|
||||||
# WebDAV debugging
|
|
||||||
#log4j.logger.org.alfresco.webdav.protocol=debug
|
|
||||||
log4j.logger.org.alfresco.webdav.protocol=error
|
|
||||||
|
|
||||||
# NTLM servlet filters
|
|
||||||
#log4j.logger.org.alfresco.web.app.servlet.NTLMAuthenticationFilter=debug
|
|
||||||
#log4j.logger.org.alfresco.repo.webdav.auth.NTLMAuthenticationFilter=debug
|
|
||||||
|
|
||||||
# Kerberos servlet filters
|
|
||||||
#log4j.logger.org.alfresco.web.app.servlet.KerberosAuthenticationFilter=debug
|
|
||||||
#log4j.logger.org.alfresco.repo.webdav.auth.KerberosAuthenticationFilter=debug
|
|
||||||
|
|
||||||
# File servers
|
|
||||||
log4j.logger.org.alfresco.fileserver=warn
|
|
||||||
|
|
||||||
# Repo filesystem debug logging
|
|
||||||
#log4j.logger.org.alfresco.filesys.repo.ContentDiskDriver=debug
|
|
||||||
|
|
||||||
# AVM filesystem debug logging
|
|
||||||
#log4j.logger.org.alfresco.filesys.avm.AVMDiskDriver=debug
|
|
||||||
|
|
||||||
# Integrity message threshold - if 'failOnViolation' is off, then WARNINGS are generated
|
|
||||||
log4j.logger.org.alfresco.repo.node.integrity=ERROR
|
|
||||||
|
|
||||||
# Indexer debugging
|
|
||||||
log4j.logger.org.alfresco.repo.search.Indexer=error
|
|
||||||
#log4j.logger.org.alfresco.repo.search.Indexer=debug
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.repo.search.impl.lucene.index=error
|
|
||||||
log4j.logger.org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl=warn
|
|
||||||
#log4j.logger.org.alfresco.repo.search.impl.lucene.index=DEBUG
|
|
||||||
|
|
||||||
# Audit debugging
|
|
||||||
# log4j.logger.org.alfresco.repo.audit=DEBUG
|
|
||||||
# log4j.logger.org.alfresco.repo.audit.model=DEBUG
|
|
||||||
|
|
||||||
# Forms debugging
|
|
||||||
# log4j.logger.org.alfresco.web.forms=debug
|
|
||||||
# log4j.logger.org.chiba.xml.xforms=debug
|
|
||||||
log4j.logger.org.alfresco.web.forms.xforms.XFormsBean=error
|
|
||||||
log4j.logger.org.alfresco.web.forms.XSLTRenderingEngine=error
|
|
||||||
|
|
||||||
# Property sheet and modelling debugging
|
|
||||||
# change to error to hide the warnings about missing properties and associations
|
|
||||||
log4j.logger.alfresco.missingProperties=warn
|
|
||||||
log4j.logger.org.alfresco.web.ui.repo.component.property.UIChildAssociation=warn
|
|
||||||
log4j.logger.org.alfresco.web.ui.repo.component.property.UIAssociation=warn
|
|
||||||
#log4j.logger.org.alfresco.web.ui.repo.component.property=debug
|
|
||||||
|
|
||||||
# Dictionary/Model debugging
|
|
||||||
log4j.logger.org.alfresco.repo.dictionary=warn
|
|
||||||
log4j.logger.org.alfresco.repo.dictionary.types.period=warn
|
|
||||||
|
|
||||||
# Virtualization Server Registry
|
|
||||||
log4j.logger.org.alfresco.mbeans.VirtServerRegistry=error
|
|
||||||
|
|
||||||
# Spring context runtime property setter
|
|
||||||
log4j.logger.org.alfresco.util.RuntimeSystemPropertiesSetter=info
|
|
||||||
|
|
||||||
# Debugging options for clustering
|
|
||||||
log4j.logger.org.alfresco.repo.content.ReplicatingContentStore=error
|
|
||||||
log4j.logger.org.alfresco.repo.content.replication=error
|
|
||||||
|
|
||||||
#log4j.logger.org.alfresco.repo.deploy.DeploymentServiceImpl=debug
|
|
||||||
|
|
||||||
# Activity service
|
|
||||||
log4j.logger.org.alfresco.repo.activities=warn
|
|
||||||
|
|
||||||
# User usage tracking
|
|
||||||
log4j.logger.org.alfresco.repo.usage=info
|
|
||||||
|
|
||||||
# Sharepoint
|
|
||||||
log4j.logger.org.alfresco.module.vti=info
|
|
||||||
|
|
||||||
# Forms Engine
|
|
||||||
log4j.logger.org.alfresco.repo.forms=info
|
|
||||||
log4j.logger.org.alfresco.web.config.forms=info
|
|
||||||
log4j.logger.org.alfresco.web.scripts.forms=info
|
|
||||||
|
|
||||||
# CMIS
|
|
||||||
log4j.logger.org.alfresco.opencmis=error
|
|
||||||
log4j.logger.org.alfresco.opencmis.AlfrescoCmisServiceInterceptor=error
|
|
||||||
log4j.logger.org.alfresco.cmis=error
|
|
||||||
log4j.logger.org.alfresco.cmis.dictionary=warn
|
|
||||||
log4j.logger.org.apache.chemistry.opencmis=info
|
|
||||||
|
|
||||||
# IMAP
|
|
||||||
log4j.logger.org.alfresco.repo.imap=info
|
|
||||||
|
|
||||||
# JBPM
|
|
||||||
# Note: non-fatal errors (eg. logged during job execution) should be handled by Alfresco's retrying transaction handler
|
|
||||||
log4j.logger.org.jbpm.graph.def.GraphElement=fatal
|
|
||||||
|
|
||||||
#log4j.logger.org.alfresco.repo.googledocs=debug
|
|
||||||
|
|
||||||
###### Scripting #######
|
|
||||||
|
|
||||||
# Web Framework
|
# Web Framework
|
||||||
log4j.logger.org.springframework.extensions.webscripts=info
|
log4j.logger.org.springframework.extensions.webscripts=info
|
||||||
log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=warn
|
log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=warn
|
||||||
log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=off
|
log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=off
|
||||||
|
|
||||||
# Repository
|
|
||||||
log4j.logger.org.alfresco.repo.web.scripts=warn
|
|
||||||
log4j.logger.org.alfresco.repo.web.scripts.BaseWebScriptTest=info
|
|
||||||
log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=off
|
|
||||||
log4j.logger.org.alfresco.repo.jscript=error
|
|
||||||
log4j.logger.org.alfresco.repo.jscript.ScriptLogger=warn
|
|
||||||
log4j.logger.org.alfresco.repo.cmis.rest.CMISTest=info
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.repo.avm.actions=info
|
|
||||||
|
|
||||||
# Freemarker
|
# Freemarker
|
||||||
# Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler
|
# Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler
|
||||||
log4j.logger.freemarker.runtime=
|
log4j.logger.freemarker.runtime=
|
||||||
|
|
||||||
# Metadata extraction
|
|
||||||
log4j.logger.org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter=warn
|
|
||||||
|
|
||||||
# Reduces PDFont error level due to ALF-7105
|
|
||||||
log4j.logger.org.apache.pdfbox.pdmodel.font.PDSimpleFont=fatal
|
|
||||||
log4j.logger.org.apache.pdfbox.pdmodel.font.PDFont=fatal
|
|
||||||
log4j.logger.org.apache.pdfbox.pdmodel.font.PDCIDFont=fatal
|
|
||||||
|
|
||||||
# no index support
|
|
||||||
log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexIndexer=fatal
|
|
||||||
log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexSearchService=fatal
|
|
@ -3,8 +3,17 @@
|
|||||||
<config evaluator="string-compare" condition="WebFramework">
|
<config evaluator="string-compare" condition="WebFramework">
|
||||||
<web-framework>
|
<web-framework>
|
||||||
<autowire>
|
<autowire>
|
||||||
<mode>development</mode>
|
<!-- Changing this to 'development' currently breaks the Admin Console so it does not work correctly.
|
||||||
|
During testing we instead disable JS compilation by overriding bean javaScriptProcessor -->
|
||||||
|
<mode>production</mode>
|
||||||
</autowire>
|
</autowire>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
If resource caching has been disabled then all the dependency caches will be cleared
|
||||||
|
before processing the Aikau jsonModel request...
|
||||||
|
(i.e. this.dojoDependencyHandler.clearCaches() )
|
||||||
|
-->
|
||||||
|
<disable-resource-caching>true</disable-resource-caching>
|
||||||
</web-framework>
|
</web-framework>
|
||||||
</config>
|
</config>
|
||||||
|
|
||||||
@ -24,12 +33,18 @@
|
|||||||
</flags>
|
</flags>
|
||||||
</config>
|
</config>
|
||||||
|
|
||||||
<!-- Disable CSRF completely for now -->
|
<!--
|
||||||
<!-- It seems Share has issues on 4.2.x with the embedded tomcat and CSRFPolicy -->
|
Disable CSRF completely for now
|
||||||
|
It seems Share has issues on 4.2.x with the embedded tomcat and CSRFPolicy
|
||||||
|
-->
|
||||||
<config evaluator="string-compare" condition="CSRFPolicy" replace="true">
|
<config evaluator="string-compare" condition="CSRFPolicy" replace="true">
|
||||||
<filter/>
|
<filter/>
|
||||||
</config>
|
</config>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Change so it is picked up from property where the Alfresco Repo Webapp is running
|
||||||
|
(e.g. http://localhost:8080/alfresco)
|
||||||
|
-->
|
||||||
<config evaluator="string-compare" condition="Remote">
|
<config evaluator="string-compare" condition="Remote">
|
||||||
<remote>
|
<remote>
|
||||||
<endpoint>
|
<endpoint>
|
||||||
|
@ -0,0 +1,52 @@
|
|||||||
|
# This file is copied from Alfresco Share 5.0.d
|
||||||
|
# Overrides tomcat/webapps/share/WEB-INF/classes/log4j,properties
|
||||||
|
# and sets new file location from property and log level from property.
|
||||||
|
#
|
||||||
|
|
||||||
|
# Set root logger level to error
|
||||||
|
log4j.rootLogger=${app.log.root.level}, Console, File
|
||||||
|
|
||||||
|
###### Console appender definition #######
|
||||||
|
|
||||||
|
# All outputs currently set to be a ConsoleAppender.
|
||||||
|
log4j.appender.Console=org.apache.log4j.ConsoleAppender
|
||||||
|
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
|
||||||
|
|
||||||
|
# use log4j NDC to replace %x with tenant domain / username
|
||||||
|
log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n
|
||||||
|
#log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
|
||||||
|
|
||||||
|
###### File appender definition #######
|
||||||
|
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
|
||||||
|
log4j.appender.File.File=${app.log.dir}alfresco.log
|
||||||
|
log4j.appender.File.Append=true
|
||||||
|
log4j.appender.File.DatePattern='.'yyyy-MM-dd
|
||||||
|
log4j.appender.File.layout=org.apache.log4j.PatternLayout
|
||||||
|
log4j.appender.File.layout.ConversionPattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %m%n
|
||||||
|
|
||||||
|
# Spring
|
||||||
|
log4j.logger.org.springframework=warn
|
||||||
|
# Turn off Spring remoting warnings that should really be info or debug.
|
||||||
|
log4j.logger.org.springframework.remoting.support=error
|
||||||
|
log4j.logger.org.springframework.util=error
|
||||||
|
|
||||||
|
# MyFaces
|
||||||
|
log4j.logger.org.apache.myfaces.util.DebugUtils=info
|
||||||
|
log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error
|
||||||
|
log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error
|
||||||
|
log4j.logger.org.apache.myfaces.taglib=error
|
||||||
|
|
||||||
|
# Alfresco
|
||||||
|
log4j.logger.org.alfresco=error
|
||||||
|
log4j.logger.org.alfresco.config=warn
|
||||||
|
log4j.logger.org.alfresco.config.JndiObjectFactoryBean=warn
|
||||||
|
log4j.logger.org.alfresco.web=info
|
||||||
|
|
||||||
|
# Web Framework
|
||||||
|
log4j.logger.org.springframework.extensions.webscripts=info
|
||||||
|
log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=warn
|
||||||
|
log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=off
|
||||||
|
|
||||||
|
# Freemarker
|
||||||
|
# Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler
|
||||||
|
log4j.logger.freemarker.runtime=
|
@ -16,46 +16,34 @@
|
|||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
| SDK properties have sensible defaults in the SDK parent,
|
SDK properties have sensible defaults in the SDK parent,
|
||||||
| but you can override the properties below to use another version.
|
but you can override the properties below to use another version.
|
||||||
| For more available properties see the alfresco-sdk-parent POM.
|
For more available properties see the alfresco-sdk-parent POM.
|
||||||
-->
|
-->
|
||||||
<properties>
|
<properties>
|
||||||
<!--
|
<!-- If you want to change the default data location and Alfresco version, uncomment the following 2 properties:
|
||||||
| Defines the groupId for the Alfresco Artifacts to work against. As of 4.2 the only allowed value is: org.alfresco
|
<alfresco.version>specify version number here</alfresco.version>
|
||||||
| NOTE: See http://docs.alfresco.com/4.2/concepts/dev-extensions-maven-sdk-tutorials-alfresco-enterprise.html for details
|
<alfresco.data.location>specify folder name here</alfresco.data.location> -->
|
||||||
-->
|
|
||||||
<!-- <alfresco.groupId>${alfresco_target_groupId}</alfresco.groupId> -->
|
|
||||||
<!-- Defines the Alfresco version to work against.
|
|
||||||
Community versions are typically identified by major.minor.character (4.2.a) while Enterprise versions are identified by major.minor.digit (4.2.0) -->
|
|
||||||
<!-- <alfresco.version>${alfresco_target_version}</alfresco.version>-->
|
|
||||||
<app.log.root.level>WARN</app.log.root.level>
|
|
||||||
<alfresco.data.location>alf_data_dev</alfresco.data.location>
|
|
||||||
<!-- This controls which properties will be picked in src/test/properties for embedded run -->
|
|
||||||
<env>local</env>
|
|
||||||
<!-- Defines the target WAR artifactId to run this amp, only used with the -Pamp-to-war profile
|
|
||||||
| Defaults to a vanilla repository AMP, but could point to your foundation / aggregator WAR
|
|
||||||
. | Allowed values for Community: alfresco | share
|
|
||||||
| Allowed values for Enterprise: alfresco-enterprise | share-enterprise
|
|
||||||
<alfresco.client.war>${alfresco.repo.artifactId}</alfresco.client.war> -->
|
|
||||||
<!-- Context path to run alfresco on -->
|
|
||||||
<alfresco.client.contextPath>/alfresco</alfresco.client.contextPath>
|
|
||||||
<!-- Defines the target WAR groupId to run this amp, only used with the -Pamp-to-war switch
|
|
||||||
. | Could be org.alfresco or your corporate groupId -->
|
|
||||||
<!-- <alfresco.client.war.groupId>${alfresco.groupId}</alfresco.client.war.groupId> -->
|
|
||||||
|
|
||||||
<!-- Defines the target WAR version to run this amp, only used with the -Pamp-to-war switch -->
|
<!-- This control the root logging level for all apps uncomment and change, defaults to WARN
|
||||||
<!-- <alfresco.client.war.version>${alfresco.version}</alfresco.client.war.version>-->
|
<app.log.root.level>WARN</app.log.root.level>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Set the enviroment to use, this controls which properties will be picked in src/test/properties
|
||||||
|
for embedded run, defaults to the 'local' environment.
|
||||||
|
<env>other environment name</env>
|
||||||
|
-->
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<!-- Here we realize the connection with the Alfresco selected platform
|
<!-- Here we realize the connection with the Alfresco selected platform
|
||||||
(e.g.version and edition) -->
|
(e.g.version and edition) -->
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!-- This will import the dependencyManagement for all artifacts in the selected Alfresco version/edition
|
<!-- Setup what versions of the different Alfresco artifacts that will be used (depends on alfresco.version),
|
||||||
(see http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Importing_Dependencies)
|
so we don't have to specify version in any of the dependency definitions in our POM.
|
||||||
NOTE: You still need to define dependencies in your POM, but you can omit version as it's enforced by this dependencyManagement. NOTE: It defaults
|
For more info see:
|
||||||
to the latest version this SDK pom has been tested with, but alfresco version can/should be overridden in your project's pom -->
|
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Importing_Dependencies
|
||||||
|
-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${alfresco.groupId}</groupId>
|
<groupId>${alfresco.groupId}</groupId>
|
||||||
<artifactId>alfresco-platform-distribution</artifactId>
|
<artifactId>alfresco-platform-distribution</artifactId>
|
||||||
@ -65,17 +53,22 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
<!-- Following dependencies are needed for compiling Java code in src/main/java;
|
<!-- Following dependencies are needed for compiling Java code in src/main/java;
|
||||||
<scope>provided</scope> is inherited for each of the following;
|
<scope>provided</scope> is inherited for each of the following;
|
||||||
for more info, please refer to alfresco-platform-distribution POM -->
|
for more info, please refer to alfresco-platform-distribution POM -->
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${alfresco.groupId}</groupId>
|
<groupId>${alfresco.groupId}</groupId>
|
||||||
<artifactId>alfresco-repository</artifactId>
|
<artifactId>alfresco-repository</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
<!-- Enterprise profile, manually activated, automatically adds support for Enterprise edition development (dependencies) -->
|
<!--
|
||||||
|
Brings in the extra Enterprise specific repository classes,
|
||||||
|
if the 'enterprise' profile has been activated, needs to be activated manually.
|
||||||
|
-->
|
||||||
<profile>
|
<profile>
|
||||||
<id>enterprise</id>
|
<id>enterprise</id>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@ -87,5 +80,23 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
If the 'amp-to-war' profile is enabled then make sure to bring in the alfresco-rad module,
|
||||||
|
which has the H2 scripts and other RAD features.
|
||||||
|
|
||||||
|
TODO: TO INVESTIGATE: This dependency is already defined in the parent SDK pom in the 'amp-to-war' profile
|
||||||
|
but this does not work, it is not include...
|
||||||
|
-->
|
||||||
|
<profile>
|
||||||
|
<id>amp-to-war</id>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.alfresco.maven</groupId>
|
||||||
|
<artifactId>alfresco-rad</artifactId>
|
||||||
|
<version>${maven.alfresco.version}</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
## This Alfresco Repo Configuration file should be used for custom properties that are introduced by this module.
|
||||||
|
## Define default values for all properties here.
|
||||||
|
## System Administrators can override these values in environment specific configurations in
|
||||||
|
## alfresco/tomcat/shared/classes/alfresco-global.properties.
|
||||||
|
##
|
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||||
|
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
|
||||||
|
|
||||||
|
<!-- The bootstrap-context.xml file is used for patch definitions, importers,
|
||||||
|
workflow, and loading custom content models. -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Registration of new models -->
|
||||||
|
<bean id="com.mycompany.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
|
||||||
|
<property name="models">
|
||||||
|
<list>
|
||||||
|
<value>alfresco/module/${project.artifactId}/model/content-model.xml</value>
|
||||||
|
<value>alfresco/module/${project.artifactId}/model/workflow-model.xml</value>
|
||||||
|
|
||||||
|
</list>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</beans>
|
@ -0,0 +1,27 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<model name="myc:contentModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
||||||
|
|
||||||
|
<!-- Optional meta-data about the model -->
|
||||||
|
<description>Document Model for Repo Extension X</description>
|
||||||
|
<author>My Name</author>
|
||||||
|
<version>1.0</version>
|
||||||
|
|
||||||
|
<imports>
|
||||||
|
<!-- Import Alfresco Dictionary Definitions -->
|
||||||
|
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
|
||||||
|
<!-- Import Alfresco Content Domain Model Definitions -->
|
||||||
|
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
|
||||||
|
<!-- Import Alfresco System Model Definitions -->
|
||||||
|
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
|
||||||
|
</imports>
|
||||||
|
|
||||||
|
<!-- Custom namespace for your domain -->
|
||||||
|
<namespaces>
|
||||||
|
<namespace uri="http://www.mycompany.com/model/content/1.0" prefix="myc"/>
|
||||||
|
</namespaces>
|
||||||
|
|
||||||
|
<!-- ===============================================================================================================
|
||||||
|
Constraints, Types, and Aspects go here...
|
||||||
|
-->
|
||||||
|
|
||||||
|
</model>
|
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<model name="myw:workflowModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
||||||
|
<!-- Optional meta-data about the model -->
|
||||||
|
<description>Workflow Model for Repo Extension X</description>
|
||||||
|
<author>My Name</author>
|
||||||
|
<version>1.0</version>
|
||||||
|
|
||||||
|
<imports>
|
||||||
|
<!-- Import Alfresco Dictionary Definitions -->
|
||||||
|
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
|
||||||
|
<!-- Import Alfresco Content Domain Model Definitions -->
|
||||||
|
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
|
||||||
|
<!-- Import Alfresco Workflow Model Definitions -->
|
||||||
|
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"/>
|
||||||
|
</imports>
|
||||||
|
|
||||||
|
<!-- Custom namespace for your domain -->
|
||||||
|
<namespaces>
|
||||||
|
<namespace uri="http://www.mycompany.com/model/workflow/1.0" prefix="myw"/>
|
||||||
|
</namespaces>
|
||||||
|
|
||||||
|
<!-- ===============================================================================================================
|
||||||
|
Constraints, Types, and Aspects go here...
|
||||||
|
-->
|
||||||
|
</model>
|
||||||
|
|
@ -20,5 +20,6 @@
|
|||||||
<beans>
|
<beans>
|
||||||
<!-- This is filtered by Maven at build time, so that module name is single sourced. -->
|
<!-- This is filtered by Maven at build time, so that module name is single sourced. -->
|
||||||
<import resource="classpath:alfresco/module/${project.artifactId}/context/service-context.xml" />
|
<import resource="classpath:alfresco/module/${project.artifactId}/context/service-context.xml" />
|
||||||
|
<import resource="classpath:alfresco/module/${project.artifactId}/context/bootstrap-context.xml" />
|
||||||
|
|
||||||
</beans>
|
</beans>
|
||||||
|
@ -12,36 +12,48 @@
|
|||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# RUN TIME PROPERTIES
|
# RUN TIME PROPERTIES
|
||||||
# -------------------
|
# -------------------
|
||||||
|
|
||||||
# Sample custom content and index data location
|
########################################################################################################################
|
||||||
# This will create alf_data Relative to appserver run folder
|
# Alfresco configuration for running locally
|
||||||
# In this default file we take the property from the POM (for compatibility with local tomcat and jboss deployments) but it can also be edited here.
|
#
|
||||||
|
# Configuration when running Tomcat embedded from Maven.
|
||||||
|
# This will create the alf_data_dev directory relative to Tomcat run folder.
|
||||||
|
# Property values from the POM but it can also be edited here.
|
||||||
|
########################################################################################################################
|
||||||
|
|
||||||
dir.root=${alfresco.data.location}
|
dir.root=${alfresco.data.location}
|
||||||
# Allowed values are: NONE, AUTO, FULL
|
|
||||||
|
# Alfresco Repo Webapp (alfresco.war) context, ports etc
|
||||||
|
alfresco.context=alfresco
|
||||||
|
alfresco.host=localhost
|
||||||
|
alfresco.port=8080
|
||||||
|
alfresco.protocol=http
|
||||||
|
|
||||||
|
# Alfresco Share Webapp (share.war) context, ports etc
|
||||||
|
share.context=share
|
||||||
|
share.host=localhost
|
||||||
|
share.port=8080
|
||||||
|
share.protocol=http
|
||||||
|
|
||||||
|
# Don't try and recover any index
|
||||||
index.recovery.mode=NONE
|
index.recovery.mode=NONE
|
||||||
# As we run embedded, we set Lucene
|
# As we run embedded, we set Lucene
|
||||||
# TODO: Find a better solution for indexing, as buildonly (embedded Lucene) is deprecated and going to be removed soon
|
# TODO: Find a better solution for indexing, as buildonly (embedded Lucene) is deprecated and going to be removed soon
|
||||||
#index.subsystem.name=noindex
|
|
||||||
#index.subsystem.name=solr
|
|
||||||
#index.subsystem.name=solr4
|
|
||||||
index.subsystem.name=buildonly
|
index.subsystem.name=buildonly
|
||||||
|
|
||||||
|
# These jobs seem to require Lucene (Unsupported Operation with Solr) so we disable them / set to future date
|
||||||
#dir.keystore=.
|
# See https://forums.alfresco.com/en/viewtopic.php?f=52&t=41597
|
||||||
#keystore.password=storepassword
|
# If you want to enable them (and so full WQS functionality), please also set index.subsystem.name=lucene
|
||||||
#metadata.password=metapassword
|
wcmqs.dynamicCollectionProcessor.schedule=0 30 2 * * ? 2060
|
||||||
|
wcmqs.feedbackProcessor.schedule=0 40 2 * * ? 2060
|
||||||
|
wcmqs.publishQueueProcessor.schedule=0 50 2 * * ? 2060
|
||||||
|
|
||||||
# Fail or not when there are node integrity checker errors
|
# Fail or not when there are node integrity checker errors
|
||||||
integrity.failOnError=true
|
integrity.failOnError=true
|
||||||
|
|
||||||
# Database connection properties
|
# Database connection properties
|
||||||
# These are also filtered from Maven at build time from POM properties.
|
|
||||||
# Alternatively you can directly define them directly here
|
|
||||||
db.driver=${alfresco.db.datasource.class}
|
db.driver=${alfresco.db.datasource.class}
|
||||||
db.url=${alfresco.db.url}
|
db.url=${alfresco.db.url}
|
||||||
db.username=${alfresco.db.username}
|
db.username=${alfresco.db.username}
|
||||||
@ -51,9 +63,6 @@ db.pool.max=100
|
|||||||
hibernate.dialect=org.hibernate.dialect.H2Dialect
|
hibernate.dialect=org.hibernate.dialect.H2Dialect
|
||||||
|
|
||||||
# File servers related properties
|
# File servers related properties
|
||||||
# For local builds we disable CIFS and FTP. Edit the following property to reenable them
|
# For local runs we disable CIFS and FTP
|
||||||
cifs.enabled=false
|
cifs.enabled=false
|
||||||
|
|
||||||
ftp.enabled=false
|
ftp.enabled=false
|
||||||
ftp.port=1121
|
|
||||||
ftp.authenticator=alfresco
|
|
||||||
|
@ -17,7 +17,17 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<beans>
|
<beans>
|
||||||
<!-- This disables javascript compilation so that webscripts can be hot reloaded -->
|
<!--
|
||||||
|
To support hot reloading of server side Javascript files in Share, we have to turn on development mode.
|
||||||
|
This setting will tell the Rhinoscript Processor not to compile and cache the JS files.
|
||||||
|
Cool, we can now change server side JS files and have the changes picked up,
|
||||||
|
without having to restart or refresh web scripts.
|
||||||
|
|
||||||
|
But… Due to a known bug in the Surf framework (ALF-9970) this will break the admin consoles in Share.
|
||||||
|
|
||||||
|
Override this bean and disable javascript compilation so that webscripts can be hot reloaded.
|
||||||
|
We have changed the 'compile' property from true to false.
|
||||||
|
-->
|
||||||
<bean id="javaScriptProcessor" class="org.alfresco.repo.jscript.RhinoScriptProcessor" init-method="register">
|
<bean id="javaScriptProcessor" class="org.alfresco.repo.jscript.RhinoScriptProcessor" init-method="register">
|
||||||
<property name="name">
|
<property name="name">
|
||||||
<value>javascript</value>
|
<value>javascript</value>
|
||||||
@ -25,7 +35,7 @@
|
|||||||
<property name="extension">
|
<property name="extension">
|
||||||
<value>js</value>
|
<value>js</value>
|
||||||
</property>
|
</property>
|
||||||
<!-- compile javascript and cache compiled scripts -->
|
<!-- Do not "compile javascript and cache compiled scripts" -->
|
||||||
<property name="compile">
|
<property name="compile">
|
||||||
<value>false</value>
|
<value>false</value>
|
||||||
</property>
|
</property>
|
||||||
|
@ -1,22 +1,23 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Context docBase="${alfresco.client.war.folder}" path="${alfresco.client.contextPath}">
|
<!-- ===================================================================================================================
|
||||||
|
This context file is used only in a development IDE for rapid development,
|
||||||
|
it is never released with the Alfresco.war
|
||||||
|
=================================================================================================================-->
|
||||||
|
|
||||||
|
<!-- Setup docBase to something like repo-amp/target/repo-amp-war
|
||||||
|
and path to /alfresco
|
||||||
|
The Alfresco.war 5.0 does not have a webapp (it used to have Alfresco Explorer but not anymore)
|
||||||
|
that we will access, so this docBase might not be needed
|
||||||
|
-->
|
||||||
|
<Context docBase="${app.amp.client.war.folder}" path="${alfresco.client.contextPath}">
|
||||||
|
|
||||||
<Resources className="org.apache.naming.resources.VirtualDirContext"
|
<Resources className="org.apache.naming.resources.VirtualDirContext"
|
||||||
extraResourcePaths="/=${project.build.directory}/${project.build.finalName}/web" />
|
extraResourcePaths="/=${project.build.directory}/${project.build.finalName}/web" />
|
||||||
|
|
||||||
|
<Loader searchVirtualFirst="true"
|
||||||
<Loader searchVirtualFirst="true" className="org.apache.catalina.loader.VirtualWebappLoader"
|
className="org.apache.catalina.loader.VirtualWebappLoader"
|
||||||
virtualClasspath="${project.build.outputDirectory};${project.build.testOutputDirectory};${project.build.directory}/${project.build.finalName}/config" />
|
virtualClasspath="${project.build.outputDirectory};${project.build.testOutputDirectory};${project.build.directory}/${project.build.finalName}/config" />
|
||||||
|
|
||||||
<!--
|
<!-- This enables hot reloading of web resources from uncompressed jars (while in prod they would be loaded from WEB-INF/lib/{\*.jar}/META-INF/resources -->
|
||||||
<Environment override="false" type="java.lang.Boolean" name="properties/startup.enable" description="A flag that globally enables or disables startup of the major Alfresco subsystems." value="true"/>
|
<JarScanner scanAllDirectories="true" />
|
||||||
<Environment override="false" type="java.lang.String" name="properties/dir.root" description="The filesystem directory below which content and index data is stored. Should be on a shared disk if this is a clustered installation."/>
|
|
||||||
<Environment override="false" type="java.lang.String" name="properties/hibernate.dialect" description="The fully qualified name of a org.hibernate.dialect.Dialect subclass that allows Hibernate to generate SQL optimized for a particular relational database. Choose from org.hibernate.dialect.DerbyDialect, org.hibernate.dialect.MySQLInnoDBDialect, org.alfresco.repo.domain.hibernate.dialect.AlfrescoOracle9Dialect, org.alfresco.repo.domain.hibernate.dialect.AlfrescoSybaseAnywhereDialect, org.alfresco.repo.domain.hibernate.dialect.AlfrescoSQLServerDialect, org.hibernate.dialect.PostgreSQLDialect"/>
|
|
||||||
<Environment override="false" type="java.lang.String" name="properties/hibernate.query.substitutions" description="Mapping from tokens in Hibernate queries to SQL tokens. For PostgreSQL, set this to "true TRUE, false FALSE"."/>
|
|
||||||
<Environment override="false" type="java.lang.Boolean" name="properties/hibernate.jdbc.use_get_generated_keys" description="Enable use of JDBC3 PreparedStatement.getGeneratedKeys() to retrieve natively generated keys after insert. Requires JDBC3+ driver. Set to false if your driver has problems with the Hibernate identifier generators. By default, tries to determine the driver capabilities using connection metadata."/>
|
|
||||||
<Environment override="false" type="java.lang.String" name="properties/hibernate.default_schema" description="Qualify unqualified table names with the given schema/tablespace in generated SQL. It may be necessary to set this when the target database has more than one schema."/>
|
|
||||||
-->
|
|
||||||
|
|
||||||
|
|
||||||
</Context>
|
</Context>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>org.alfresco.maven.archetype</groupId>
|
<groupId>org.alfresco.maven.archetype</groupId>
|
||||||
@ -7,7 +8,9 @@
|
|||||||
|
|
||||||
<packaging>maven-archetype</packaging>
|
<packaging>maven-archetype</packaging>
|
||||||
<name>Maven Alfresco SDK - Share AMP Archetype</name>
|
<name>Maven Alfresco SDK - Share AMP Archetype</name>
|
||||||
<description>Share project with full support for lifecycle and rapid development of AMPs (Alfresco Module Packages)</description>
|
<description>Share project with full support for lifecycle and rapid development of AMPs (Alfresco Module
|
||||||
|
Packages)
|
||||||
|
</description>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco.maven</groupId>
|
<groupId>org.alfresco.maven</groupId>
|
||||||
@ -37,6 +40,7 @@
|
|||||||
<filtering>false</filtering>
|
<filtering>false</filtering>
|
||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
|
@ -16,30 +16,34 @@
|
|||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
| SDK properties have sensible defaults in the SDK parent,
|
SDK properties have sensible defaults in the SDK parent,
|
||||||
| but you can override the properties below to use another version.
|
but you can override the properties below to use another version.
|
||||||
| For more available properties see the alfresco-sdk-parent POM.
|
For more available properties see the alfresco-sdk-parent POM.
|
||||||
-->
|
-->
|
||||||
<properties>
|
<properties>
|
||||||
<!-- Defines the target WAR artifactId to run this amp, only used with the -Pamp-to-war switch
|
<!-- If you want to change the default Alfresco version, uncomment the following property:
|
||||||
| Allowed values: alfresco | share. In this case it's configured to use OOTB share -->
|
<alfresco.version>specify version number here</alfresco.version>
|
||||||
<alfresco.client.war>${alfresco.share.artifactId}</alfresco.client.war>
|
-->
|
||||||
<alfresco.client.contextPath>/share</alfresco.client.contextPath>
|
|
||||||
|
<!-- This control the root logging level for all apps uncomment and change, defaults to WARN
|
||||||
|
<app.log.root.level>WARN</app.log.root.level>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Set the enviroment to use, this controls which properties will be picked in src/test/properties
|
||||||
|
for embedded run, defaults to the 'local' environment.
|
||||||
|
<env>other environment name</env>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- The Maven artifact ID to use when loading the Share.WAR that the AMP should be applied to,
|
||||||
|
defaults to the alfresco.war artifact ID, so we need to override here. -->
|
||||||
|
<app.amp.client.war.artifactId>${alfresco.share.artifactId}</app.amp.client.war.artifactId>
|
||||||
|
|
||||||
<!-- Since Alfresco is already running on port 8080, we run Share on port 8081 -->
|
<!-- Since Alfresco is already running on port 8080, we run Share on port 8081 -->
|
||||||
<maven.tomcat.port>8081</maven.tomcat.port>
|
<maven.tomcat.port>8081</maven.tomcat.port>
|
||||||
|
|
||||||
<!-- Used in share-config-custom.xml. By default points to standard location of Alfresco -->
|
<!-- Used in share-config-custom.xml. By default points to standard location of Alfresco -->
|
||||||
<alfresco.repo.url>http://localhost:8080/alfresco</alfresco.repo.url>
|
<alfresco.repo.url>http://localhost:8080/alfresco</alfresco.repo.url>
|
||||||
|
|
||||||
<!-- Defines the Alfresco version to work against.
|
|
||||||
Community versions are typically identified by major.minor.character (4.2.a),
|
|
||||||
while Enterprise versions are identified by major.minor.digit (4.2.0)
|
|
||||||
-->
|
|
||||||
<!--<alfresco.version>${alfresco_target_version}</alfresco.version>-->
|
|
||||||
|
|
||||||
<!-- Defines the log level used in log4j.properties -->
|
|
||||||
<app.log.root.level>WARN</app.log.root.level>
|
|
||||||
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<!-- Here we realize the connection with the Alfresco selected platform
|
<!-- Here we realize the connection with the Alfresco selected platform
|
||||||
@ -59,6 +63,7 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
<!-- Following dependencies are needed for compiling Java code in src/main/java; -->
|
<!-- Following dependencies are needed for compiling Java code in src/main/java; -->
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -75,8 +80,37 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<!-- Compress JavaScript files and store as *-min.js -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>net.alchim31.maven</groupId>
|
||||||
|
<artifactId>yuicompressor-maven-plugin</artifactId>
|
||||||
|
<version>1.5.1</version>
|
||||||
|
<configuration>
|
||||||
|
<excludes>
|
||||||
|
<exclude>alfresco/**/*.*</exclude>
|
||||||
|
<exclude>**/*-min.js</exclude>
|
||||||
|
<exclude>**/*.css</exclude>
|
||||||
|
</excludes>
|
||||||
|
<resources/>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>compress-js</id>
|
||||||
|
<goals>
|
||||||
|
<goal>compress</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
<!-- Enterprise profile, manually activated, automatically adds support for Enterprise edition development (dependencies) -->
|
<!--
|
||||||
|
Brings in the extra Enterprise specific share classes,
|
||||||
|
if the 'enterprise' profile has been activated, needs to be activated manually. -->
|
||||||
<profile>
|
<profile>
|
||||||
<id>enterprise</id>
|
<id>enterprise</id>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
# This file should contain messages and labels specific to this share extension
|
||||||
|
# Put here things like:
|
||||||
|
# Content Model Aspect and Type Labels
|
||||||
|
# Form field labels
|
||||||
|
# Doc lib Action labels and messages
|
||||||
|
# Doc Lib Action Forms labels
|
||||||
|
#
|
||||||
|
|
||||||
|
|
@ -0,0 +1,30 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xmlns:hz="http://www.hazelcast.com/schema/spring"
|
||||||
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||||
|
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
||||||
|
http://www.hazelcast.com/schema/spring
|
||||||
|
http://www.hazelcast.com/schema/spring/hazelcast-spring-2.4.xsd">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Define beans related to this Share extension here, such as
|
||||||
|
evaluators and resource bootstrapping.
|
||||||
|
|
||||||
|
Note. Any configuration related to the whole Share.war webapp
|
||||||
|
(i.e. not specific to this share extension) should be
|
||||||
|
placed in the environment specific config:
|
||||||
|
alfresco/tomcat/shared/classes/alfresco/web-extension/custom-slingshot-application-context.xml file
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Add extension specific messages and labels -->
|
||||||
|
<bean id="com.mycompany.share-amp.resources"
|
||||||
|
class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
|
||||||
|
<property name="resourceBundles">
|
||||||
|
<list>
|
||||||
|
<value>alfresco.messages.custom</value>
|
||||||
|
</list>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
</beans>
|
@ -0,0 +1,4 @@
|
|||||||
|
## If you are overriding existing pages/components put these extension modules here.
|
||||||
|
## If you are defining new extensions add them under resources/alfresco/site-data.
|
||||||
|
##
|
||||||
|
|
@ -0,0 +1,4 @@
|
|||||||
|
## If you are overriding out-of-the-box Alfresco web scripts put these files here.
|
||||||
|
## If you are defining new web scripts add them under resources/alfresco/site-webscripts.
|
||||||
|
##
|
||||||
|
|
@ -1,423 +1,14 @@
|
|||||||
<!-- Alfresco 5.0.c share-config-custom.xml sample -->
|
<!-- Share configuration related to this particular Share module extension, such as:
|
||||||
|
- Doclib action config
|
||||||
|
- Form config
|
||||||
|
- Aspect and Type config
|
||||||
|
|
||||||
|
Note. Any configuration related to the whole Share.war webapp
|
||||||
|
(i.e. not specific to this share extension) should be
|
||||||
|
placed in the environment specific config:
|
||||||
|
alfresco/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml file
|
||||||
|
-->
|
||||||
<alfresco-config>
|
<alfresco-config>
|
||||||
|
|
||||||
<!-- Global config section -->
|
|
||||||
<config replace="true">
|
|
||||||
<flags>
|
|
||||||
<!--
|
|
||||||
Developer debugging setting to turn on DEBUG mode for client scripts in the browser
|
|
||||||
-->
|
|
||||||
<client-debug>false</client-debug>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
LOGGING can always be toggled at runtime when in DEBUG mode (Ctrl, Ctrl, Shift, Shift).
|
|
||||||
This flag automatically activates logging on page load.
|
|
||||||
-->
|
|
||||||
<client-debug-autologging>false</client-debug-autologging>
|
|
||||||
</flags>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
<config evaluator="string-compare" condition="WebFramework">
|
|
||||||
<web-framework>
|
|
||||||
<!-- SpringSurf Autowire Runtime Settings -->
|
|
||||||
<!--
|
|
||||||
Developers can set mode to 'development' to disable; SpringSurf caches,
|
|
||||||
FreeMarker template caching and Rhino JavaScript compilation.
|
|
||||||
-->
|
|
||||||
<autowire>
|
|
||||||
<!-- Pick the mode: "production" or "development" -->
|
|
||||||
<mode>production</mode>
|
|
||||||
</autowire>
|
|
||||||
|
|
||||||
<!-- Allows extension modules with <auto-deploy> set to true to be automatically deployed -->
|
|
||||||
<module-deployment>
|
|
||||||
<mode>manual</mode>
|
|
||||||
<enable-auto-deploy-modules>true</enable-auto-deploy-modules>
|
|
||||||
</module-deployment>
|
|
||||||
</web-framework>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
<!-- Disable the CSRF Token Filter -->
|
|
||||||
<!--
|
|
||||||
<config evaluator="string-compare" condition="CSRFPolicy" replace="true">
|
|
||||||
<filter/>
|
|
||||||
</config>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--
|
|
||||||
To run the CSRF Token Filter behind 1 or more proxies that do not rewrite the Origin or Referere headers:
|
|
||||||
|
|
||||||
1. Copy the "CSRFPolicy" default config in share-security-config.xml and paste it into this file.
|
|
||||||
2. Replace the old config by setting the <config> element's "replace" attribute to "true" like below:
|
|
||||||
<config evaluator="string-compare" condition="CSRFPolicy" replace="true">
|
|
||||||
3. To every <action name="assertReferer"> element add the following child element
|
|
||||||
<param name="referer">http://www.proxy1.com/.*|http://www.proxy2.com/.*</param>
|
|
||||||
4. To every <action name="assertOrigin"> element add the following child element
|
|
||||||
<param name="origin">http://www.proxy1.com|http://www.proxy2.com</param>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Remove the default wildcard setting and use instead a strict whitelist of the only domains that shall be allowed
|
|
||||||
to be used inside iframes (i.e. in the WebView dashlet on the dashboards)
|
|
||||||
-->
|
|
||||||
<!--
|
|
||||||
<config evaluator="string-compare" condition="IFramePolicy" replace="true">
|
|
||||||
<cross-domain>
|
|
||||||
<url>http://www.trusted-domain-1.com/</url>
|
|
||||||
<url>http://www.trusted-domain-2.com/</url>
|
|
||||||
</cross-domain>
|
|
||||||
</config>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- Turn off header that stops Share from being displayed in iframes on pages from other domains -->
|
|
||||||
<!--
|
|
||||||
<config evaluator="string-compare" condition="SecurityHeadersPolicy">
|
|
||||||
<headers>
|
|
||||||
<header>
|
|
||||||
<name>X-Frame-Options</name>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</header>
|
|
||||||
</headers>
|
|
||||||
</config>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- Prevent browser communication over HTTP (for HTTPS servers) -->
|
|
||||||
<!--
|
|
||||||
<config evaluator="string-compare" condition="SecurityHeadersPolicy">
|
|
||||||
<headers>
|
|
||||||
<header>
|
|
||||||
<name>Strict-Transport-Security</name>
|
|
||||||
<value>max-age=31536000</value>
|
|
||||||
</header>
|
|
||||||
</headers>
|
|
||||||
</config>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<config evaluator="string-compare" condition="Replication">
|
|
||||||
<share-urls>
|
|
||||||
<!--
|
|
||||||
To discover a Repository Id, browse to the remote server's CMIS landing page at:
|
|
||||||
http://{server}:{port}/alfresco/service/cmis/index.html
|
|
||||||
The Repository Id field is found under the "CMIS Repository Information" expandable panel.
|
|
||||||
|
|
||||||
Example config entry:
|
|
||||||
<share-url repositoryId="622f9533-2a1e-48fe-af4e-ee9e41667ea4">http://new-york-office:8080/share/</share-url>
|
|
||||||
-->
|
|
||||||
</share-urls>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
<!-- Document Library config section -->
|
|
||||||
<config evaluator="string-compare" condition="DocumentLibrary" replace="true">
|
|
||||||
|
|
||||||
<tree>
|
|
||||||
<!--
|
|
||||||
Whether the folder Tree component should enumerate child folders or not.
|
|
||||||
This is a relatively expensive operation, so should be set to "false" for Repositories with broad folder structures.
|
|
||||||
-->
|
|
||||||
<evaluate-child-folders>false</evaluate-child-folders>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Optionally limit the number of folders shown in treeview throughout Share.
|
|
||||||
-->
|
|
||||||
<maximum-folder-count>1000</maximum-folder-count>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Default timeout in milliseconds for folder Tree component to recieve response from Repository
|
|
||||||
-->
|
|
||||||
<timeout>7000</timeout>
|
|
||||||
</tree>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Used by the "Manage Aspects" action
|
|
||||||
|
|
||||||
For custom aspects, remember to also add the relevant i18n string(s)
|
|
||||||
cm_myaspect=My Aspect
|
|
||||||
-->
|
|
||||||
<aspects>
|
|
||||||
<!-- Aspects that a user can see -->
|
|
||||||
<visible>
|
|
||||||
<aspect name="cm:generalclassifiable" />
|
|
||||||
<aspect name="cm:complianceable" />
|
|
||||||
<aspect name="cm:dublincore" />
|
|
||||||
<aspect name="cm:effectivity" />
|
|
||||||
<aspect name="cm:summarizable" />
|
|
||||||
<aspect name="cm:versionable" />
|
|
||||||
<aspect name="cm:templatable" />
|
|
||||||
<aspect name="cm:emailed" />
|
|
||||||
<aspect name="emailserver:aliasable" />
|
|
||||||
<aspect name="cm:taggable" />
|
|
||||||
<aspect name="app:inlineeditable" />
|
|
||||||
<aspect name="gd:googleEditable" />
|
|
||||||
<aspect name="cm:geographic" />
|
|
||||||
<aspect name="exif:exif" />
|
|
||||||
<aspect name="audio:audio" />
|
|
||||||
<aspect name="cm:indexControl" />
|
|
||||||
<aspect name="dp:restrictable" />
|
|
||||||
</visible>
|
|
||||||
|
|
||||||
<!-- Aspects that a user can add. Same as "visible" if left empty -->
|
|
||||||
<addable>
|
|
||||||
</addable>
|
|
||||||
|
|
||||||
<!-- Aspects that a user can remove. Same as "visible" if left empty -->
|
|
||||||
<removeable>
|
|
||||||
</removeable>
|
|
||||||
</aspects>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Used by the "Change Type" action
|
|
||||||
|
|
||||||
Define valid subtypes using the following example:
|
|
||||||
<type name="cm:content">
|
|
||||||
<subtype name="cm:mysubtype" />
|
|
||||||
</type>
|
|
||||||
|
|
||||||
Remember to also add the relevant i18n string(s):
|
|
||||||
cm_mysubtype=My SubType
|
|
||||||
-->
|
|
||||||
<types>
|
|
||||||
<type name="cm:content">
|
|
||||||
</type>
|
|
||||||
|
|
||||||
<type name="cm:folder">
|
|
||||||
</type>
|
|
||||||
|
|
||||||
<type name="trx:transferTarget">
|
|
||||||
<subtype name="trx:fileTransferTarget" />
|
|
||||||
</type>
|
|
||||||
</types>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
If set, will present a WebDAV link for the current item on the Document and Folder details pages.
|
|
||||||
Also used to generate the "View in Alfresco Explorer" action for folders.
|
|
||||||
-->
|
|
||||||
<repository-url>http://localhost:8080/alfresco</repository-url>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Google Docs integration
|
|
||||||
-->
|
|
||||||
<google-docs>
|
|
||||||
<!--
|
|
||||||
Enable/disable the Google Docs UI integration (Extra types on Create Content menu, Google Docs actions).
|
|
||||||
-->
|
|
||||||
<enabled>false</enabled>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
The mimetypes of documents Google Docs allows you to create via the Share interface.
|
|
||||||
The I18N label is created from the "type" attribute, e.g. google-docs.doc=Google Docs™ Document
|
|
||||||
-->
|
|
||||||
<creatable-types>
|
|
||||||
<creatable type="doc">application/msword</creatable>
|
|
||||||
<creatable type="xls">application/vnd.ms-excel</creatable>
|
|
||||||
<creatable type="ppt">application/vnd.ms-powerpoint</creatable>
|
|
||||||
</creatable-types>
|
|
||||||
</google-docs>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
File upload configuration
|
|
||||||
-->
|
|
||||||
<file-upload>
|
|
||||||
<!--
|
|
||||||
Adobe Flash™
|
|
||||||
In certain environments, an HTTP request originating from Flash cannot be authenticated using an existing session.
|
|
||||||
See: http://bugs.adobe.com/jira/browse/FP-4830
|
|
||||||
For these cases, it is useful to disable the Flash-based uploader for Share Document Libraries.
|
|
||||||
-->
|
|
||||||
<adobe-flash-enabled>true</adobe-flash-enabled>
|
|
||||||
</file-upload>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Custom DocLibActions config section -->
|
|
||||||
<config evaluator="string-compare" condition="DocLibActions">
|
|
||||||
<actionGroups>
|
|
||||||
<actionGroup id="document-browse">
|
|
||||||
|
|
||||||
<!-- Simple Repo Actions -->
|
|
||||||
<!--
|
|
||||||
<action index="340" id="document-extract-metadata" />
|
|
||||||
<action index="350" id="document-increment-counter" />
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- Dialog Repo Actions -->
|
|
||||||
<!--
|
|
||||||
<action index="360" id="document-transform" />
|
|
||||||
<action index="370" id="document-transform-image" />
|
|
||||||
<action index="380" id="document-execute-script" />
|
|
||||||
-->
|
|
||||||
|
|
||||||
</actionGroup>
|
|
||||||
</actionGroups>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
<!-- Global folder picker config section -->
|
|
||||||
<config evaluator="string-compare" condition="GlobalFolder">
|
|
||||||
<siteTree>
|
|
||||||
<container type="cm:folder">
|
|
||||||
<!-- Use a specific label for this container type in the tree -->
|
|
||||||
<rootLabel>location.path.documents</rootLabel>
|
|
||||||
<!-- Use a specific uri to retreive the child nodes for this container type in the tree -->
|
|
||||||
<uri>slingshot/doclib/treenode/site/{site}/{container}{path}?children={evaluateChildFoldersSite}&max={maximumFolderCountSite}</uri>
|
|
||||||
</container>
|
|
||||||
</siteTree>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
<!-- Repository Library config section -->
|
|
||||||
<config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
|
|
||||||
<!--
|
|
||||||
Root nodeRef or xpath expression for top-level folder.
|
|
||||||
e.g. alfresco://user/home, /app:company_home/st:sites/cm:site1
|
|
||||||
If using an xpath expression, ensure it is properly ISO9075 encoded here.
|
|
||||||
-->
|
|
||||||
<root-node>alfresco://company/home</root-node>
|
|
||||||
|
|
||||||
<tree>
|
|
||||||
<!--
|
|
||||||
Whether the folder Tree component should enumerate child folders or not.
|
|
||||||
This is a relatively expensive operation, so should be set to "false" for Repositories with broad folder structures.
|
|
||||||
-->
|
|
||||||
<evaluate-child-folders>false</evaluate-child-folders>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Optionally limit the number of folders shown in treeview throughout Share.
|
|
||||||
-->
|
|
||||||
<maximum-folder-count>500</maximum-folder-count>
|
|
||||||
</tree>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Whether the link to the Repository Library appears in the header component or not.
|
|
||||||
-->
|
|
||||||
<visible>true</visible>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
<!-- Kerberos settings -->
|
|
||||||
<!-- To enable kerberos rename this condition to "Kerberos" -->
|
|
||||||
<config evaluator="string-compare" condition="KerberosDisabled" replace="true">
|
|
||||||
<kerberos>
|
|
||||||
<!--
|
|
||||||
Password for HTTP service account.
|
|
||||||
The account name *must* be built from the HTTP server name, in the format :
|
|
||||||
HTTP/<server_name>@<realm>
|
|
||||||
(NB this is because the web browser requests an ST for the
|
|
||||||
HTTP/<server_name> principal in the current realm, so if we're to decode
|
|
||||||
that ST, it has to match.)
|
|
||||||
-->
|
|
||||||
<password>secret</password>
|
|
||||||
<!--
|
|
||||||
Kerberos realm and KDC address.
|
|
||||||
-->
|
|
||||||
<realm>ALFRESCO.ORG</realm>
|
|
||||||
<!--
|
|
||||||
Service Principal Name to use on the repository tier.
|
|
||||||
This must be like: HTTP/host.name@REALM
|
|
||||||
-->
|
|
||||||
<endpoint-spn>HTTP/repository.server.com@ALFRESCO.ORG</endpoint-spn>
|
|
||||||
<!--
|
|
||||||
JAAS login configuration entry name.
|
|
||||||
-->
|
|
||||||
<config-entry>ShareHTTP</config-entry>
|
|
||||||
</kerberos>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
<!-- Uncomment and modify the URL to Activiti Admin Console if required. -->
|
|
||||||
<!--
|
|
||||||
<config evaluator="string-compare" condition="ActivitiAdmin" replace="true">
|
|
||||||
<activiti-admin-url>http://localhost:8080/alfresco/activiti-admin</activiti-admin-url>
|
|
||||||
</config>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<config evaluator="string-compare" condition="Remote">
|
|
||||||
<remote>
|
|
||||||
<endpoint>
|
|
||||||
<id>alfresco-noauth</id>
|
|
||||||
<name>Alfresco - unauthenticated access</name>
|
|
||||||
<description>Access to Alfresco Repository WebScripts that do not require authentication</description>
|
|
||||||
<connector-id>alfresco</connector-id>
|
|
||||||
<endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
|
|
||||||
<identity>none</identity>
|
|
||||||
</endpoint>
|
|
||||||
|
|
||||||
<endpoint>
|
|
||||||
<id>alfresco</id>
|
|
||||||
<name>Alfresco - user access</name>
|
|
||||||
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
|
|
||||||
<connector-id>alfresco</connector-id>
|
|
||||||
<endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
|
|
||||||
<identity>user</identity>
|
|
||||||
</endpoint>
|
|
||||||
|
|
||||||
<endpoint>
|
|
||||||
<id>alfresco-feed</id>
|
|
||||||
<name>Alfresco Feed</name>
|
|
||||||
<description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
|
|
||||||
<connector-id>http</connector-id>
|
|
||||||
<endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
|
|
||||||
<basic-auth>true</basic-auth>
|
|
||||||
<identity>user</identity>
|
|
||||||
</endpoint>
|
|
||||||
|
|
||||||
<endpoint>
|
|
||||||
<id>activiti-admin</id>
|
|
||||||
<name>Activiti Admin UI - user access</name>
|
|
||||||
<description>Access to Activiti Admin UI, that requires user authentication</description>
|
|
||||||
<connector-id>activiti-admin-connector</connector-id>
|
|
||||||
<endpoint-url>http://localhost:8080/alfresco/activiti-admin</endpoint-url>
|
|
||||||
<identity>user</identity>
|
|
||||||
</endpoint>
|
|
||||||
</remote>
|
|
||||||
</config>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Overriding endpoints to reference an Alfresco server with external SSO enabled
|
|
||||||
NOTE: If utilising a load balancer between web-tier and repository cluster, the "sticky
|
|
||||||
sessions" feature of your load balancer must be used.
|
|
||||||
NOTE: If alfresco server location is not localhost:8080 then also combine changes from the
|
|
||||||
"example port config" section below.
|
|
||||||
*Optional* keystore contains SSL client certificate + trusted CAs.
|
|
||||||
Used to authenticate share to an external SSO system such as CAS
|
|
||||||
Remove the keystore section if not required i.e. for NTLM.
|
|
||||||
|
|
||||||
NOTE: For Kerberos SSO rename the "KerberosDisabled" condition above to "Kerberos"
|
|
||||||
|
|
||||||
NOTE: For external SSO, switch the endpoint connector to "AlfrescoHeader" and set
|
|
||||||
the userHeader to the name of the HTTP header that the external SSO
|
|
||||||
uses to provide the authenticated user name.
|
|
||||||
-->
|
|
||||||
<!--
|
|
||||||
<config evaluator="string-compare" condition="Remote">
|
|
||||||
<remote>
|
|
||||||
<keystore>
|
|
||||||
<path>alfresco/web-extension/alfresco-system.p12</path>
|
|
||||||
<type>pkcs12</type>
|
|
||||||
<password>alfresco-system</password>
|
|
||||||
</keystore>
|
|
||||||
|
|
||||||
<connector>
|
|
||||||
<id>alfrescoCookie</id>
|
|
||||||
<name>Alfresco Connector</name>
|
|
||||||
<description>Connects to an Alfresco instance using cookie-based authentication</description>
|
|
||||||
<class>org.alfresco.web.site.servlet.SlingshotAlfrescoConnector</class>
|
|
||||||
</connector>
|
|
||||||
|
|
||||||
<connector>
|
|
||||||
<id>alfrescoHeader</id>
|
|
||||||
<name>Alfresco Connector</name>
|
|
||||||
<description>Connects to an Alfresco instance using header and cookie-based authentication</description>
|
|
||||||
<class>org.alfresco.web.site.servlet.SlingshotAlfrescoConnector</class>
|
|
||||||
<userHeader>SsoUserHeader</userHeader>
|
|
||||||
</connector>
|
|
||||||
|
|
||||||
<endpoint>
|
|
||||||
<id>alfresco</id>
|
|
||||||
<name>Alfresco - user access</name>
|
|
||||||
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
|
|
||||||
<connector-id>alfrescoCookie</connector-id>
|
|
||||||
<endpoint-url>http://localhost:8080/alfresco/wcs</endpoint-url>
|
|
||||||
<identity>user</identity>
|
|
||||||
<external-auth>true</external-auth>
|
|
||||||
</endpoint>
|
|
||||||
</remote>
|
|
||||||
</config>
|
|
||||||
-->
|
|
||||||
|
|
||||||
</alfresco-config>
|
</alfresco-config>
|
@ -3,8 +3,16 @@
|
|||||||
<config evaluator="string-compare" condition="WebFramework">
|
<config evaluator="string-compare" condition="WebFramework">
|
||||||
<web-framework>
|
<web-framework>
|
||||||
<autowire>
|
<autowire>
|
||||||
<mode>development</mode>
|
<!-- Changing this to 'development' currently breaks the Admin Console so it does not work correctly.
|
||||||
|
During testing we instead disable JS compilation by overriding bean javaScriptProcessor -->
|
||||||
|
<mode>production</mode>
|
||||||
</autowire>
|
</autowire>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
If resource caching has been disabled then all the dependency caches will be cleared
|
||||||
|
before processing the Aikau jsonModel request...
|
||||||
|
(i.e. this.dojoDependencyHandler.clearCaches() )
|
||||||
|
-->
|
||||||
<disable-resource-caching>true</disable-resource-caching>
|
<disable-resource-caching>true</disable-resource-caching>
|
||||||
</web-framework>
|
</web-framework>
|
||||||
</config>
|
</config>
|
||||||
@ -25,12 +33,18 @@
|
|||||||
</flags>
|
</flags>
|
||||||
</config>
|
</config>
|
||||||
|
|
||||||
<!-- Disable CSRF completely for now -->
|
<!--
|
||||||
<!-- It seems Share has issues on 4.2.x with the embedded tomcat and CSRFPolicy -->
|
Disable CSRF completely for now
|
||||||
|
It seems Share has issues on 4.2.x with the embedded tomcat and CSRFPolicy
|
||||||
|
-->
|
||||||
<config evaluator="string-compare" condition="CSRFPolicy" replace="true">
|
<config evaluator="string-compare" condition="CSRFPolicy" replace="true">
|
||||||
<filter/>
|
<filter/>
|
||||||
</config>
|
</config>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Change so it is picked up from property where the Alfresco Repo Webapp is running
|
||||||
|
(e.g. http://localhost:8080/alfresco)
|
||||||
|
-->
|
||||||
<config evaluator="string-compare" condition="Remote">
|
<config evaluator="string-compare" condition="Remote">
|
||||||
<remote>
|
<remote>
|
||||||
<endpoint>
|
<endpoint>
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
# This is a full override of Alfresco 4.2.b log4j.properties
|
# This file is copied from Alfresco Share 5.0.d
|
||||||
# This file overwrites the alfresco.war log4j.properties
|
# Overrides tomcat/webapps/share/WEB-INF/classes/log4j,properties
|
||||||
|
# and sets new file location from property and log level from property.
|
||||||
|
#
|
||||||
|
|
||||||
# Set root logger level to error
|
# Set root logger level to error
|
||||||
log4j.rootLogger=${app.log.root.level}, Console, File
|
log4j.rootLogger=${app.log.root.level}, Console, File
|
||||||
@ -20,27 +22,7 @@ log4j.appender.File.File=${app.log.dir}alfresco.log
|
|||||||
log4j.appender.File.Append=true
|
log4j.appender.File.Append=true
|
||||||
log4j.appender.File.DatePattern='.'yyyy-MM-dd
|
log4j.appender.File.DatePattern='.'yyyy-MM-dd
|
||||||
log4j.appender.File.layout=org.apache.log4j.PatternLayout
|
log4j.appender.File.layout=org.apache.log4j.PatternLayout
|
||||||
log4j.appender.File.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
|
log4j.appender.File.layout.ConversionPattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %m%n
|
||||||
|
|
||||||
###### Hibernate specific appender definition #######
|
|
||||||
#log4j.appender.file=org.apache.log4j.FileAppender
|
|
||||||
#log4j.appender.file.File=hibernate.log
|
|
||||||
#log4j.appender.file.layout=org.apache.log4j.PatternLayout
|
|
||||||
#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
|
|
||||||
|
|
||||||
###### Log level overrides #######
|
|
||||||
|
|
||||||
# Commented-in loggers will be exposed as JMX MBeans (refer to org.alfresco.repo.admin.Log4JHierarchyInit)
|
|
||||||
# Hence, generally useful loggers should be listed with at least ERROR level to allow simple runtime
|
|
||||||
# control of the level via a suitable JMX Console. Also, any other loggers can be added transiently via
|
|
||||||
# Log4j addLoggerMBean as long as the logger exists and has been loaded.
|
|
||||||
|
|
||||||
# Hibernate
|
|
||||||
log4j.logger.org.hibernate=error
|
|
||||||
log4j.logger.org.hibernate.util.JDBCExceptionReporter=fatal
|
|
||||||
log4j.logger.org.hibernate.event.def.AbstractFlushingEventListener=fatal
|
|
||||||
log4j.logger.org.hibernate.type=warn
|
|
||||||
log4j.logger.org.hibernate.cfg.SettingsFactory=warn
|
|
||||||
|
|
||||||
# Spring
|
# Spring
|
||||||
log4j.logger.org.springframework=warn
|
log4j.logger.org.springframework=warn
|
||||||
@ -48,219 +30,23 @@ log4j.logger.org.springframework=warn
|
|||||||
log4j.logger.org.springframework.remoting.support=error
|
log4j.logger.org.springframework.remoting.support=error
|
||||||
log4j.logger.org.springframework.util=error
|
log4j.logger.org.springframework.util=error
|
||||||
|
|
||||||
# Axis/WSS4J
|
|
||||||
log4j.logger.org.apache.axis=info
|
|
||||||
log4j.logger.org.apache.ws=info
|
|
||||||
|
|
||||||
# CXF
|
|
||||||
log4j.logger.org.apache.cxf=error
|
|
||||||
|
|
||||||
# MyFaces
|
# MyFaces
|
||||||
log4j.logger.org.apache.myfaces.util.DebugUtils=info
|
log4j.logger.org.apache.myfaces.util.DebugUtils=info
|
||||||
log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error
|
log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error
|
||||||
log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error
|
log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error
|
||||||
log4j.logger.org.apache.myfaces.taglib=error
|
log4j.logger.org.apache.myfaces.taglib=error
|
||||||
|
|
||||||
# OpenOfficeConnection
|
|
||||||
log4j.logger.net.sf.jooreports.openoffice.connection=fatal
|
|
||||||
|
|
||||||
# log prepared statement cache activity ###
|
|
||||||
log4j.logger.org.hibernate.ps.PreparedStatementCache=info
|
|
||||||
|
|
||||||
# Alfresco
|
# Alfresco
|
||||||
log4j.logger.org.alfresco=error
|
log4j.logger.org.alfresco=error
|
||||||
log4j.logger.org.alfresco.repo.admin=info
|
|
||||||
log4j.logger.org.alfresco.repo.cache.TransactionalCache=warn
|
|
||||||
log4j.logger.org.alfresco.repo.model.filefolder=warn
|
|
||||||
log4j.logger.org.alfresco.repo.tenant=info
|
|
||||||
log4j.logger.org.alfresco.repo.avm=info
|
|
||||||
log4j.logger.org.alfresco.config=warn
|
log4j.logger.org.alfresco.config=warn
|
||||||
log4j.logger.org.alfresco.config.JndiObjectFactoryBean=warn
|
log4j.logger.org.alfresco.config.JndiObjectFactoryBean=warn
|
||||||
log4j.logger.org.alfresco.config.JBossEnabledWebApplicationContext=warn
|
|
||||||
log4j.logger.org.alfresco.repo.management.subsystems=warn
|
|
||||||
log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory=info
|
|
||||||
log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ChildApplicationContext=warn
|
|
||||||
log4j.logger.org.alfresco.repo.security.sync=info
|
|
||||||
log4j.logger.org.alfresco.repo.security.person=info
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.sample=info
|
|
||||||
log4j.logger.org.alfresco.web=info
|
log4j.logger.org.alfresco.web=info
|
||||||
#log4j.logger.org.alfresco.web.app.AlfrescoNavigationHandler=debug
|
|
||||||
#log4j.logger.org.alfresco.web.ui.repo.component.UIActions=debug
|
|
||||||
#log4j.logger.org.alfresco.web.ui.repo.tag.PageTag=debug
|
|
||||||
#log4j.logger.org.alfresco.web.bean.clipboard=debug
|
|
||||||
log4j.logger.org.alfresco.repo.webservice=info
|
|
||||||
log4j.logger.org.alfresco.service.descriptor.DescriptorService=info
|
|
||||||
#log4j.logger.org.alfresco.web.page=debug
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=error
|
|
||||||
#log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=info
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.web.ui.common.Utils=error
|
|
||||||
#log4j.logger.org.alfresco.web.ui.common.Utils=info
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.repo.admin.patch.PatchExecuter=info
|
|
||||||
log4j.logger.org.alfresco.repo.domain.patch.ibatis.PatchDAOImpl=info
|
|
||||||
|
|
||||||
# Specific patches
|
|
||||||
log4j.logger.org.alfresco.repo.admin.patch.impl.DeploymentMigrationPatch=info
|
|
||||||
log4j.logger.org.alfresco.repo.version.VersionMigrator=info
|
|
||||||
log4j.logger.org.alfresco.repo.admin.patch.impl.ResetWCMToGroupBasedPermissionsPatch=info
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.repo.module.ModuleServiceImpl=info
|
|
||||||
log4j.logger.org.alfresco.repo.domain.schema.SchemaBootstrap=info
|
|
||||||
log4j.logger.org.alfresco.repo.admin.ConfigurationChecker=info
|
|
||||||
log4j.logger.org.alfresco.repo.node.index.AbstractReindexComponent=warn
|
|
||||||
log4j.logger.org.alfresco.repo.node.index.IndexTransactionTracker=warn
|
|
||||||
log4j.logger.org.alfresco.repo.node.index.FullIndexRecoveryComponent=info
|
|
||||||
log4j.logger.org.alfresco.repo.node.index.AVMFullIndexRecoveryComponent=info
|
|
||||||
log4j.logger.org.alfresco.util.OpenOfficeConnectionTester=info
|
|
||||||
log4j.logger.org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl=warn
|
|
||||||
log4j.logger.org.alfresco.repo.domain.hibernate.DirtySessionMethodInterceptor=warn
|
|
||||||
log4j.logger.org.alfresco.repo.transaction.RetryingTransactionHelper=warn
|
|
||||||
log4j.logger.org.alfresco.util.transaction.SpringAwareUserTransaction.trace=warn
|
|
||||||
log4j.logger.org.alfresco.util.AbstractTriggerBean=warn
|
|
||||||
log4j.logger.org.alfresco.enterprise.repo.cache.cluster.KeepAliveHeartbeatReceiver=info
|
|
||||||
log4j.logger.org.alfresco.repo.version.Version2ServiceImpl=warn
|
|
||||||
|
|
||||||
#log4j.logger.org.alfresco.web.app.DebugPhaseListener=debug
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.repo.workflow=info
|
|
||||||
|
|
||||||
# CIFS server debugging
|
|
||||||
log4j.logger.org.alfresco.smb.protocol=error
|
|
||||||
#log4j.logger.org.alfresco.smb.protocol.auth=debug
|
|
||||||
#log4j.logger.org.alfresco.acegi=debug
|
|
||||||
|
|
||||||
# FTP server debugging
|
|
||||||
log4j.logger.org.alfresco.ftp.protocol=error
|
|
||||||
#log4j.logger.org.alfresco.ftp.server=debug
|
|
||||||
|
|
||||||
# WebDAV debugging
|
|
||||||
#log4j.logger.org.alfresco.webdav.protocol=debug
|
|
||||||
log4j.logger.org.alfresco.webdav.protocol=error
|
|
||||||
|
|
||||||
# NTLM servlet filters
|
|
||||||
#log4j.logger.org.alfresco.web.app.servlet.NTLMAuthenticationFilter=debug
|
|
||||||
#log4j.logger.org.alfresco.repo.webdav.auth.NTLMAuthenticationFilter=debug
|
|
||||||
|
|
||||||
# Kerberos servlet filters
|
|
||||||
#log4j.logger.org.alfresco.web.app.servlet.KerberosAuthenticationFilter=debug
|
|
||||||
#log4j.logger.org.alfresco.repo.webdav.auth.KerberosAuthenticationFilter=debug
|
|
||||||
|
|
||||||
# File servers
|
|
||||||
log4j.logger.org.alfresco.fileserver=warn
|
|
||||||
|
|
||||||
# Repo filesystem debug logging
|
|
||||||
#log4j.logger.org.alfresco.filesys.repo.ContentDiskDriver=debug
|
|
||||||
|
|
||||||
# AVM filesystem debug logging
|
|
||||||
#log4j.logger.org.alfresco.filesys.avm.AVMDiskDriver=debug
|
|
||||||
|
|
||||||
# Integrity message threshold - if 'failOnViolation' is off, then WARNINGS are generated
|
|
||||||
log4j.logger.org.alfresco.repo.node.integrity=ERROR
|
|
||||||
|
|
||||||
# Indexer debugging
|
|
||||||
log4j.logger.org.alfresco.repo.search.Indexer=error
|
|
||||||
#log4j.logger.org.alfresco.repo.search.Indexer=debug
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.repo.search.impl.lucene.index=error
|
|
||||||
log4j.logger.org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl=warn
|
|
||||||
#log4j.logger.org.alfresco.repo.search.impl.lucene.index=DEBUG
|
|
||||||
|
|
||||||
# Audit debugging
|
|
||||||
# log4j.logger.org.alfresco.repo.audit=DEBUG
|
|
||||||
# log4j.logger.org.alfresco.repo.audit.model=DEBUG
|
|
||||||
|
|
||||||
# Forms debugging
|
|
||||||
# log4j.logger.org.alfresco.web.forms=debug
|
|
||||||
# log4j.logger.org.chiba.xml.xforms=debug
|
|
||||||
log4j.logger.org.alfresco.web.forms.xforms.XFormsBean=error
|
|
||||||
log4j.logger.org.alfresco.web.forms.XSLTRenderingEngine=error
|
|
||||||
|
|
||||||
# Property sheet and modelling debugging
|
|
||||||
# change to error to hide the warnings about missing properties and associations
|
|
||||||
log4j.logger.alfresco.missingProperties=warn
|
|
||||||
log4j.logger.org.alfresco.web.ui.repo.component.property.UIChildAssociation=warn
|
|
||||||
log4j.logger.org.alfresco.web.ui.repo.component.property.UIAssociation=warn
|
|
||||||
#log4j.logger.org.alfresco.web.ui.repo.component.property=debug
|
|
||||||
|
|
||||||
# Dictionary/Model debugging
|
|
||||||
log4j.logger.org.alfresco.repo.dictionary=warn
|
|
||||||
log4j.logger.org.alfresco.repo.dictionary.types.period=warn
|
|
||||||
|
|
||||||
# Virtualization Server Registry
|
|
||||||
log4j.logger.org.alfresco.mbeans.VirtServerRegistry=error
|
|
||||||
|
|
||||||
# Spring context runtime property setter
|
|
||||||
log4j.logger.org.alfresco.util.RuntimeSystemPropertiesSetter=info
|
|
||||||
|
|
||||||
# Debugging options for clustering
|
|
||||||
log4j.logger.org.alfresco.repo.content.ReplicatingContentStore=error
|
|
||||||
log4j.logger.org.alfresco.repo.content.replication=error
|
|
||||||
|
|
||||||
#log4j.logger.org.alfresco.repo.deploy.DeploymentServiceImpl=debug
|
|
||||||
|
|
||||||
# Activity service
|
|
||||||
log4j.logger.org.alfresco.repo.activities=warn
|
|
||||||
|
|
||||||
# User usage tracking
|
|
||||||
log4j.logger.org.alfresco.repo.usage=info
|
|
||||||
|
|
||||||
# Sharepoint
|
|
||||||
log4j.logger.org.alfresco.module.vti=info
|
|
||||||
|
|
||||||
# Forms Engine
|
|
||||||
log4j.logger.org.alfresco.repo.forms=info
|
|
||||||
log4j.logger.org.alfresco.web.config.forms=info
|
|
||||||
log4j.logger.org.alfresco.web.scripts.forms=info
|
|
||||||
|
|
||||||
# CMIS
|
|
||||||
log4j.logger.org.alfresco.opencmis=error
|
|
||||||
log4j.logger.org.alfresco.opencmis.AlfrescoCmisServiceInterceptor=error
|
|
||||||
log4j.logger.org.alfresco.cmis=error
|
|
||||||
log4j.logger.org.alfresco.cmis.dictionary=warn
|
|
||||||
log4j.logger.org.apache.chemistry.opencmis=info
|
|
||||||
|
|
||||||
# IMAP
|
|
||||||
log4j.logger.org.alfresco.repo.imap=info
|
|
||||||
|
|
||||||
# JBPM
|
|
||||||
# Note: non-fatal errors (eg. logged during job execution) should be handled by Alfresco's retrying transaction handler
|
|
||||||
log4j.logger.org.jbpm.graph.def.GraphElement=fatal
|
|
||||||
|
|
||||||
#log4j.logger.org.alfresco.repo.googledocs=debug
|
|
||||||
|
|
||||||
###### Scripting #######
|
|
||||||
|
|
||||||
# Web Framework
|
# Web Framework
|
||||||
log4j.logger.org.springframework.extensions.webscripts=info
|
log4j.logger.org.springframework.extensions.webscripts=info
|
||||||
log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=warn
|
log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=warn
|
||||||
log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=off
|
log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=off
|
||||||
|
|
||||||
# Repository
|
|
||||||
log4j.logger.org.alfresco.repo.web.scripts=warn
|
|
||||||
log4j.logger.org.alfresco.repo.web.scripts.BaseWebScriptTest=info
|
|
||||||
log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=off
|
|
||||||
log4j.logger.org.alfresco.repo.jscript=error
|
|
||||||
log4j.logger.org.alfresco.repo.jscript.ScriptLogger=warn
|
|
||||||
log4j.logger.org.alfresco.repo.cmis.rest.CMISTest=info
|
|
||||||
|
|
||||||
log4j.logger.org.alfresco.repo.avm.actions=info
|
|
||||||
|
|
||||||
# Freemarker
|
# Freemarker
|
||||||
# Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler
|
# Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler
|
||||||
log4j.logger.freemarker.runtime=
|
log4j.logger.freemarker.runtime=
|
||||||
|
|
||||||
# Metadata extraction
|
|
||||||
log4j.logger.org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter=warn
|
|
||||||
|
|
||||||
# Reduces PDFont error level due to ALF-7105
|
|
||||||
log4j.logger.org.apache.pdfbox.pdmodel.font.PDSimpleFont=fatal
|
|
||||||
log4j.logger.org.apache.pdfbox.pdmodel.font.PDFont=fatal
|
|
||||||
log4j.logger.org.apache.pdfbox.pdmodel.font.PDCIDFont=fatal
|
|
||||||
|
|
||||||
# no index support
|
|
||||||
log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexIndexer=fatal
|
|
||||||
log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexSearchService=fatal
|
|
||||||
log4j.logger.org.alfresco.demoamp.test=DEBUG
|
|
@ -1,6 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Context docBase="${alfresco.client.war.folder}" path="${alfresco.client.contextPath}">
|
<!-- Setup docBase to something like share-amp/target/share-amp-war
|
||||||
|
and path to /share -->
|
||||||
|
<Context docBase="${app.amp.client.war.folder}" path="${share.client.contextPath}">
|
||||||
|
|
||||||
<Resources className="org.apache.naming.resources.VirtualDirContext"
|
<Resources className="org.apache.naming.resources.VirtualDirContext"
|
||||||
extraResourcePaths="/=${project.build.directory}/${project.build.finalName}/web" />
|
extraResourcePaths="/=${project.build.directory}/${project.build.finalName}/web" />
|
||||||
@ -9,15 +10,6 @@
|
|||||||
<Loader searchVirtualFirst="true" className="org.apache.catalina.loader.VirtualWebappLoader"
|
<Loader searchVirtualFirst="true" className="org.apache.catalina.loader.VirtualWebappLoader"
|
||||||
virtualClasspath="${project.build.outputDirectory};${project.build.testOutputDirectory};${project.build.directory}/${project.build.finalName}/config" />
|
virtualClasspath="${project.build.outputDirectory};${project.build.testOutputDirectory};${project.build.directory}/${project.build.finalName}/config" />
|
||||||
|
|
||||||
<!--
|
|
||||||
<Environment override="false" type="java.lang.Boolean" name="properties/startup.enable" description="A flag that globally enables or disables startup of the major Alfresco subsystems." value="true"/>
|
|
||||||
<Environment override="false" type="java.lang.String" name="properties/dir.root" description="The filesystem directory below which content and index data is stored. Should be on a shared disk if this is a clustered installation."/>
|
|
||||||
<Environment override="false" type="java.lang.String" name="properties/hibernate.dialect" description="The fully qualified name of a org.hibernate.dialect.Dialect subclass that allows Hibernate to generate SQL optimized for a particular relational database. Choose from org.hibernate.dialect.DerbyDialect, org.hibernate.dialect.MySQLInnoDBDialect, org.alfresco.repo.domain.hibernate.dialect.AlfrescoOracle9Dialect, org.alfresco.repo.domain.hibernate.dialect.AlfrescoSybaseAnywhereDialect, org.alfresco.repo.domain.hibernate.dialect.AlfrescoSQLServerDialect, org.hibernate.dialect.PostgreSQLDialect"/>
|
|
||||||
<Environment override="false" type="java.lang.String" name="properties/hibernate.query.substitutions" description="Mapping from tokens in Hibernate queries to SQL tokens. For PostgreSQL, set this to "true TRUE, false FALSE"."/>
|
|
||||||
<Environment override="false" type="java.lang.Boolean" name="properties/hibernate.jdbc.use_get_generated_keys" description="Enable use of JDBC3 PreparedStatement.getGeneratedKeys() to retrieve natively generated keys after insert. Requires JDBC3+ driver. Set to false if your driver has problems with the Hibernate identifier generators. By default, tries to determine the driver capabilities using connection metadata."/>
|
|
||||||
<Environment override="false" type="java.lang.String" name="properties/hibernate.default_schema" description="Qualify unqualified table names with the given schema/tablespace in generated SQL. It may be necessary to set this when the target database has more than one schema."/>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- This enables hot reloading of web resources from uncompressed jars (while in prod they would be loaded from WEB-INF/lib/{\*.jar}/META-INF/resources -->
|
<!-- This enables hot reloading of web resources from uncompressed jars (while in prod they would be loaded from WEB-INF/lib/{\*.jar}/META-INF/resources -->
|
||||||
<JarScanner scanAllDirectories="true" />
|
<JarScanner scanAllDirectories="true" />
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@
|
|||||||
</includes>
|
</includes>
|
||||||
<targetPath>alfresco/ibatis/org.hibernate.dialect.H2Dialect</targetPath>
|
<targetPath>alfresco/ibatis/org.hibernate.dialect.H2Dialect</targetPath>
|
||||||
</resource>
|
</resource>
|
||||||
<!-- Upgrade scripts
|
<!-- Upgrade scripts - does not seem to be picked up, so any changes you would make to them are not picked up...
|
||||||
<resource>
|
<resource>
|
||||||
<directory>${pgsql.dialect.folder}/alfresco/dbscripts/upgrade/4.1/org.hibernate.dialect.PostgreSQLDialect</directory>
|
<directory>${pgsql.dialect.folder}/alfresco/dbscripts/upgrade/4.1/org.hibernate.dialect.PostgreSQLDialect</directory>
|
||||||
<includes>
|
<includes>
|
||||||
|
2
pom.xml
2
pom.xml
@ -138,6 +138,7 @@
|
|||||||
<springloaded.version>1.2.3.RELEASE</springloaded.version>
|
<springloaded.version>1.2.3.RELEASE</springloaded.version>
|
||||||
<scm.url.base>https://github.com/Alfresco/alfresco-sdk</scm.url.base>
|
<scm.url.base>https://github.com/Alfresco/alfresco-sdk</scm.url.base>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<pluginManagement>
|
<pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
@ -165,7 +166,6 @@
|
|||||||
</extensions>
|
</extensions>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>alfresco-public</id>
|
<id>alfresco-public</id>
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user