Commit 08c5f6f616482847472c20f07b30ea2f41462fe6

Authored by Rui Fernandes
1 parent 0e96a8684b
Exists in master

reviewed to updated alfresco maven sdk artifact, reviewed to compatibility with alfresco 4.2

Showing 30 changed files with 510 additions and 1893 deletions   Show diff stats
alfresco-trashcan-cleaner-amp/jetty/jetty.xml
... ... @@ -1,18 +0,0 @@
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" class="org.mortbay.jetty.plus.naming.Resource">
6   - <Arg>jdbc/dataSource</Arg>
7   - <Arg>
8   - <!--<New class="${alfresco.db.datasource.class}"> <Set name="URL">${alfresco.db.url}</Set>
9   - <Set name="User">${alfresco.db.username}</Set> <Set name="Password">${alfresco.db.password}</Set>
10   - </New> -->
11   - <New class="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource">
12   - <Set name="URL">${alfresco.db.url}</Set>
13   - <Set name="User">${alfresco.db.username}</Set>
14   - <Set name="Password">${alfresco.db.password}</Set>
15   - </New>
16   - </Arg>
17   - </New>
18   -</Configure>
19 0 \ No newline at end of file
alfresco-trashcan-cleaner-amp/pom.xml
... ... @@ -1,44 +0,0 @@
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"
3   - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4   - <modelVersion>4.0.0</modelVersion>
5   - <artifactId>alfresco-trashcan-cleaner-amp</artifactId>
6   - <name>Alfresco Trashcan Cleaner AMP Module</name>
7   - <packaging>amp</packaging>
8   - <description>This is the AMP project, depended upon by the alfresco WAR module</description>
9   -
10   - <parent>
11   - <groupId>org.alfresco</groupId>
12   - <artifactId>alfresco-trashcan-cleaner</artifactId>
13   - <version>1.2-SNAPSHOT</version>
14   - </parent>
15   -
16   - <!-- Following dependencies are needed for compiling Java code in src/main/java;
17   - <scope>provided</scope> is inherited for each of the following; for more
18   - info, please refer to alfresco-integration-parent POM definition @TODO -
19   - document -->
20   - <dependencies>
21   - <dependency>
22   - <groupId>${alfresco.groupId}</groupId>
23   - <artifactId>alfresco-repository</artifactId>
24   - </dependency>
25   - <dependency>
26   - <groupId>junit</groupId>
27   - <artifactId>junit</artifactId>
28   - <version>4.8.1</version>
29   - <scope>test</scope>
30   - </dependency>
31   - <dependency>
32   - <groupId>mysql</groupId>
33   - <artifactId>mysql-connector-java</artifactId>
34   - <version>5.1.18</version>
35   - </dependency>
36   - </dependencies>
37   -
38   - <properties>
39   - <!-- This property allow to switch Repo AMP vs Share AMP. Set alfresco.client.war=share
40   - to run this AMP against Share -->
41   - <alfresco.client.war>alfresco</alfresco.client.war>
42   - </properties>
43   -
44   -</project>
alfresco-trashcan-cleaner-amp/src/main/amp/config/alfresco/module/alfresco-trashcan-cleaner-amp/module-context.xml
... ... @@ -1,19 +0,0 @@
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   -<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
13   -
14   -<beans>
15   -
16   - <import
17   - resource="classpath:alfresco/module/${artifactId}/context/service-context.xml" />
18   -
19   -</beans>
alfresco-trashcan-cleaner-amp/src/test/resources/test-log4j.properties
... ... @@ -1,23 +0,0 @@
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
... ... @@ -1,74 +0,0 @@
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.)
48   - dependencies | 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
50   - to | explicitly mention it in the overlay section. | NOTE: First-win resource
51   - strategy is used by the WAR plugin -->
52   - <overlays>
53   - <!-- Current project customizations -->
54   - <overlay />
55   - <!-- The Alfresco WAR -->
56   - <overlay>
57   - <groupId>${alfresco.groupId}</groupId>
58   - <artifactId>alfresco</artifactId>
59   - <type>war</type>
60   - <!-- To allow inclusion of META-INF -->
61   - <excludes />
62   - </overlay>
63   - <!-- Add / order your AMPs here -->
64   - <overlay>
65   - <groupId>${project.groupId}</groupId>
66   - <artifactId>alfresco-trashcan-cleaner-amp</artifactId>
67   - <type>amp</type>
68   - </overlay>
69   - </overlays>
70   - </configuration>
71   - </plugin>
72   - </plugins>
73   - </build>
74   -</project>
alfresco/src/main/properties/local/alfresco-global.properties
... ... @@ -1,318 +0,0 @@
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=AUTO
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=false
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   -trashcan.cron=0 30 * * * ?
313   -trashcan.daysToKeep=1
314   -trashcan.deleteBatchCount=1000
315   -
316   -cifs.enabled=false
317   -ftp.enabled=false
318   -
alfresco/src/main/resources/alfresco/extension/dev-log4j.properties
... ... @@ -1,2 +0,0 @@
1   -# You can add here custom log4j classes. This will be merged with the main log4j.properties
2   -# See http://wiki.alfresco.com/wiki/Developing_an_Alfresco_Module#Best_Log4j_Configuration_Practices
alfresco/src/main/webapp/WEB-INF/faces-config-custom.xml
... ... @@ -1,33 +0,0 @@
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   -
31   -
32   -</faces-config>
33   -
alfresco/src/main/webapp/WEB-INF/web.xml
... ... @@ -1,911 +0,0 @@
1   -<?xml version='1.0' encoding='UTF-8'?>
2   -
3   -<!DOCTYPE web-app PUBLIC
4   - "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
5   - "http://java.sun.com/dtd/web-app_2_3.dtd">
6   -
7   -<web-app>
8   - <display-name>Alfresco Web Client</display-name>
9   -
10   - <description>Alfresco Web Client</description>
11   -
12   - <context-param>
13   - <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
14   - <param-value>true</param-value>
15   - </context-param>
16   -
17   - <context-param>
18   - <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
19   - <param-value>server</param-value>
20   - </context-param>
21   -
22   - <context-param>
23   - <param-name>javax.faces.PARTIAL_STATE_SAVING_METHOD</param-name>
24   - <param-value>false</param-value>
25   - </context-param>
26   -
27   - <context-param>
28   - <param-name>javax.faces.CONFIG_FILES</param-name>
29   - <param-value>/WEB-INF/faces-config-app.xml,/WEB-INF/faces-config-beans.xml,/WEB-INF/faces-config-navigation.xml,/WEB-INF/faces-config-common.xml,/WEB-INF/faces-config-repo.xml,/WEB-INF/faces-config-wcm.xml,/WEB-INF/faces-config-custom.xml</param-value>
30   - </context-param>
31   -
32   - <context-param>
33   - <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
34   - <param-value>true</param-value>
35   - </context-param>
36   -
37   - <context-param>
38   - <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
39   - <param-value>false</param-value>
40   - <description>This is an EXPERIMENTAL feature, so leave it off for now!</description>
41   - </context-param>
42   -
43   - <context-param>
44   - <param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name>
45   - <param-value>false</param-value>
46   - <description>Stop MyFaces from Serializing the state to the session</description>
47   - </context-param>
48   -
49   - <!-- TODO: Change this to false for production -->
50   - <context-param>
51   - <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
52   - <param-value>true</param-value>
53   - <description>
54   - If true, rendered HTML code will be formatted, so that it is "human readable".
55   - i.e. additional line separators and whitespace will be written, that do not
56   - influence the HTML code.
57   - Default: "true"
58   - </description>
59   - </context-param>
60   -
61   - <context-param>
62   - <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
63   - <param-value>false</param-value>
64   - <description>
65   - If true, a javascript function will be rendered that is able to restore the
66   - former vertical scroll on every request. Convenient feature if you have pages
67   - with long lists and you do not want the browser page to always jump to the top
68   - if you trigger a link or button action that stays on the same page.
69   - Default: "false"
70   - </description>
71   - </context-param>
72   -
73   - <!-- Spring Application Context location -->
74   - <context-param>
75   - <param-name>contextConfigLocation</param-name>
76   - <param-value>/WEB-INF/web-application-context.xml</param-value>
77   - <description>Spring config file location</description>
78   - </context-param>
79   -
80   - <context-param>
81   - <param-name>log4jExposeWebAppRoot</param-name>
82   - <param-value>false</param-value>
83   - <description>Do not try to resolve web app root as file</description>
84   - </context-param>
85   -
86   - <!-- These were previously init params for the WebDAV servlet,
87   - but since they are also needed to MT-enable the
88   - ExternalAccess servlet, I have made them context wide. -->
89   - <context-param>
90   - <param-name>store</param-name>
91   - <param-value>workspace://SpacesStore</param-value>
92   - </context-param>
93   - <context-param>
94   - <param-name>rootPath</param-name>
95   - <param-value>/app:company_home</param-value>
96   - </context-param>
97   -
98   - <context-param>
99   - <param-name>org.apache.myfaces.ERROR_HANDLING</param-name>
100   - <param-value>false</param-value>
101   - </context-param>
102   -
103   - <!-- Activiti context param placeholder -->
104   -
105   - <context-param>
106   - <param-name>com.ibm.ws.jsf.loadExternalDtd</param-name>
107   - <param-value>false</param-value>
108   - <description>Sets "http://apache.org/xml/features/nonvalidating/load-external-dtd" feature on the SAXParser to false if this parameter is false</description>
109   - </context-param>
110   -
111   - <filter>
112   - <filter-name>Authentication Filter</filter-name>
113   - <description>Authentication filter mapped only to faces URLs. Other URLs generally use proprietary means to talk to the AuthenticationComponent</description>
114   - <filter-class>org.alfresco.repo.web.filter.beans.BeanProxyFilter</filter-class>
115   - <init-param>
116   - <param-name>beanName</param-name>
117   - <param-value>AuthenticationFilter</param-value>
118   - </init-param>
119   - </filter>
120   -
121   - <filter>
122   - <filter-name>Global Authentication Filter</filter-name>
123   - <description>Authentication filter mapped to all authenticated URLs. Mainly for SSO support</description>
124   - <filter-class>org.alfresco.repo.web.filter.beans.BeanProxyFilter</filter-class>
125   - <init-param>
126   - <param-name>beanName</param-name>
127   - <param-value>GlobalAuthenticationFilter</param-value>
128   - </init-param>
129   - </filter>
130   -
131   - <filter>
132   - <filter-name>WebScript Authentication Filter</filter-name>
133   - <description>Authentication filter mapped to web script URLs. Mainly for SSO support</description>
134   - <filter-class>org.alfresco.repo.web.filter.beans.BeanProxyFilter</filter-class>
135   - <init-param>
136   - <param-name>beanName</param-name>
137   - <param-value>WebscriptAuthenticationFilter</param-value>
138   - </init-param>
139   - </filter>
140   -
141   - <filter>
142   - <filter-name>WebDAV Authentication Filter</filter-name>
143   - <filter-class>org.alfresco.repo.web.filter.beans.BeanProxyFilter</filter-class>
144   - <init-param>
145   - <param-name>beanName</param-name>
146   - <param-value>WebDavAuthenticationFilter</param-value>
147   - </init-param>
148   - </filter>
149   -
150   - <filter>
151   - <filter-name>Admin Authentication Filter</filter-name>
152   - <filter-class>org.alfresco.web.app.servlet.AdminAuthenticationFilter</filter-class>
153   - </filter>
154   -
155   - <filter>
156   - <filter-name>CacheExpiresFilter</filter-name>
157   - <description>Set HTTP cache Expires header 30 days forward for a mapping.</description>
158   - <filter-class>org.alfresco.web.scripts.servlet.StaticAssetCacheFilter</filter-class>
159   - <init-param>
160   - <param-name>expires</param-name>
161   - <param-value>30</param-value>
162   - <description>Add an Expires Header 30 days forward</description>
163   - </init-param>
164   - </filter>
165   -
166   - <filter>
167   - <filter-name>Global Localization Filter</filter-name>
168   - <description>Sets fallback default locale for ALL requests</description>
169   - <filter-class>org.alfresco.web.app.servlet.GlobalLocalizationFilter</filter-class>
170   - </filter>
171   -
172   - <filter>
173   - <filter-name>JSF Session Synchronized Filter</filter-name>
174   - <filter-class>org.alfresco.repo.web.filter.beans.SessionSynchronizedFilter</filter-class>
175   - </filter>
176   -
177   - <filter-mapping>
178   - <filter-name>Global Localization Filter</filter-name>
179   - <url-pattern>/*</url-pattern>
180   - </filter-mapping>
181   -
182   - <filter-mapping>
183   - <filter-name>Global Authentication Filter</filter-name>
184   - <url-pattern>/navigate/*</url-pattern>
185   - </filter-mapping>
186   -
187   - <filter-mapping>
188   - <filter-name>Global Authentication Filter</filter-name>
189   - <url-pattern>/command/*</url-pattern>
190   - </filter-mapping>
191   -
192   - <filter-mapping>
193   - <filter-name>Global Authentication Filter</filter-name>
194   - <url-pattern>/download/*</url-pattern>
195   - </filter-mapping>
196   -
197   - <filter-mapping>
198   - <filter-name>Global Authentication Filter</filter-name>
199   - <url-pattern>/template/*</url-pattern>
200   - </filter-mapping>
201   -
202   - <filter-mapping>
203   - <filter-name>Global Authentication Filter</filter-name>
204   - <url-pattern>/n/*</url-pattern>
205   - </filter-mapping>
206   -
207   - <filter-mapping>
208   - <filter-name>Global Authentication Filter</filter-name>
209   - <url-pattern>/c/*</url-pattern>
210   - </filter-mapping>
211   -
212   - <filter-mapping>
213   - <filter-name>Global Authentication Filter</filter-name>
214   - <url-pattern>/t/*</url-pattern>
215   - </filter-mapping>
216   -
217   - <filter-mapping>
218   - <filter-name>Global Authentication Filter</filter-name>
219   - <url-pattern>/d/*</url-pattern>
220   - </filter-mapping>
221   -
222   - <!-- The WebScript Authentication filter sits in front of web service URLs in addition to the global authentication filter -->
223   - <filter-mapping>
224   - <filter-name>WebScript Authentication Filter</filter-name>
225   - <url-pattern>/wcservice/*</url-pattern>
226   - </filter-mapping>
227   -
228   - <filter-mapping>
229   - <filter-name>WebScript Authentication Filter</filter-name>
230   - <url-pattern>/wcs/*</url-pattern>
231   - </filter-mapping>
232   -
233   - <filter-mapping>
234   - <filter-name>Global Authentication Filter</filter-name>
235   - <url-pattern>/wcservice/*</url-pattern>
236   - </filter-mapping>
237   -
238   - <filter-mapping>
239   - <filter-name>Global Authentication Filter</filter-name>
240   - <url-pattern>/wcs/*</url-pattern>
241   - </filter-mapping>
242   -
243   - <filter-mapping>
244   - <filter-name>Global Authentication Filter</filter-name>
245   - <url-pattern>/ajax/*</url-pattern>
246   - </filter-mapping>
247   -
248   - <filter-mapping>
249   - <filter-name>Global Authentication Filter</filter-name>
250   - <url-pattern>/faces/*</url-pattern>
251   - </filter-mapping>
252   -
253   - <filter-mapping>
254   - <filter-name>Authentication Filter</filter-name>
255   - <url-pattern>/faces/*</url-pattern>
256   - </filter-mapping>
257   -
258   - <filter-mapping>
259   - <filter-name>WebDAV Authentication Filter</filter-name>
260   - <url-pattern>/webdav/*</url-pattern>
261   - </filter-mapping>
262   -
263   - <filter-mapping>
264   - <filter-name>Admin Authentication Filter</filter-name>
265   - <url-pattern>/faces/jsp/admin/*</url-pattern>
266   - </filter-mapping>
267   -
268   - <filter-mapping>
269   - <filter-name>Admin Authentication Filter</filter-name>
270   - <url-pattern>/faces/jsp/categories/*</url-pattern>
271   - </filter-mapping>
272   -
273   - <filter-mapping>
274   - <filter-name>Admin Authentication Filter</filter-name>
275   - <url-pattern>/faces/jsp/groups/*</url-pattern>
276   - </filter-mapping>
277   -
278   - <filter-mapping>
279   - <filter-name>Admin Authentication Filter</filter-name>
280   - <url-pattern>/faces/jsp/users/delete-user.jsp</url-pattern>
281   - </filter-mapping>
282   -
283   - <filter-mapping>
284   - <filter-name>Admin Authentication Filter</filter-name>
285   - <url-pattern>/faces/jsp/users/users.jsp</url-pattern>
286   - </filter-mapping>
287   -
288   - <filter-mapping>
289   - <filter-name>Admin Authentication Filter</filter-name>
290   - <url-pattern>/faces/jsp/admin/system-info.jsp</url-pattern>
291   - </filter-mapping>
292   -
293   - <filter-mapping>
294   - <filter-name>JSF Session Synchronized Filter</filter-name>
295   - <url-pattern>/faces/*</url-pattern>
296   - </filter-mapping>
297   -
298   - <filter-mapping>
299   - <filter-name>CacheExpiresFilter</filter-name>
300   - <url-pattern>*.jpg</url-pattern>
301   - </filter-mapping>
302   - <filter-mapping>
303   - <filter-name>CacheExpiresFilter</filter-name>
304   - <url-pattern>*.png</url-pattern>
305   - </filter-mapping>
306   - <filter-mapping>
307   - <filter-name>CacheExpiresFilter</filter-name>
308   - <url-pattern>*.gif</url-pattern>
309   - </filter-mapping>
310   - <filter-mapping>
311   - <filter-name>CacheExpiresFilter</filter-name>
312   - <url-pattern>*.css</url-pattern>
313   - </filter-mapping>
314   - <filter-mapping>
315   - <filter-name>CacheExpiresFilter</filter-name>
316   - <url-pattern>*.js</url-pattern>
317   - </filter-mapping>
318   -
319   - <listener>
320   - <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
321   - </listener>
322   -
323   - <listener>
324   - <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
325   - </listener>
326   -
327   - <!-- Spring Context Loader listener - can disable loading of context if runtime config changes are needed -->
328   - <listener>
329   - <listener-class>org.alfresco.web.app.ContextLoaderListener</listener-class>
330   - </listener>
331   -
332   - <!-- Web Application Context listener - session create/destroy debugging and bootstrap Spring init -->
333   - <listener>
334   - <listener-class>org.alfresco.web.app.ContextListener</listener-class>
335   - </listener>
336   -
337   - <!-- WebDAV session listener - ensures that no locked resources is left after session expires -->
338   - <listener>
339   - <listener-class>org.alfresco.repo.webdav.WebDAVSessionListener</listener-class>
340   - </listener>
341   -
342   - <!-- Web Services context listener for OpenCMIS -->
343   - <listener>
344   - <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
345   - </listener>
346   -
347   - <!-- Activiti listener placeholder -->
348   -
349   -
350   - <!-- Faces Servlet -->
351   - <servlet>
352   - <servlet-name>Faces Servlet</servlet-name>
353   - <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
354   - <load-on-startup>1</load-on-startup>
355   - </servlet>
356   -
357   - <servlet>
358   - <servlet-name>uploadFile</servlet-name>
359   - <servlet-class>org.alfresco.web.app.servlet.UploadFileServlet</servlet-class>
360   - </servlet>
361   -
362   - <servlet>
363   - <servlet-name>uploadContent</servlet-name>
364   - <servlet-class>org.alfresco.web.app.servlet.UploadContentServlet</servlet-class>
365   - </servlet>
366   -
367   - <servlet>
368   - <servlet-name>downloadContent</servlet-name>
369   - <servlet-class>org.alfresco.web.app.servlet.DownloadContentServlet</servlet-class>
370   - </servlet>
371   -
372   - <servlet>
373   - <servlet-name>downloadRawContent</servlet-name>
374   - <servlet-class>org.alfresco.web.app.servlet.DownloadRawContentServlet</servlet-class>
375   - </servlet>
376   -
377   - <servlet>
378   - <servlet-name>guestDownloadContent</servlet-name>
379   - <servlet-class>org.alfresco.web.app.servlet.GuestDownloadContentServlet</servlet-class>
380   - </servlet>
381   -
382   - <servlet>
383   - <servlet-name>guestTemplateContent</servlet-name>
384   - <servlet-class>org.alfresco.web.app.servlet.GuestTemplateContentServlet</servlet-class>
385   - </servlet>
386   -
387   - <servlet>
388   - <servlet-name>externalAccess</servlet-name>
389   - <servlet-class>org.alfresco.web.app.servlet.ExternalAccessServlet</servlet-class>
390   - </servlet>
391   -
392   - <servlet>
393   - <servlet-name>templateContent</servlet-name>
394   - <servlet-class>org.alfresco.web.app.servlet.TemplateContentServlet</servlet-class>
395   - </servlet>
396   -
397   - <servlet>
398   - <servlet-name>commandServlet</servlet-name>
399   - <servlet-class>org.alfresco.web.app.servlet.CommandServlet</servlet-class>
400   - </servlet>
401   -
402   - <servlet>
403   - <servlet-name>ajaxServlet</servlet-name>
404   - <servlet-class>org.alfresco.web.app.servlet.ajax.AjaxServlet</servlet-class>
405   - </servlet>
406   -
407   - <servlet>
408   - <servlet-name>axis</servlet-name>
409   - <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
410   - <load-on-startup>5</load-on-startup>
411   - </servlet>
412   -
413   - <servlet>
414   - <servlet-name>CXFServlet</servlet-name>
415   - <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
416   - <load-on-startup>6</load-on-startup>
417   - </servlet>
418   -
419   - <servlet>
420   - <servlet-name>WebDAV</servlet-name>
421   - <servlet-class>org.alfresco.repo.webdav.WebDAVServlet</servlet-class>
422   - <load-on-startup>5</load-on-startup>
423   - </servlet>
424   -
425   - <servlet>
426   - <servlet-name>apiServlet</servlet-name>
427   - <servlet-class>org.springframework.extensions.webscripts.servlet.WebScriptServlet</servlet-class>
428   - <init-param>
429   - <param-name>authenticator</param-name>
430   - <param-value>webscripts.authenticator.basic</param-value>
431   - </init-param>
432   - </servlet>
433   -
434   - <servlet>
435   - <servlet-name>wcapiServlet</servlet-name>
436   - <servlet-class>org.springframework.extensions.webscripts.servlet.WebScriptServlet</servlet-class>
437   - <init-param>
438   - <param-name>authenticator</param-name>
439   - <param-value>webscripts.authenticator.webclient</param-value>
440   - </init-param>
441   - </servlet>
442   -
443   - <servlet>
444   - <servlet-name>portalapiServlet</servlet-name>
445   - <servlet-class>org.springframework.extensions.webscripts.servlet.WebScriptServlet</servlet-class>
446   - <init-param>
447   - <param-name>authenticator</param-name>
448   - <param-value>webscripts.authenticator.webclient</param-value>
449   - </init-param>
450   - </servlet>
451   -
452   - <servlet>
453   - <servlet-name>facebookServlet</servlet-name>
454   - <servlet-class>org.alfresco.repo.web.scripts.facebook.FacebookServlet</servlet-class>
455   - <init-param>
456   - <param-name>authenticator</param-name>
457   - <param-value>webscripts.authenticator.facebook</param-value>
458   - </init-param>
459   - </servlet>
460   -
461   - <servlet>
462   - <servlet-name>fbapiServlet</servlet-name>
463   - <servlet-class>org.alfresco.repo.web.scripts.facebook.FacebookAPIServlet</servlet-class>
464   - <init-param>
465   - <param-name>authenticator</param-name>
466   - <param-value>webscripts.authenticator.facebook</param-value>
467   - </init-param>
468   - </servlet>
469   -
470   - <servlet>
471   - <servlet-name>proxyServlet</servlet-name>
472   - <servlet-class>org.alfresco.web.app.servlet.HTTPProxyServlet</servlet-class>
473   - </servlet>
474   -
475   - <servlet>
476   - <servlet-name>workflowDefinitionImageServlet</servlet-name>
477   - <servlet-class>org.alfresco.web.app.servlet.WorkflowDefinitionImageServlet</servlet-class>
478   - </servlet>
479   -
480   - <servlet>
481   - <servlet-name>JBPMDeployProcessServlet</servlet-name>
482   - <servlet-class>org.alfresco.web.app.servlet.JBPMDeployProcessServlet</servlet-class>
483   - </servlet>
484   -
485   - <servlet>
486   - <servlet-name>CMISFileShareServlet</servlet-name>
487   - <servlet-class>org.apache.chemistry.opencmis.browser.BrowseServlet</servlet-class>
488   - <init-param>
489   - <param-name>auxroot</param-name>
490   - <param-value>cmisfs/browser/</param-value>
491   - </init-param>
492