Commit b9d79694a06754a912b19dea34eb50fae9f20e0f
1 parent
559b4f3047
Exists in
master
mavenization, packaged as an amp
Showing
23 changed files
with
2044 additions
and
13 deletions
Show diff stats
.gitignore
alfresco-trashcan-cleaner-amp/jetty/jetty.xml
... | ... | @@ -0,0 +1,21 @@ |
1 | +<?xml version="1.0"?> | |
2 | +<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> | |
3 | + | |
4 | +<Configure id="Server" class="org.mortbay.jetty.Server"> | |
5 | + <New id="myDataSource" | |
6 | + class="org.mortbay.jetty.plus.naming.Resource"> | |
7 | + <Arg>jdbc/dataSource</Arg> | |
8 | + <Arg> | |
9 | + <!--<New class="${alfresco.db.datasource.class}"> | |
10 | + <Set name="URL">${alfresco.db.url}</Set> | |
11 | + <Set name="User">${alfresco.db.username}</Set> | |
12 | + <Set name="Password">${alfresco.db.password}</Set> | |
13 | + </New>--> | |
14 | + <New class="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource"> | |
15 | + <Set name="URL">${alfresco.db.url}</Set> | |
16 | + <Set name="User">${alfresco.db.username}</Set> | |
17 | + <Set name="Password">${alfresco.db.password}</Set> | |
18 | + </New> | |
19 | + </Arg> | |
20 | + </New> | |
21 | +</Configure> | |
0 | 22 | \ No newline at end of file | ... | ... |
alfresco-trashcan-cleaner-amp/pom.xml
... | ... | @@ -0,0 +1,48 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<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"> | |
3 | + <modelVersion>4.0.0</modelVersion> | |
4 | + <artifactId>alfresco-trashcan-cleaner-amp</artifactId> | |
5 | + <name>Alfresco Trashcan Cleaner AMP Module</name> | |
6 | + <packaging>amp</packaging> | |
7 | + <description>This is the AMP project, depended upon by the alfresco WAR module</description> | |
8 | + | |
9 | + <parent> | |
10 | + <groupId>org.alfresco</groupId> | |
11 | + <artifactId>alfresco-trashcan-cleaner</artifactId> | |
12 | + <version>1.2-SNAPSHOT</version> | |
13 | + </parent> | |
14 | + | |
15 | + <!-- | |
16 | + Following dependencies are needed for compiling | |
17 | + Java code in src/main/java; <scope>provided</scope> | |
18 | + is inherited for each of the following; for more | |
19 | + info, please refer to alfresco-integration-parent | |
20 | + POM definition | |
21 | + @TODO - document | |
22 | + --> | |
23 | + <dependencies> | |
24 | + <dependency> | |
25 | + <groupId>${alfresco.groupId}</groupId> | |
26 | + <artifactId>alfresco-repository</artifactId> | |
27 | + </dependency> | |
28 | + <dependency> | |
29 | + <groupId>junit</groupId> | |
30 | + <artifactId>junit</artifactId> | |
31 | + <version>4.8.1</version> | |
32 | + <scope>test</scope> | |
33 | + </dependency> | |
34 | + <dependency> | |
35 | + <groupId>mysql</groupId> | |
36 | + <artifactId>mysql-connector-java</artifactId> | |
37 | + <version>5.1.18</version> | |
38 | + </dependency> | |
39 | + </dependencies> | |
40 | + | |
41 | + <properties> | |
42 | + <!-- This property allow to switch Repo AMP vs Share AMP. | |
43 | + Set alfresco.client.war=share to run this AMP against Share | |
44 | + --> | |
45 | + <alfresco.client.war>alfresco</alfresco.client.war> | |
46 | + </properties> | |
47 | + | |
48 | +</project> | ... | ... |
alfresco-trashcan-cleaner-amp/src/main/amp/config/alfresco/module/alfresco-trashcan-cleaner-amp/context/service-context.xml
1 | 1 | index cc8bfd3f7fddd61019073b49c604ab57fc5a4105..f53e92ce58076d21acacb74dc9bda54e6c1e2c10 100644 |
2 | --- a/src/alfresco/extension/trashcan-cleaner-context.xml | |
2 | +++ b/alfresco-trashcan-cleaner-amp/src/main/amp/config/alfresco/module/alfresco-trashcan-cleaner-amp/context/service-context.xml | |
1 | -<?xml version='1.0' encoding='UTF-8'?> | |
2 | -<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> | |
3 | - | |
4 | -<beans> | |
5 | - | |
1 | +<?xml version='1.0' encoding='UTF-8'?> | |
2 | +<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> | |
3 | +<!-- | |
4 | + Licensed to the Apache Software Foundation (ASF) under one or more | |
5 | + contributor license agreements. See the NOTICE file distributed with | |
6 | + this work for additional information regarding copyright ownership. | |
7 | + The ASF licenses this file to You under the Apache License, Version 2.0 | |
8 | + (the "License"); you may not use this file except in compliance with | |
9 | + the License. You may obtain a copy of the License at | |
10 | + | |
11 | + http://www.apache.org/licenses/LICENSE-2.0 | |
12 | + | |
13 | + Unless required by applicable law or agreed to in writing, software | |
14 | + distributed under the License is distributed on an "AS IS" BASIS, | |
15 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
16 | + See the License for the specific language governing permissions and | |
17 | + limitations under the License. | |
18 | + | |
19 | +--> | |
20 | +<beans> | |
21 | + | |
22 | + <!-- A simple class that is initialized by Spring --> | |
6 | 23 | <bean id="trashcanCleaner" class="org.alfresco.util.CronTriggerBean"> |
7 | 24 | <property name="jobDetail"> |
8 | 25 | <bean id="tempFileCleanerJobDetail" class="org.springframework.scheduling.quartz.JobDetailBean"> |
... | ... | @@ -27,5 +44,6 @@ |
27 | 44 | <property name="cronExpression"> |
28 | 45 | <value>${trashcan.cron}</value> |
29 | 46 | </property> |
30 | - </bean> | |
31 | -</beans> | |
47 | + </bean> | |
48 | + | |
49 | +</beans> | ... | ... |
alfresco-trashcan-cleaner-amp/src/main/amp/config/alfresco/module/alfresco-trashcan-cleaner-amp/module-context.xml
... | ... | @@ -0,0 +1,25 @@ |
1 | +<?xml version='1.0' encoding='UTF-8'?> | |
2 | +<!-- | |
3 | + Licensed to the Apache Software Foundation (ASF) under one or more | |
4 | + contributor license agreements. See the NOTICE file distributed with | |
5 | + this work for additional information regarding copyright ownership. | |
6 | + The ASF licenses this file to You under the Apache License, Version 2.0 | |
7 | + (the "License"); you may not use this file except in compliance with | |
8 | + the License. You may obtain a copy of the License at | |
9 | + | |
10 | + http://www.apache.org/licenses/LICENSE-2.0 | |
11 | + | |
12 | + Unless required by applicable law or agreed to in writing, software | |
13 | + distributed under the License is distributed on an "AS IS" BASIS, | |
14 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
15 | + See the License for the specific language governing permissions and | |
16 | + limitations under the License. | |
17 | + | |
18 | +--> | |
19 | +<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> | |
20 | + | |
21 | +<beans> | |
22 | + | |
23 | + <import resource="classpath:alfresco/module/${artifactId}/context/service-context.xml" /> | |
24 | + | |
25 | +</beans> | ... | ... |
alfresco-trashcan-cleaner-amp/src/main/amp/module.properties
... | ... | @@ -0,0 +1,47 @@ |
1 | +# Licensed to the Apache Software Foundation (ASF) under one or more | |
2 | +# contributor license agreements. See the NOTICE file distributed with | |
3 | +# this work for additional information regarding copyright ownership. | |
4 | +# The ASF licenses this file to You under the Apache License, Version 2.0 | |
5 | +# (the "License"); you may not use this file except in compliance with | |
6 | +# the License. You may obtain a copy of the License at | |
7 | +# | |
8 | +# http://www.apache.org/licenses/LICENSE-2.0 | |
9 | +# | |
10 | +# Unless required by applicable law or agreed to in writing, software | |
11 | +# distributed under the License is distributed on an "AS IS" BASIS, | |
12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | +# See the License for the specific language governing permissions and | |
14 | +# limitations under the License. | |
15 | + | |
16 | + | |
17 | + | |
18 | +# SDK Sample module | |
19 | + | |
20 | +# ==== Beginning of Alfresco required/optional properties ====== # | |
21 | + | |
22 | +module.id=${project.artifactId} | |
23 | +#module.aliases=myModule-123, my-module | |
24 | +module.title=${project.name} | |
25 | +module.description=${project.description} | |
26 | +module.version=${noSnapshotVersion} | |
27 | + | |
28 | +# The following optional properties can be used to prevent the module from being added | |
29 | +# to inappropriate versions of the WAR file. | |
30 | +# module.repo.version.min=2.0 | |
31 | +# module.repo.version.max=2.1 | |
32 | + | |
33 | +# FIXME: This dependencies should come out of mvn dependencies on amp | |
34 | + | |
35 | +# The following describe dependencies on other modules | |
36 | +# Depends on net.sf.myproject.module.SupportModuleA version ${version} or later | |
37 | +# module.depends.net.sf.myproject.module.SupportModuleA=${version}-* | |
38 | +# Depends on net.sf.myproject.module.SupportModuleA version ${version} to 2.0 | |
39 | +# module.depends.net.sf.myproject.module.SupportModuleB=${version}-2.0 | |
40 | +# Depends on net.sf.myproject.module.SupportModuleC - any version | |
41 | +# module.depends.net.sf.myproject.module.SupportModuleB=* | |
42 | + | |
43 | + | |
44 | +# ==== End of Alfresco required/optional properties ======= # | |
45 | + | |
46 | + | |
47 | +# ==== Beginning of module required properties/optional ====== # | |
0 | 48 | \ No newline at end of file | ... | ... |
alfresco-trashcan-cleaner-amp/src/main/java/org/alfresco/schedule/AbstractScheduledLockedJob.java
alfresco-trashcan-cleaner-amp/src/main/java/org/alfresco/schedule/ScheduledJobLockExecuter.java
alfresco-trashcan-cleaner-amp/src/main/java/org/alfresco/trashcan/TrashcanCleaner.java
alfresco-trashcan-cleaner-amp/src/main/java/org/alfresco/trashcan/TrashcanCleanerJob.java
alfresco-trashcan-cleaner-amp/src/test/java/org/alfresco/trashcan/TrashcanCleanerTest.java
1 | 1 | index 05dea7d0ee336d48b551c69ab72075a3268fedcb..b00b4e3ee95d2c0dd2d3ef4d1b3bd1d265038ec7 100644 |
2 | --- a/test/org/alfresco/trashcan/TrashcanCleanerTest.java | |
2 | +++ b/alfresco-trashcan-cleaner-amp/src/test/java/org/alfresco/trashcan/TrashcanCleanerTest.java | |
... | ... | @@ -20,8 +20,6 @@ import org.alfresco.service.namespace.NamespaceService; |
20 | 20 | import org.alfresco.service.namespace.QName; |
21 | 21 | import org.alfresco.service.transaction.TransactionService; |
22 | 22 | import org.alfresco.util.ApplicationContextHelper; |
23 | -import org.apache.commons.logging.Log; | |
24 | -import org.apache.commons.logging.LogFactory; | |
25 | 23 | import org.springframework.context.ApplicationContext; |
26 | 24 | |
27 | 25 | /** |
... | ... | @@ -33,7 +31,7 @@ public class TrashcanCleanerTest extends TestCase { |
33 | 31 | |
34 | 32 | private static final int BATCH_SIZE = 1000; |
35 | 33 | |
36 | - private static Log logger = LogFactory.getLog(TrashcanCleanerTest.class); | |
34 | + //private static Log logger = LogFactory.getLog(TrashcanCleanerTest.class); | |
37 | 35 | |
38 | 36 | private static ApplicationContext applicationContext = ApplicationContextHelper |
39 | 37 | .getApplicationContext(); |
... | ... | @@ -78,14 +76,14 @@ public class TrashcanCleanerTest extends TestCase { |
78 | 76 | TrashcanCleaner cleaner = new TrashcanCleaner(nodeService,BATCH_SIZE,-1); |
79 | 77 | createAndDeleteNodes(nodesCreate); |
80 | 78 | long nodesToDelete = getNumberOfNodesInTrashcan(); |
81 | - logger.info(String.format("Existing nodes to delete: %s", | |
79 | + System.out.println(String.format("Existing nodes to delete: %s", | |
82 | 80 | nodesToDelete)); |
83 | 81 | cleaner.clean(); |
84 | 82 | nodesToDelete = getNumberOfNodesInTrashcan(); |
85 | - logger.info(String.format("Existing nodes to delete after: %s", | |
83 | + System.out.println(String.format("Existing nodes to delete after: %s", | |
86 | 84 | nodesToDelete)); |
87 | 85 | assertEquals(nodesToDelete, nodesRemain); |
88 | - logger.info("Clean trashcan..."); | |
86 | + System.out.println("Clean trashcan..."); | |
89 | 87 | cleaner.clean(); |
90 | 88 | userTransaction1.commit(); |
91 | 89 | } catch (Throwable e) { | ... | ... |
alfresco-trashcan-cleaner-amp/src/test/properties/local/alfresco-global.properties
... | ... | @@ -0,0 +1,65 @@ |
1 | +# Licensed to the Apache Software Foundation (ASF) under one or more | |
2 | +# contributor license agreements. See the NOTICE file distributed with | |
3 | +# this work for additional information regarding copyright ownership. | |
4 | +# The ASF licenses this file to You under the Apache License, Version 2.0 | |
5 | +# (the "License"); you may not use this file except in compliance with | |
6 | +# the License. You may obtain a copy of the License at | |
7 | +# | |
8 | +# http://www.apache.org/licenses/LICENSE-2.0 | |
9 | +# | |
10 | +# Unless required by applicable law or agreed to in writing, software | |
11 | +# distributed under the License is distributed on an "AS IS" BASIS, | |
12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | +# See the License for the specific language governing permissions and | |
14 | +# limitations under the License. | |
15 | + | |
16 | + | |
17 | + | |
18 | +# RUN TIME PROPERTIES | |
19 | +# ------------------- | |
20 | + | |
21 | +# Sample custom content and index data location | |
22 | +# This will create alf_data Relative to appserver run folder | |
23 | +# In this default file we take the property from the POM (for compatbility with local jetty and jboss deployments) but it can also be edited here. | |
24 | +dir.root=${alfresco.data.location} | |
25 | +# Allowed values are: NONE, AUTO, FULL | |
26 | +index.recovery.mode=NONE | |
27 | +# This is default. Allowed values are: solr, lucene, noindex | |
28 | +index.subsystem.name=lucene | |
29 | + | |
30 | +#dir.keystore=. | |
31 | +#keystore.password=storepassword | |
32 | +#metadata.password=metapassword | |
33 | + | |
34 | +# Fail or not when there are node integrity checker errors | |
35 | +integrity.failOnError=true | |
36 | + | |
37 | +# Database connection properties | |
38 | +#db.driver=org.h2.Driver | |
39 | +#db.url=jdbc:h2:${alfresco.data.location}/h2_data/${alfresco.db.name} | |
40 | +db.driver=${alfresco.db.driver} | |
41 | +db.url=${alfresco.db.url} | |
42 | +# the dialect setting is not required for Alfresco 3.4+ | |
43 | +#hibernate.dialect=org.hibernate.dialect.H2Dialect | |
44 | +db.username=${alfresco.db.username} | |
45 | +db.password=${alfresco.db.password} | |
46 | +db.pool.initial=10 | |
47 | +db.pool.max=100 | |
48 | + | |
49 | +# File servers related properties | |
50 | +# For local builds we disable CIFS and FTP. Edit the following property to reenable them | |
51 | +smb.server.enabled=false | |
52 | +smb.server.name=CFS_SHARE_LOCAL | |
53 | +smb.server.domain=mycompany.com | |
54 | +smb.server.bindto=127.0.0.1 | |
55 | +smb.tcpip.port=1445 | |
56 | +netbios.session.port=1139 | |
57 | +netbios.name.port=1137 | |
58 | +netbios.datagram.port=1138 | |
59 | +ftp.server.enables=false | |
60 | +ftp.port=1121 | |
61 | +ftp.authenticator=alfresco | |
62 | + | |
63 | +trashcan.cron=0 30 * * * ? | |
64 | +trashcan.daysToKeep=1 | |
65 | +trashcan.deleteBatchCount=1000 | |
0 | 66 | \ No newline at end of file | ... | ... |
alfresco-trashcan-cleaner-amp/src/test/resources/test-log4j.properties
... | ... | @@ -0,0 +1,23 @@ |
1 | +# Overrides only log4j locations and add the test logging properties | |
2 | +# This gets merged with the main file | |
3 | + | |
4 | +# Set root logger level to error | |
5 | +log4j.rootLogger=${app.log.root.level}, Console, File | |
6 | + | |
7 | +###### Console appender definition ####### | |
8 | + | |
9 | +# All outputs currently set to be a ConsoleAppender. | |
10 | +log4j.appender.Console=org.apache.log4j.ConsoleAppender | |
11 | +log4j.appender.Console.layout=org.apache.log4j.PatternLayout | |
12 | + | |
13 | +# use log4j NDC to replace %x with tenant domain / username | |
14 | +log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n | |
15 | +#log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n | |
16 | + | |
17 | +###### File appender definition ####### | |
18 | +log4j.appender.File=org.apache.log4j.DailyRollingFileAppender | |
19 | +log4j.appender.File.File=${app.log.dir}alfresco.log | |
20 | +log4j.appender.File.Append=true | |
21 | +log4j.appender.File.DatePattern='.'yyyy-MM-dd | |
22 | +log4j.appender.File.layout=org.apache.log4j.PatternLayout | |
23 | +log4j.appender.File.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n | ... | ... |
alfresco/pom.xml
... | ... | @@ -0,0 +1,75 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor | |
3 | + license agreements. See the NOTICE file distributed with this work for additional | |
4 | + information regarding copyright ownership. The ASF licenses this file to | |
5 | + You under the Apache License, Version 2.0 (the "License"); you may not use | |
6 | + this file except in compliance with the License. You may obtain a copy of | |
7 | + the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required | |
8 | + by applicable law or agreed to in writing, software distributed under the | |
9 | + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS | |
10 | + OF ANY KIND, either express or implied. See the License for the specific | |
11 | + language governing permissions and limitations under the License. --> | |
12 | + | |
13 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
14 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
15 | + <modelVersion>4.0.0</modelVersion> | |
16 | + <artifactId>alfresco</artifactId> | |
17 | + <name>Alfresco Repository and Explorer Client</name> | |
18 | + <packaging>war</packaging> | |
19 | + <description>Alfresco Repository and Explorer Client</description> | |
20 | + | |
21 | + <parent> | |
22 | + <groupId>org.alfresco</groupId> | |
23 | + <artifactId>alfresco-trashcan-cleaner</artifactId> | |
24 | + <version>1.2-SNAPSHOT</version> | |
25 | + </parent> | |
26 | + | |
27 | + <dependencies> | |
28 | + <dependency> | |
29 | + <groupId>${alfresco.groupId}</groupId> | |
30 | + <artifactId>alfresco</artifactId> | |
31 | + <type>war</type> | |
32 | + </dependency> | |
33 | + <!-- Demonstrating the dependency on the AMP developed in the 'amp' project --> | |
34 | + <dependency> | |
35 | + <groupId>${project.groupId}</groupId> | |
36 | + <artifactId>alfresco-trashcan-cleaner-amp</artifactId> | |
37 | + <version>${project.version}</version> | |
38 | + <type>amp</type> | |
39 | + </dependency> | |
40 | + </dependencies> | |
41 | + | |
42 | + <build> | |
43 | + <plugins> | |
44 | + <plugin> | |
45 | + <artifactId>maven-war-plugin</artifactId> | |
46 | + <configuration> | |
47 | + <!-- Here is can control the order of overlay of your (WAR, AMP, etc.) dependencies | |
48 | + | NOTE: At least one WAR dependency must be uncompressed first | |
49 | + | NOTE: In order to have a dependency effectively added to the WAR you need to | |
50 | + | explicitly mention it in the overlay section. | |
51 | + | NOTE: First-win resource strategy is used by the WAR plugin | |
52 | + --> | |
53 | + <overlays> | |
54 | + <!-- Current project customizations --> | |
55 | + <overlay/> | |
56 | + <!-- The Alfresco WAR --> | |
57 | + <overlay> | |
58 | + <groupId>${alfresco.groupId}</groupId> | |
59 | + <artifactId>alfresco</artifactId> | |
60 | + <type>war</type> | |
61 | + <!-- To allow inclusion of META-INF --> | |
62 | + <excludes/> | |
63 | + </overlay> | |
64 | + <!-- Add / order your AMPs here --> | |
65 | + <overlay> | |
66 | + <groupId>${project.groupId}</groupId> | |
67 | + <artifactId>alfresco-trashcan-cleaner-amp</artifactId> | |
68 | + <type>amp</type> | |
69 | + </overlay> | |
70 | + </overlays> | |
71 | + </configuration> | |
72 | + </plugin> | |
73 | + </plugins> | |
74 | + </build> | |
75 | +</project> | ... | ... |
alfresco/src/main/properties/local/alfresco-global.properties
... | ... | @@ -0,0 +1,312 @@ |
1 | +# Licensed to the Apache Software Foundation (ASF) under one or more | |
2 | +# contributor license agreements. See the NOTICE file distributed with | |
3 | +# this work for additional information regarding copyright ownership. | |
4 | +# The ASF licenses this file to You under the Apache License, Version 2.0 | |
5 | +# (the "License"); you may not use this file except in compliance with | |
6 | +# the License. You may obtain a copy of the License at | |
7 | +# | |
8 | +# http://www.apache.org/licenses/LICENSE-2.0 | |
9 | +# | |
10 | +# Unless required by applicable law or agreed to in writing, software | |
11 | +# distributed under the License is distributed on an "AS IS" BASIS, | |
12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | +# See the License for the specific language governing permissions and | |
14 | +# limitations under the License. | |
15 | +# RUN TIME PROPERTIES | |
16 | +# ------------------- | |
17 | + | |
18 | +# Sample custom content and index data location | |
19 | +# This will create alf_data Relative to appserver run folder | |
20 | +# In this default file we take the property from the POM (for compatbility with local jetty and jboss deployments) but it can also be edited here. | |
21 | + | |
22 | +############################### | |
23 | +## Common Alfresco Properties # | |
24 | +############################### | |
25 | + | |
26 | + | |
27 | +dir.root=${alfresco.data.location} | |
28 | +# Allowed values are: NONE, AUTO, FULL | |
29 | +index.recovery.mode=FULL | |
30 | + | |
31 | +index.subsystem.name=lucene | |
32 | +solr.host=localhost | |
33 | +solr.port=8080 | |
34 | +solr.secureComms=none | |
35 | +# Setting Solr backup for the future. Tweak this if needed (ideally in other env properties files) | |
36 | +solr.backup.alfresco.cronExpression=0 30 2 * * ? 2050 | |
37 | +solr.backup.archive.cronExpression=0 30 3 * * ? 2050 | |
38 | +solr.backup.alfresco.remoteBackupLocation=${dir.root}/solrBackup/alfresco | |
39 | +solr.backup.archive.remoteBackupLocation=${dir.root}/solrBackup/archive | |
40 | +# We are in the local DEV properties file, no need for Solr backup | |
41 | +solr.backup.alfresco.numberToKeep=0 | |
42 | +solr.backup.archive.numberToKeep=0 | |
43 | + | |
44 | +# These jobs seem to require Lucene (Unsupported Operation with Solr) so we disasble them / set to future date | |
45 | +# See https://forums.alfresco.com/en/viewtopic.php?f=52&t=41597 | |
46 | +# If you want to enable them (and so full WQS functionality), please also set index.subsystem.name=lucene | |
47 | +wcmqs.dynamicCollectionProcessor.schedule=0 30 2 * * ? 2060 | |
48 | +wcmqs.feedbackProcessor.schedule=0 40 2 * * ? 2060 | |
49 | +wcmqs.publishQueueProcessor.schedule=0 50 2 * * ? 2060 | |
50 | + | |
51 | +# Fail or not when there are node integrity checker errors | |
52 | +integrity.failOnError=true | |
53 | + | |
54 | +# database connection properties | |
55 | +# MySQL connection (This is default and requires mysql-connector-java-5.0.3-bin.jar, which ships with the Alfresco server) | |
56 | +#db.driver=org.h2.Driver | |
57 | +#db.url=jdbc:h2:${alfresco.data.location}/h2_data/${alfresco.db.name} | |
58 | +db.driver=${alfresco.db.driver} | |
59 | +db.url=${alfresco.db.url} | |
60 | +# the dialect setting is not required for Alfresco 3.4+ | |
61 | +#hibernate.dialect=org.hibernate.dialect.H2Dialect | |
62 | +db.username=${alfresco.db.username} | |
63 | +db.password=${alfresco.db.password} | |
64 | +db.pool.initial=10 | |
65 | +db.pool.max=100 | |
66 | + | |
67 | + | |
68 | +# | |
69 | +# Sample custom content and index data location | |
70 | +# | |
71 | +#dir.root=/srv/alfresco/alf_data | |
72 | +#dir.keystore=${dir.root}/keystore | |
73 | + | |
74 | +# | |
75 | +# Sample database connection properties | |
76 | +# | |
77 | +#db.username=alfresco | |
78 | +#db.password=alfresco | |
79 | + | |
80 | +# | |
81 | +# External locations | |
82 | +#------------- | |
83 | +#ooo.exe=soffice | |
84 | +#ooo.enabled=false | |
85 | +#jodconverter.officeHome=./OpenOffice.org | |
86 | +#jodconverter.portNumbers=8101 | |
87 | +#jodconverter.enabled=true | |
88 | +#img.root=./ImageMagick | |
89 | +#swf.exe=./bin/pdf2swf | |
90 | + | |
91 | +# | |
92 | +# Property to control whether schema updates are performed automatically. | |
93 | +# Updates must be enabled during upgrades as, apart from the static upgrade scripts, | |
94 | +# there are also auto-generated update scripts that will need to be executed. After | |
95 | +# upgrading to a new version, this can be disabled. | |
96 | +# | |
97 | +#db.schema.update=true | |
98 | + | |
99 | +# | |
100 | +# MySQL connection | |
101 | +# | |
102 | +#db.driver=org.gjt.mm.mysql.Driver | |
103 | +#db.url=jdbc:mysql://localhost/alfresco?useUnicode=yes&characterEncoding=UTF-8 | |
104 | + | |
105 | +# | |
106 | +# Oracle connection | |
107 | +# | |
108 | +#db.driver=oracle.jdbc.OracleDriver | |
109 | +#db.url=jdbc:oracle:thin:@localhost:1521:alfresco | |
110 | + | |
111 | +# | |
112 | +# SQLServer connection | |
113 | +# Requires jTDS driver version 1.2.5 and SNAPSHOT isolation mode | |
114 | +# Enable TCP protocol on fixed port 1433 | |
115 | +# Prepare the database with: | |
116 | +# ALTER DATABASE alfresco SET ALLOW_SNAPSHOT_ISOLATION ON; | |
117 | +# | |
118 | +#db.driver=net.sourceforge.jtds.jdbc.Driver | |
119 | +#db.url=jdbc:jtds:sqlserver://localhost:1433/alfresco | |
120 | +#db.txn.isolation=4096 | |
121 | + | |
122 | +# | |
123 | +# PostgreSQL connection (requires postgresql-8.2-504.jdbc3.jar or equivalent) | |
124 | +# | |
125 | +#db.driver=org.postgresql.Driver | |
126 | +#db.url=jdbc:postgresql://localhost:5432/alfresco | |
127 | + | |
128 | +# | |
129 | +# DB2 connection | |
130 | +# | |
131 | +#db.driver=com.ibm.db2.jcc.DB2Driver | |
132 | +#db.url=jdbc:db2://localhost:50000/alfresco:retrieveMessagesFromServerOnGetMessage=true; | |
133 | + | |
134 | +# | |
135 | +# Index Recovery Mode | |
136 | +#------------- | |
137 | +#index.recovery.mode=AUTO | |
138 | + | |
139 | +# | |
140 | +# Outbound Email Configuration | |
141 | +#------------- | |
142 | +#mail.host= | |
143 | +#mail.port=25 | |
144 | +#mail.username=anonymous | |
145 | +#mail.password= | |
146 | +#mail.encoding=UTF-8 | |
147 | +#mail.from.default=alfresco@alfresco.org | |
148 | +#mail.smtp.auth=false | |
149 | + | |
150 | +# | |
151 | +# Alfresco Email Service and Email Server | |
152 | +#------------- | |
153 | + | |
154 | +# Enable/Disable the inbound email service. The service could be used by processes other than | |
155 | +# the Email Server (e.g. direct RMI access) so this flag is independent of the Email Service. | |
156 | +#------------- | |
157 | +#email.inbound.enabled=true | |
158 | + | |
159 | +# Email Server properties | |
160 | +#------------- | |
161 | +#email.server.enabled=true | |
162 | +#email.server.port=25 | |
163 | +#email.server.domain=alfresco.com | |
164 | +#email.inbound.unknownUser=anonymous | |
165 | + | |
166 | +# A comma separated list of email REGEX patterns of allowed senders. | |
167 | +# If there are any values in the list then all sender email addresses | |
168 | +# must match. For example: | |
169 | +# .*\@alfresco\.com, .*\@alfresco\.org | |
170 | +# Allow anyone: | |
171 | +#------------- | |
172 | +#email.server.allowed.senders=.* | |
173 | + | |
174 | +# | |
175 | +# The default authentication chain | |
176 | +# To configure external authentication subsystems see: | |
177 | +# http://wiki.alfresco.com/wiki/Alfresco_Authentication_Subsystems | |
178 | +#------------- | |
179 | +#authentication.chain=alfrescoNtlm1:alfrescoNtlm | |
180 | + | |
181 | +# | |
182 | +# URL Generation Parameters (The ${localname} token is replaced by the local server name) | |
183 | +#------------- | |
184 | +#alfresco.context=alfresco | |
185 | +#alfresco.host=${localname} | |
186 | +#alfresco.port=8080 | |
187 | +#alfresco.protocol=http | |
188 | +# | |
189 | +#share.context=share | |
190 | +#share.host=${localname} | |
191 | +#share.port=8080 | |
192 | +#share.protocol=http | |
193 | + | |
194 | +#imap.server.enabled=true | |
195 | +#imap.server.port=143 | |
196 | +#imap.server.host=localhost | |
197 | + | |
198 | +# Default value of alfresco.rmi.services.host is 0.0.0.0 which means 'listen on all adapters'. | |
199 | +# This allows connections to JMX both remotely and locally. | |
200 | +# | |
201 | +alfresco.rmi.services.host=0.0.0.0 | |
202 | + | |
203 | +# | |
204 | +# RMI service ports for the individual services. | |
205 | +# These seven services are available remotely. | |
206 | +# | |
207 | +# Assign individual ports for each service for best performance | |
208 | +# or run several services on the same port. You can even run everything on 50500 if needed. | |
209 | +# | |
210 | +# Select 0 to use a random unused port. | |
211 | +# | |
212 | +#avm.rmi.service.port=50501 | |
213 | +#avmsync.rmi.service.port=50502 | |
214 | +#attribute.rmi.service.port=50503 | |
215 | +#authentication.rmi.service.port=50504 | |
216 | +#repo.rmi.service.port=50505 | |
217 | +#action.rmi.service.port=50506 | |
218 | +#wcm-deployment-receiver.rmi.service.port=50507 | |
219 | +#monitor.rmi.service.port=50508 | |
220 | + | |
221 | + | |
222 | +# Dialect is autodetected starting from 3.2 | |
223 | +# H2 dialect | |
224 | +#hibernate.dialect=org.hibernate.dialect.H2Dialect | |
225 | + | |
226 | + | |
227 | +# Property to control whether schema updates are performed automatically. | |
228 | +# Updates must be enabled during upgrades as, apart from the static upgrade scripts, | |
229 | +# there are also auto-generated update scripts that will need to be executed. After | |
230 | +# upgrading to a new version, this can be disabled. | |
231 | +#db.schema.update=true | |
232 | + | |
233 | + | |
234 | +# File servers related properties | |
235 | +# For local builds we disable CIFS and FTP. Edit the following property to reenable them | |
236 | +smb.server.enabled=false | |
237 | +smb.server.name=CFS_SHARE_LOCAL | |
238 | +smb.server.domain=mycompany.com | |
239 | +smb.server.bindto=127.0.0.1 | |
240 | +smb.tcpip.port=1445 | |
241 | +netbios.session.port=1139 | |
242 | +netbios.name.port=1137 | |
243 | +netbios.datagram.port=1138 | |
244 | +ftp.server.enabled=false | |
245 | +ftp.port=1121 | |
246 | +ftp.authenticator=alfresco | |
247 | + | |
248 | +# This properties file is used to configure LDAP authentication | |
249 | +# NB: The following LDAP related properties are read only in case -Denteprise mvn build property is specified | |
250 | +# Wheter to allow silent deletion of users in the Alfresco UI (note: users will be then resynced in the next synchronization) | |
251 | +ldap.authentication.allowDeleteUser=true | |
252 | +# LDAP JNDI provider | |
253 | +ldap.authentication.provider=com.sun.jndi.ldap.LdapCtxFactory | |
254 | +#ย Url and protocol for LDAP server to carry authentication against | |
255 | +ldap.authentication.url=ldap://ldap.mycompany.com:636 | |
256 | +#ย can be (simple, ssl) | |
257 | +ldap.authentication.protcol=ssl | |
258 | +# Credentials with full access to the directoty used | |
259 | +ldap.authentication.adminUser=ou=Admin,ou=Services,o=Company | |
260 | +ldap.authentication.adminPassword=secret | |
261 | +#ย Wheter to allow unauthenticated guest a read only login | |
262 | +ldap.authentication.guestLogin.allowed=false | |
263 | +# Wheter users can be created on the fly upon successful external (e.g. LDAP) authentication. Useful to avoid user synchronization in case just uid and pwd are needed for a user | |
264 | +server.transaction.allow-writes=true | |
265 | +# Wheter user names are case sensitive | |
266 | +user.name.caseSensitive=true | |
267 | +# Wheter the synchronization process has to process duplicated users (e.g. synced users and users coming from the sync) | |
268 | +personService.processDuplicates=true | |
269 | +# Which action to take when processin duplicates. One of: LEAVE, SPLIT, DELETE | |
270 | +personService.duplicateMode=DELETE | |
271 | +#ย Which of the users (in case of SPLIT duplicates policy) should be considered valid | |
272 | +personService.lastIsBest=true | |
273 | +# Wheter auto created users should be considered when processing duplicates | |
274 | +personService.includeAutoCreated=true | |
275 | +# The query to find the people to import | |
276 | +ldap.synchronisation.personQuery=(objectclass=inetOrgPerson) | |
277 | +# The search base of the query to find people to import | |
278 | +ldap.synchronisation.personSearchBase=ou=Identities,ou=mycompany,o=com | |
279 | +# The attribute name on people objects found in LDAP to use as the uid in Alfresco | |
280 | +ldap.synchronisation.userIdAttributeName=cn | |
281 | +# The attribute on person objects in LDAP to map to the first name property in Alfresco | |
282 | +ldap.synchronisation.userFirstNameAttributeName=givenName | |
283 | +# The attribute on person objects in LDAP to map to the last name property in Alfresco | |
284 | +ldap.synchronisation.userLastNameAttributeName=sn | |
285 | +# The attribute on person objects in LDAP to map to the email property in Alfresco | |
286 | +ldap.synchronisation.userEmailAttributeName=cn | |
287 | +# The attribute on person objects in LDAP to map to the organizational id property in Alfresco | |
288 | +ldap.synchronisation.userOrganizationalIdAttributeName=maildomain | |
289 | +# The default home folder provider to use for people created via LDAP import | |
290 | +ldap.synchronisation.defaultHomeFolderProvider=companyHomeFolderProvider | |
291 | +# The query to find group objects | |
292 | +ldap.synchronisation.groupQuery=(objectclass=AlfrescoGroup) | |
293 | +# The search base to use to find group objects | |
294 | +ldap.synchronisation.groupSearchBase=ou=AlfrescoGroups,ou=mycompany,o=com | |
295 | +# The attribute on LDAP group objects to map to the gid property in Alfrecso | |
296 | +ldap.synchronisation.groupIdAttributeName=cn | |
297 | +# The group type in LDAP | |
298 | +ldap.synchronisation.groupType=AlfrescoGroup | |
299 | +# The person type in LDAP | |
300 | +ldap.synchronisation.personType=inetOrgPerson | |
301 | +# The attribute in LDAP on group objects that defines the DN for its members | |
302 | +ldap.synchronisation.groupMemberAttributeName=member | |
303 | +# The cron expression defining when people imports should take place (e.g. every evening at 22:00 hours) | |
304 | +ldap.synchronisation.import.person.cron=0 0 22 * * ? | |
305 | +# The cron expression defining when group imports should take place (e.g. every evening at 21:45 hours) | |
306 | +ldap.synchronisation.import.group.cron=0 45 21 * * ? | |
307 | +# Should all groups be cleared out at import time? | |
308 | +# - this is safe as groups are not used in Alfresco for other things (unlike person objects which you should never clear out during an import) | |
309 | +# - setting this to true means old group definitions will be tidied up. | |
310 | +ldap.synchronisation.import.group.clearAllChildren=false | |
311 | + | |
312 | + | ... | ... |
alfresco/src/main/resources/alfresco/extension/dev-log4j.properties
alfresco/src/main/resources/log4j.properties
... | ... | @@ -0,0 +1,266 @@ |
1 | +# This is a full override of Alfresco 4.2.b log4j.properties | |
2 | +# This file overwrites the alfresco.war log4j.properties | |
3 | + | |
4 | +# Set root logger level to error | |
5 | +log4j.rootLogger=${app.log.root.level}, Console, File | |
6 | + | |
7 | +###### Console appender definition ####### | |
8 | + | |
9 | +# All outputs currently set to be a ConsoleAppender. | |
10 | +log4j.appender.Console=org.apache.log4j.ConsoleAppender | |
11 | +log4j.appender.Console.layout=org.apache.log4j.PatternLayout | |
12 | + | |
13 | +# use log4j NDC to replace %x with tenant domain / username | |
14 | +log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n | |
15 | +#log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n | |
16 | + | |
17 | +###### File appender definition ####### | |
18 | +log4j.appender.File=org.apache.log4j.DailyRollingFileAppender | |
19 | +log4j.appender.File.File=${app.log.dir}alfresco.log | |
20 | +log4j.appender.File.Append=true | |
21 | +log4j.appender.File.DatePattern='.'yyyy-MM-dd | |
22 | +log4j.appender.File.layout=org.apache.log4j.PatternLayout | |
23 | +log4j.appender.File.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n | |
24 | + | |
25 | +###### Hibernate specific appender definition ####### | |
26 | +#log4j.appender.file=org.apache.log4j.FileAppender | |
27 | +#log4j.appender.file.File=hibernate.log | |
28 | +#log4j.appender.file.layout=org.apache.log4j.PatternLayout | |
29 | +#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n | |
30 | + | |
31 | +###### Log level overrides ####### | |
32 | + | |
33 | +# Commented-in loggers will be exposed as JMX MBeans (refer to org.alfresco.repo.admin.Log4JHierarchyInit) | |
34 | +# Hence, generally useful loggers should be listed with at least ERROR level to allow simple runtime | |
35 | +# control of the level via a suitable JMX Console. Also, any other loggers can be added transiently via | |
36 | +# Log4j addLoggerMBean as long as the logger exists and has been loaded. | |
37 | + | |
38 | +# Hibernate | |
39 | +log4j.logger.org.hibernate=error | |
40 | +log4j.logger.org.hibernate.util.JDBCExceptionReporter=fatal | |
41 | +log4j.logger.org.hibernate.event.def.AbstractFlushingEventListener=fatal | |
42 | +log4j.logger.org.hibernate.type=warn | |
43 | +log4j.logger.org.hibernate.cfg.SettingsFactory=warn | |
44 | + | |
45 | +# Spring | |
46 | +log4j.logger.org.springframework=warn | |
47 | +# Turn off Spring remoting warnings that should really be info or debug. | |
48 | +log4j.logger.org.springframework.remoting.support=error | |
49 | +log4j.logger.org.springframework.util=error | |
50 | + | |
51 | +# Axis/WSS4J | |
52 | +log4j.logger.org.apache.axis=info | |
53 | +log4j.logger.org.apache.ws=info | |
54 | + | |
55 | +# CXF | |
56 | +log4j.logger.org.apache.cxf=error | |
57 | + | |
58 | +# MyFaces | |
59 | +log4j.logger.org.apache.myfaces.util.DebugUtils=info | |
60 | +log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error | |
61 | +log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error | |
62 | +log4j.logger.org.apache.myfaces.taglib=error | |
63 | + | |
64 | +# OpenOfficeConnection | |
65 | +log4j.logger.net.sf.jooreports.openoffice.connection=fatal | |
66 | + | |
67 | +# log prepared statement cache activity ### | |
68 | +log4j.logger.org.hibernate.ps.PreparedStatementCache=info | |
69 | + | |
70 | +# Alfresco | |
71 | +log4j.logger.org.alfresco=error | |
72 | +log4j.logger.org.alfresco.repo.admin=info | |
73 | +log4j.logger.org.alfresco.repo.cache.TransactionalCache=warn | |
74 | +log4j.logger.org.alfresco.repo.model.filefolder=warn | |
75 | +log4j.logger.org.alfresco.repo.tenant=info | |
76 | +log4j.logger.org.alfresco.repo.avm=info | |
77 | +log4j.logger.org.alfresco.config=warn | |
78 | +log4j.logger.org.alfresco.config.JndiObjectFactoryBean=warn | |
79 | +log4j.logger.org.alfresco.config.JBossEnabledWebApplicationContext=warn | |
80 | +log4j.logger.org.alfresco.repo.management.subsystems=warn | |
81 | +log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory=info | |
82 | +log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ChildApplicationContext=warn | |
83 | +log4j.logger.org.alfresco.repo.security.sync=info | |
84 | +log4j.logger.org.alfresco.repo.security.person=info | |
85 | + | |
86 | +log4j.logger.org.alfresco.sample=info | |
87 | +log4j.logger.org.alfresco.web=info | |
88 | +#log4j.logger.org.alfresco.web.app.AlfrescoNavigationHandler=debug | |
89 | +#log4j.logger.org.alfresco.web.ui.repo.component.UIActions=debug | |
90 | +#log4j.logger.org.alfresco.web.ui.repo.tag.PageTag=debug | |
91 | +#log4j.logger.org.alfresco.web.bean.clipboard=debug | |
92 | +log4j.logger.org.alfresco.repo.webservice=info | |
93 | +log4j.logger.org.alfresco.service.descriptor.DescriptorService=info | |
94 | +#log4j.logger.org.alfresco.web.page=debug | |
95 | + | |
96 | +log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=error | |
97 | +#log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=info | |
98 | + | |
99 | +log4j.logger.org.alfresco.web.ui.common.Utils=error | |
100 | +#log4j.logger.org.alfresco.web.ui.common.Utils=info | |
101 | + | |
102 | +log4j.logger.org.alfresco.repo.admin.patch.PatchExecuter=info | |
103 | +log4j.logger.org.alfresco.repo.domain.patch.ibatis.PatchDAOImpl=info | |
104 | + | |
105 | +# Specific patches | |
106 | +log4j.logger.org.alfresco.repo.admin.patch.impl.DeploymentMigrationPatch=info | |
107 | +log4j.logger.org.alfresco.repo.version.VersionMigrator=info | |
108 | +log4j.logger.org.alfresco.repo.admin.patch.impl.ResetWCMToGroupBasedPermissionsPatch=info | |
109 | + | |
110 | +log4j.logger.org.alfresco.repo.module.ModuleServiceImpl=info | |
111 | +log4j.logger.org.alfresco.repo.domain.schema.SchemaBootstrap=info | |
112 | +log4j.logger.org.alfresco.repo.admin.ConfigurationChecker=info | |
113 | +log4j.logger.org.alfresco.repo.node.index.AbstractReindexComponent=warn | |
114 | +log4j.logger.org.alfresco.repo.node.index.IndexTransactionTracker=warn | |
115 | +log4j.logger.org.alfresco.repo.node.index.FullIndexRecoveryComponent=info | |
116 | +log4j.logger.org.alfresco.repo.node.index.AVMFullIndexRecoveryComponent=info | |
117 | +log4j.logger.org.alfresco.util.OpenOfficeConnectionTester=info | |
118 | +log4j.logger.org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl=warn | |
119 | +log4j.logger.org.alfresco.repo.domain.hibernate.DirtySessionMethodInterceptor=warn | |
120 | +log4j.logger.org.alfresco.repo.transaction.RetryingTransactionHelper=warn | |
121 | +log4j.logger.org.alfresco.util.transaction.SpringAwareUserTransaction.trace=warn | |
122 | +log4j.logger.org.alfresco.util.AbstractTriggerBean=warn | |
123 | +log4j.logger.org.alfresco.enterprise.repo.cache.cluster.KeepAliveHeartbeatReceiver=info | |
124 | +log4j.logger.org.alfresco.repo.version.Version2ServiceImpl=warn | |
125 | + | |
126 | +#log4j.logger.org.alfresco.web.app.DebugPhaseListener=debug | |
127 | + | |
128 | +log4j.logger.org.alfresco.repo.workflow=info | |
129 | + | |
130 | +# CIFS server debugging | |
131 | +log4j.logger.org.alfresco.smb.protocol=error | |
132 | +#log4j.logger.org.alfresco.smb.protocol.auth=debug | |
133 | +#log4j.logger.org.alfresco.acegi=debug | |
134 | + | |
135 | +# FTP server debugging | |
136 | +log4j.logger.org.alfresco.ftp.protocol=error | |
137 | +#log4j.logger.org.alfresco.ftp.server=debug | |
138 | + | |
139 | +# WebDAV debugging | |
140 | +#log4j.logger.org.alfresco.webdav.protocol=debug | |
141 | +log4j.logger.org.alfresco.webdav.protocol=error | |
142 | + | |
143 | +# NTLM servlet filters | |
144 | +#log4j.logger.org.alfresco.web.app.servlet.NTLMAuthenticationFilter=debug | |
145 | +#log4j.logger.org.alfresco.repo.webdav.auth.NTLMAuthenticationFilter=debug | |
146 | + | |
147 | +# Kerberos servlet filters | |
148 | +#log4j.logger.org.alfresco.web.app.servlet.KerberosAuthenticationFilter=debug | |
149 | +#log4j.logger.org.alfresco.repo.webdav.auth.KerberosAuthenticationFilter=debug | |
150 | + | |
151 | +# File servers | |
152 | +log4j.logger.org.alfresco.fileserver=warn | |
153 | + | |
154 | +# Repo filesystem debug logging | |
155 | +#log4j.logger.org.alfresco.filesys.repo.ContentDiskDriver=debug | |
156 | + | |
157 | +# AVM filesystem debug logging | |
158 | +#log4j.logger.org.alfresco.filesys.avm.AVMDiskDriver=debug | |
159 | + | |
160 | +# Integrity message threshold - if 'failOnViolation' is off, then WARNINGS are generated | |
161 | +log4j.logger.org.alfresco.repo.node.integrity=ERROR | |
162 | + | |
163 | +# Indexer debugging | |
164 | +log4j.logger.org.alfresco.repo.search.Indexer=error | |
165 | +#log4j.logger.org.alfresco.repo.search.Indexer=debug | |
166 | + | |
167 | +log4j.logger.org.alfresco.repo.search.impl.lucene.index=error | |
168 | +log4j.logger.org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl=warn | |
169 | +#log4j.logger.org.alfresco.repo.search.impl.lucene.index=DEBUG | |
170 | + | |
171 | +# Audit debugging | |
172 | +# log4j.logger.org.alfresco.repo.audit=DEBUG | |
173 | +# log4j.logger.org.alfresco.repo.audit.model=DEBUG | |
174 | + | |
175 | +# Forms debugging | |
176 | +# log4j.logger.org.alfresco.web.forms=debug | |
177 | +# log4j.logger.org.chiba.xml.xforms=debug | |
178 | +log4j.logger.org.alfresco.web.forms.xforms.XFormsBean=error | |
179 | +log4j.logger.org.alfresco.web.forms.XSLTRenderingEngine=error | |
180 | + | |
181 | +# Property sheet and modelling debugging | |
182 | +# change to error to hide the warnings about missing properties and associations | |
183 | +log4j.logger.alfresco.missingProperties=warn | |
184 | +log4j.logger.org.alfresco.web.ui.repo.component.property.UIChildAssociation=warn | |
185 | +log4j.logger.org.alfresco.web.ui.repo.component.property.UIAssociation=warn | |
186 | +#log4j.logger.org.alfresco.web.ui.repo.component.property=debug | |
187 | + | |
188 | +# Dictionary/Model debugging | |
189 | +log4j.logger.org.alfresco.repo.dictionary=warn | |
190 | +log4j.logger.org.alfresco.repo.dictionary.types.period=warn | |
191 | + | |
192 | +# Virtualization Server Registry | |
193 | +log4j.logger.org.alfresco.mbeans.VirtServerRegistry=error | |
194 | + | |
195 | +# Spring context runtime property setter | |
196 | +log4j.logger.org.alfresco.util.RuntimeSystemPropertiesSetter=info | |
197 | + | |
198 | +# Debugging options for clustering | |
199 | +log4j.logger.org.alfresco.repo.content.ReplicatingContentStore=error | |
200 | +log4j.logger.org.alfresco.repo.content.replication=error | |
201 | + | |
202 | +#log4j.logger.org.alfresco.repo.deploy.DeploymentServiceImpl=debug | |
203 | + | |
204 | +# Activity service | |
205 | +log4j.logger.org.alfresco.repo.activities=warn | |
206 | + | |
207 | +# User usage tracking | |
208 | +log4j.logger.org.alfresco.repo.usage=info | |
209 | + | |
210 | +# Sharepoint | |
211 | +log4j.logger.org.alfresco.module.vti=info | |
212 | + | |
213 | +# Forms Engine | |
214 | +log4j.logger.org.alfresco.repo.forms=info | |
215 | +log4j.logger.org.alfresco.web.config.forms=info | |
216 | +log4j.logger.org.alfresco.web.scripts.forms=info | |
217 | + | |
218 | +# CMIS | |
219 | +log4j.logger.org.alfresco.opencmis=error | |
220 | +log4j.logger.org.alfresco.opencmis.AlfrescoCmisServiceInterceptor=error | |
221 | +log4j.logger.org.alfresco.cmis=error | |
222 | +log4j.logger.org.alfresco.cmis.dictionary=warn | |
223 | +log4j.logger.org.apache.chemistry.opencmis=info | |
224 | + | |
225 | +# IMAP | |
226 | +log4j.logger.org.alfresco.repo.imap=info | |
227 | + | |
228 | +# JBPM | |
229 | +# Note: non-fatal errors (eg. logged during job execution) should be handled by Alfresco's retrying transaction handler | |
230 | +log4j.logger.org.jbpm.graph.def.GraphElement=fatal | |
231 | + | |
232 | +#log4j.logger.org.alfresco.repo.googledocs=debug | |
233 | + | |
234 | +###### Scripting ####### | |
235 | + | |
236 | +# Web Framework | |
237 | +log4j.logger.org.springframework.extensions.webscripts=info | |
238 | +log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=warn | |
239 | +log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=off | |
240 | + | |
241 | +# Repository | |
242 | +log4j.logger.org.alfresco.repo.web.scripts=warn | |
243 | +log4j.logger.org.alfresco.repo.web.scripts.BaseWebScriptTest=info | |
244 | +log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=off | |
245 | +log4j.logger.org.alfresco.repo.jscript=error | |
246 | +log4j.logger.org.alfresco.repo.jscript.ScriptLogger=warn | |
247 | +log4j.logger.org.alfresco.repo.cmis.rest.CMISTest=info | |
248 | + | |
249 | +log4j.logger.org.alfresco.repo.avm.actions=info | |
250 | + | |
251 | +# Freemarker | |
252 | +# Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler | |
253 | +log4j.logger.freemarker.runtime= | |
254 | + | |
255 | +# Metadata extraction | |
256 | +log4j.logger.org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter=warn | |
257 | + | |
258 | +# Reduces PDFont error level due to ALF-7105 | |
259 | +log4j.logger.org.apache.pdfbox.pdmodel.font.PDSimpleFont=fatal | |
260 | +log4j.logger.org.apache.pdfbox.pdmodel.font.PDFont=fatal | |
261 | +log4j.logger.org.apache.pdfbox.pdmodel.font.PDCIDFont=fatal | |
262 | + | |
263 | +# no index support | |
264 | +log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexIndexer=fatal | |
265 | +log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexSearchService=fatal | |
266 | +log4j.logger.org.alfresco.trashcan=debug | |
0 | 267 | \ No newline at end of file | ... | ... |
alfresco/src/main/webapp/WEB-INF/faces-config-custom.xml
... | ... | @@ -0,0 +1,33 @@ |
1 | +<?xml version='1.0' encoding='UTF-8'?> | |
2 | +<!-- | |
3 | + Licensed to the Apache Software Foundation (ASF) under one or more | |
4 | + contributor license agreements. See the NOTICE file distributed with | |
5 | + this work for additional information regarding copyright ownership. | |
6 | + The ASF licenses this file to You under the Apache License, Version 2.0 | |
7 | + (the "License"); you may not use this file except in compliance with | |
8 | + the License. You may obtain a copy of the License at | |
9 | + | |
10 | + http://www.apache.org/licenses/LICENSE-2.0 | |
11 | + | |
12 | + Unless required by applicable law or agreed to in writing, software | |
13 | + distributed under the License is distributed on an "AS IS" BASIS, | |
14 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
15 | + See the License for the specific language governing permissions and | |
16 | + limitations under the License. | |
17 | + | |
18 | +--> | |
19 | +<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" | |
20 | + "http://java.sun.com/dtd/web-facesconfig_1_1.dtd"> | |
21 | +<faces-config> | |
22 | + <!-- | |
23 | + | | |
24 | + | Insert here custom faces configurations like: | |
25 | + | <managed-bean> | |
26 | + | <navigation-rule> | |
27 | + | | |
28 | + | This is loaded as part of the alfresco convention over configuration | |
29 | + --> | |
30 | + | |