├── .gitignore
├── share-site-creators-share
├── src
│ ├── main
│ │ ├── resources
│ │ │ └── alfresco
│ │ │ │ ├── web-extension
│ │ │ │ ├── site-webscripts
│ │ │ │ │ └── com
│ │ │ │ │ │ └── ecmarchitect
│ │ │ │ │ │ ├── components
│ │ │ │ │ │ └── dashlets
│ │ │ │ │ │ │ ├── my-sites.get.js
│ │ │ │ │ │ │ ├── dynamic-welcome.get.properties
│ │ │ │ │ │ │ ├── dynamic-welcome.get_en.properties
│ │ │ │ │ │ │ ├── dynamic-welcome.get_es.properties
│ │ │ │ │ │ │ └── dynamic-welcome.get.js
│ │ │ │ │ │ └── share
│ │ │ │ │ │ ├── header
│ │ │ │ │ │ └── share-header.get.js
│ │ │ │ │ │ └── pages
│ │ │ │ │ │ └── faceted-search
│ │ │ │ │ │ └── faceted-search.get.js
│ │ │ │ └── site-data
│ │ │ │ │ └── site-creators-module-extension.xml
│ │ │ │ └── module
│ │ │ │ └── share-site-creators-share
│ │ │ │ ├── module-context.xml
│ │ │ │ └── module.properties
│ │ └── assembly
│ │ │ ├── file-mapping.properties
│ │ │ ├── web
│ │ │ └── README.md
│ │ │ └── amp.xml
│ └── test
│ │ ├── properties
│ │ └── local
│ │ │ └── alfresco-global.properties
│ │ └── resources
│ │ ├── alfresco
│ │ └── web-extension
│ │ │ └── share-config-custom.xml
│ │ └── log4j.properties
└── pom.xml
├── run.sh
├── debug.sh
├── share-site-creators-repo
├── src
│ ├── main
│ │ ├── resources
│ │ │ └── alfresco
│ │ │ │ └── module
│ │ │ │ └── share-site-creators-repo
│ │ │ │ ├── messages
│ │ │ │ └── bootstrap-messages.properties
│ │ │ │ ├── module-context.xml
│ │ │ │ ├── log4j.properties
│ │ │ │ ├── context
│ │ │ │ ├── bootstrap-context.xml
│ │ │ │ └── service-context.xml
│ │ │ │ ├── bootstrap
│ │ │ │ └── create-group.xml
│ │ │ │ └── module.properties
│ │ └── assembly
│ │ │ ├── file-mapping.properties
│ │ │ ├── web
│ │ │ └── README.md
│ │ │ └── amp.xml
│ └── test
│ │ ├── properties
│ │ └── local
│ │ │ └── alfresco-global.properties
│ │ └── resources
│ │ ├── alfresco
│ │ └── extension
│ │ │ └── disable-webscript-caching-context.xml
│ │ └── log4j.properties
└── pom.xml
├── src
└── test
│ ├── license
│ └── README.md
│ ├── resources
│ ├── tomcat
│ │ └── context-solr.xml
│ ├── share
│ │ ├── log4j.properties
│ │ └── share-config-custom.xml
│ ├── share-hotswap-agent.properties
│ ├── platform-hotswap-agent.properties
│ └── alfresco
│ │ └── extension
│ │ ├── disable-webscript-caching-context.xml
│ │ └── dev-log4j.properties
│ └── properties
│ └── local
│ ├── alfresco-global-postgresql.properties
│ ├── alfresco-global-mysql.properties
│ ├── alfresco-global-enterprise.properties
│ └── alfresco-global-h2.properties
├── integration-tests
├── src
│ └── test
│ │ ├── resources
│ │ ├── tomcat
│ │ │ └── context-solr.xml
│ │ ├── share
│ │ │ └── log4j.properties
│ │ └── alfresco
│ │ │ └── extension
│ │ │ ├── disable-webscript-caching-context.xml
│ │ │ └── dev-log4j.properties
│ │ └── properties
│ │ └── local
│ │ ├── alfresco-global-postgresql.properties
│ │ ├── alfresco-global-mysql.properties
│ │ ├── alfresco-global-enterprise.properties
│ │ └── alfresco-global-h2.properties
└── pom.xml
├── run.bat
├── debug.bat
├── readme.md
├── leiame.md
├── LICENSE
└── pom.xml
/.gitignore:
--------------------------------------------------------------------------------
1 | alf_data_dev
2 | target
3 | .settings
4 | .project
5 | .classpath
6 | alfresco.log
7 | share.log
8 | .idea
9 | *.iml
10 | *.log
11 | *.log.*
12 |
--------------------------------------------------------------------------------
/share-site-creators-share/src/main/resources/alfresco/web-extension/site-webscripts/com/ecmarchitect/components/dashlets/my-sites.get.js:
--------------------------------------------------------------------------------
1 | model.showCreateSite = false;
--------------------------------------------------------------------------------
/share-site-creators-share/src/main/resources/alfresco/web-extension/site-webscripts/com/ecmarchitect/components/dashlets/dynamic-welcome.get.properties:
--------------------------------------------------------------------------------
1 | welcome.user.sites.description=Sites are used to share content with other site members.
--------------------------------------------------------------------------------
/share-site-creators-share/src/main/resources/alfresco/web-extension/site-webscripts/com/ecmarchitect/components/dashlets/dynamic-welcome.get_en.properties:
--------------------------------------------------------------------------------
1 | welcome.user.sites.description=Sites are used to share content with other site members.
--------------------------------------------------------------------------------
/share-site-creators-share/src/main/resources/alfresco/web-extension/site-webscripts/com/ecmarchitect/components/dashlets/dynamic-welcome.get_es.properties:
--------------------------------------------------------------------------------
1 | welcome.user.sites.description=Los sitios son usados para compartir contenidos con otros miembros del sitio.
--------------------------------------------------------------------------------
/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | if [[ -z ${MAVEN_OPTS} ]]; then
3 | echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you";
4 | MAVEN_OPTS="-Xms256m -Xmx2G"
5 | fi
6 | echo "MAVEN_OPTS is set to '$MAVEN_OPTS'";
7 | mvn clean install alfresco:run
--------------------------------------------------------------------------------
/debug.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | if [[ -z ${MAVEN_OPTS} ]]; then
3 | echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you";
4 | MAVEN_OPTS="-Xms256m -Xmx2G"
5 | fi
6 | echo "MAVEN_OPTS is set to '$MAVEN_OPTS'";
7 | mvnDebug clean install alfresco:run
--------------------------------------------------------------------------------
/share-site-creators-repo/src/main/resources/alfresco/module/share-site-creators-repo/messages/bootstrap-messages.properties:
--------------------------------------------------------------------------------
1 | share-site-creators-repo.groupsLoader=Bootstraps the SITE_CREATORS group
2 | share-site-creators-repo.groupsLoader.description=Bootstraps the SITE_CREATORS group
--------------------------------------------------------------------------------
/share-site-creators-share/src/main/resources/alfresco/web-extension/site-webscripts/com/ecmarchitect/share/header/share-header.get.js:
--------------------------------------------------------------------------------
1 | var sitesMenu = widgetUtils.findObject(model.jsonModel, "id", "HEADER_SITES_MENU");
2 | if (sitesMenu) {
3 | sitesMenu.config.showCreateSite = false;
4 | }
--------------------------------------------------------------------------------
/share-site-creators-share/src/main/resources/alfresco/web-extension/site-webscripts/com/ecmarchitect/share/pages/faceted-search/faceted-search.get.js:
--------------------------------------------------------------------------------
1 | var sitesMenu = widgetUtils.findObject(model.jsonModel, "id", "HEADER_SITES_MENU");
2 | if (sitesMenu) {
3 | sitesMenu.config.showCreateSite = false;
4 | }
--------------------------------------------------------------------------------
/src/test/license/README.md:
--------------------------------------------------------------------------------
1 | # Enterprise License location
2 |
3 | Put the Alfresco Enterprise license file in this directory.
4 | It will then be copied into the Platform WAR in the
5 | WEB-INF/classes/alfresco/extension/license directory.
6 |
7 | And then not be part of any other classpaths.
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/test/resources/tomcat/context-solr.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/integration-tests/src/test/resources/tomcat/context-solr.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/run.bat:
--------------------------------------------------------------------------------
1 | ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2 | :: Dev environment startup script for Alfresco Community ::
3 | ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
4 | @ECHO OFF
5 |
6 | IF "%MAVEN_OPTS%" == "" (
7 | ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you
8 | SET MAVEN_OPTS=-Xms256m -Xmx2G
9 | )
10 | ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%'
11 |
12 | mvn clean install alfresco:run
--------------------------------------------------------------------------------
/debug.bat:
--------------------------------------------------------------------------------
1 | ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2 | :: Dev environment startup script for Alfresco Community ::
3 | ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
4 | @ECHO OFF
5 |
6 | IF "%MAVEN_OPTS%" == "" (
7 | ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you
8 | SET MAVEN_OPTS=-Xms256m -Xmx2G
9 | )
10 | ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%'
11 |
12 | mvnDebug clean install alfresco:run
--------------------------------------------------------------------------------
/share-site-creators-share/src/main/resources/alfresco/web-extension/site-webscripts/com/ecmarchitect/components/dashlets/dynamic-welcome.get.js:
--------------------------------------------------------------------------------
1 | // Rebuild the list of columns and when we see the sites-related column
2 | // go by, grab it and remove the action message and link.
3 | var retColumns = [];
4 | if (model.columns != undefined) {
5 | for each (var col in model.columns) {
6 | if (col != undefined) {
7 | if (col.title == "welcome.user.sites.title") {
8 | col.actionMsg = "";
9 | col.actionHref = "";
10 | }
11 | retColumns.push(col);
12 | }
13 | }
14 | }
15 | model.columns = retColumns;
--------------------------------------------------------------------------------
/share-site-creators-repo/src/main/assembly/file-mapping.properties:
--------------------------------------------------------------------------------
1 | # Custom AMP to WAR location mappings
2 |
3 | #
4 | # The following property can be used to include the standard set of mappings.
5 | # The contents of this file will override any defaults. The default is
6 | # 'true', i.e. the default mappings will be augmented or modified by values in
7 | # this file.
8 | #
9 | # Default mappings are:
10 | #
11 | # /config=/WEB-INF/classes
12 | # /lib=/WEB-INF/lib
13 | # /licenses=/WEB-INF/licenses
14 | # /web/jsp=/jsp
15 | # /web/css=/css
16 | # /web/images=/images
17 | # /web/scripts=/scripts
18 | # /web/php=/php
19 | #
20 | include.default=true
21 |
22 | #
23 | # Custom mappings. If 'include.default' is false, then this is the complete set.
24 | # Map /web to / in AMP so we can override things like favicon.ico
25 | #
26 | /web=/
27 |
28 |
--------------------------------------------------------------------------------
/share-site-creators-share/src/main/assembly/file-mapping.properties:
--------------------------------------------------------------------------------
1 | # Custom AMP to WAR location mappings
2 |
3 | #
4 | # The following property can be used to include the standard set of mappings.
5 | # The contents of this file will override any defaults. The default is
6 | # 'true', i.e. the default mappings will be augmented or modified by values in
7 | # this file.
8 | #
9 | # Default mappings are:
10 | #
11 | # /config=/WEB-INF/classes
12 | # /lib=/WEB-INF/lib
13 | # /licenses=/WEB-INF/licenses
14 | # /web/jsp=/jsp
15 | # /web/css=/css
16 | # /web/images=/images
17 | # /web/scripts=/scripts
18 | # /web/php=/php
19 | #
20 | include.default=true
21 |
22 | #
23 | # Custom mappings. If 'include.default' is false, then this is the complete set.
24 | # Map /web to / in AMP so we can override things like favicon.ico
25 | #
26 | /web=/
27 |
28 |
--------------------------------------------------------------------------------
/share-site-creators-repo/src/main/assembly/web/README.md:
--------------------------------------------------------------------------------
1 | # Web resources that should override out-of-the-box files
2 |
3 | Put here any web resources that should override out-of-the-box
4 | web resources, such as favicon.ico. They will then end up in the
5 | */web* directory in the AMP, and applied to the WAR, and override
6 | any existing web resources in the Alfresco.WAR.
7 |
8 | **Note**. Module dependency needs to be set to amp for the web resources to be applied by MMT:
9 |
10 | `
11 |
12 | ${project.groupId}
13 | some-platform-jar
14 | ${project.version}
15 | amp
16 |
17 | `
18 |
19 | **Important**. New web resources should not be located here, but instead
20 | in the usual place in the *src/main/resources/META-INF/resources* directory.
21 |
22 |
23 |
--------------------------------------------------------------------------------
/share-site-creators-share/src/main/assembly/web/README.md:
--------------------------------------------------------------------------------
1 | # Web resources that should override out-of-the-box files
2 |
3 | Put here any web resources that should override out-of-the-box
4 | web resources, such as favicon.ico. They will then end up in the
5 | */web* directory in the AMP, and applied to the WAR, and override
6 | any existing web resources in the Share.WAR.
7 |
8 | **Note**. Module dependency needs to be set to amp for the web resources to be applied by MMT:
9 |
10 | `
11 |
12 | ${project.groupId}
13 | some-share-jar
14 | ${project.version}
15 | amp
16 |
17 | `
18 |
19 | **Important**. New web resources should not be located here, but instead
20 | in the usual place in the *src/main/resources/META-INF/resources//* directory.
21 |
22 |
23 |
--------------------------------------------------------------------------------
/share-site-creators-repo/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | 4.0.0
5 | com.metaversant
6 | share-site-creators-repo
7 | jar
8 |
9 | share-site-creators-repo AMP project
10 | Changes the permissions so that only members of a specific group can create sites.
11 |
12 |
13 | com.metaversant
14 | share-site-creators
15 | 0.0.8-SNAPSHOT
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | org.apache.maven.plugins
27 | maven-assembly-plugin
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/share-site-creators-share/src/main/resources/alfresco/module/share-site-creators-share/module-context.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/share-site-creators-repo/src/main/resources/alfresco/module/share-site-creators-repo/module-context.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/share-site-creators-share/src/main/resources/alfresco/web-extension/site-data/site-creators-module-extension.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Share Site Creators
5 | 1.0
6 | true
7 |
8 |
9 | GROUP_SITE_CREATORS
10 | AND
11 | true
12 |
13 |
14 |
15 |
16 | org.alfresco.components.dashlets
17 | com.ecmarchitect.components.dashlets
18 |
19 |
20 | org.alfresco.share.header
21 | com.ecmarchitect.share.header
22 |
23 |
24 | org.alfresco.share.pages
25 | com.ecmarchitect.share.pages
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/share-site-creators-share/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | 4.0.0
5 | com.metaversant
6 | share-site-creators-share
7 | jar
8 |
9 | share-site-creators-share AMP project
10 | Hides all "create site" links from all users except those belonging to a specific group.
11 |
12 |
13 | com.metaversant
14 | share-site-creators
15 | 0.0.8-SNAPSHOT
16 |
17 |
18 |
19 |
20 |
21 |
24 |
25 |
26 | ${alfresco.groupId}
27 | share
28 | classes
29 |
30 |
31 |
32 | org.alfresco.surf
33 | spring-surf-api
34 |
35 |
36 |
37 |
38 |
39 |
40 | org.apache.maven.plugins
41 | maven-assembly-plugin
42 |
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/share-site-creators-repo/src/main/resources/alfresco/module/share-site-creators-repo/log4j.properties:
--------------------------------------------------------------------------------
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 | # ${artifactId} module log4j.properties
17 | #
18 | # NOTE
19 | # ----
20 | # Log4j uses the following logging levels:
21 | # debug,info,warn,error,fatal
22 | #
23 | # To set the logging level of {fullClassName} to {loglevel},
24 | # add a line to this file of the following form:
25 | #
26 | # log4j.logger.{fullClassName}={loglevel}
27 | #
28 | # For example, to make 'com.example.MyExample' produce 'debug'
29 | # logs, add a line like this:
30 | #
31 | # log4j.logger.com.example.MyExample=debug
32 | #
33 | #
34 | # WARNING
35 | # -------
36 | # Log properties in this log4j.properties file override/augment
37 | # those in the webapp's main log4j.properties.
38 | #
39 | #-----------------------------------------------------------------------
40 | log4j.logger.org.alfresco.demoamp.DemoComponent=${module.log.level}
--------------------------------------------------------------------------------
/share-site-creators-repo/src/main/resources/alfresco/module/share-site-creators-repo/context/bootstrap-context.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
9 |
10 |
12 |
13 |
14 | alfresco.module.${project.artifactId}.messages.bootstrap-messages
15 |
16 |
17 |
18 |
19 |
22 | share-site-creators-repo.groupsLoader
23 | share-site-creators-repo.groupsLoader.description
24 | 0
25 | ${version.schema}
26 | 15000
27 |
28 |
29 |
30 |
31 |
32 | /${alfresco_user_store.system_container.childname}
33 | alfresco/module/${project.artifactId}/bootstrap/create-group.xml
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/share-site-creators-repo/src/main/resources/alfresco/module/share-site-creators-repo/bootstrap/create-group.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | Site Creators
15 | GROUP_SITE_CREATORS
16 | GROUP_SITE_CREATORS
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/share-site-creators-repo/src/main/resources/alfresco/module/share-site-creators-repo/module.properties:
--------------------------------------------------------------------------------
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 | # NB: These properties are filtered at build time by Maven, single
22 | # sourcing from POM properties
23 | module.id=${project.artifactId}
24 | #module.aliases=myModule-123, my-module
25 | module.title=${project.name}
26 | module.description=${project.description}
27 | module.version=${project.version}
28 |
29 | # The following optional properties can be used to prevent the module from being added
30 | # to inappropriate versions of the WAR file.
31 | # module.repo.version.min=2.0
32 | # module.repo.version.max=2.1
33 |
34 | # FIXME: This dependencies should come out of mvn dependencies on amp
35 |
36 | # The following describe dependencies on other modules
37 | # Depends on net.sf.myproject.module.SupportModuleA version ${version} or later
38 | # module.depends.net.sf.myproject.module.SupportModuleA=${version}-*
39 | # Depends on net.sf.myproject.module.SupportModuleA version ${version} to 2.0
40 | # module.depends.net.sf.myproject.module.SupportModuleB=${version}-2.0
41 | # Depends on net.sf.myproject.module.SupportModuleC - any version
42 | # module.depends.net.sf.myproject.module.SupportModuleB=*
43 |
44 |
45 | # ==== End of Alfresco required/optional properties ======= #
46 |
47 |
48 | # ==== Beginning of module required properties/optional ====== #
49 |
--------------------------------------------------------------------------------
/share-site-creators-share/src/main/resources/alfresco/module/share-site-creators-share/module.properties:
--------------------------------------------------------------------------------
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 | # NB: These properties are filtered at build time by Maven, single
22 | # sourcing from POM properties
23 | module.id=${project.artifactId}
24 | #module.aliases=myModule-123, my-module
25 | module.title=${project.name}
26 | module.description=${project.description}
27 | module.version=${project.version}
28 |
29 | # The following optional properties can be used to prevent the module from being added
30 | # to inappropriate versions of the WAR file.
31 | # module.repo.version.min=2.0
32 | # module.repo.version.max=2.1
33 |
34 | # FIXME: This dependencies should come out of mvn dependencies on amp
35 |
36 | # The following describe dependencies on other modules
37 | # Depends on net.sf.myproject.module.SupportModuleA version ${version} or later
38 | # module.depends.net.sf.myproject.module.SupportModuleA=${version}-*
39 | # Depends on net.sf.myproject.module.SupportModuleA version ${version} to 2.0
40 | # module.depends.net.sf.myproject.module.SupportModuleB=${version}-2.0
41 | # Depends on net.sf.myproject.module.SupportModuleC - any version
42 | # module.depends.net.sf.myproject.module.SupportModuleB=*
43 |
44 |
45 | # ==== End of Alfresco required/optional properties ======= #
46 |
47 |
48 | # ==== Beginning of module required properties/optional ====== #
49 |
--------------------------------------------------------------------------------
/src/test/resources/share/log4j.properties:
--------------------------------------------------------------------------------
1 | # Set root logger level to error
2 | log4j.rootLogger=error, Console, File
3 |
4 | ###### Console appender definition #######
5 |
6 | # All outputs currently set to be a ConsoleAppender.
7 | log4j.appender.Console=org.apache.log4j.ConsoleAppender
8 | log4j.appender.Console.layout=org.apache.log4j.PatternLayout
9 |
10 | # use log4j NDC to replace %x with tenant domain / username
11 | log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n
12 | #log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
13 |
14 | ###### File appender definition #######
15 | log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
16 | log4j.appender.File.File=share.log
17 | log4j.appender.File.Append=true
18 | log4j.appender.File.DatePattern='.'yyyy-MM-dd
19 | log4j.appender.File.layout=org.apache.log4j.PatternLayout
20 | log4j.appender.File.layout.ConversionPattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %m%n
21 |
22 | # Spring
23 | log4j.logger.org.springframework=warn
24 | # Turn off Spring remoting warnings that should really be info or debug.
25 | log4j.logger.org.springframework.remoting.support=error
26 | log4j.logger.org.springframework.util=error
27 |
28 | # MyFaces
29 | log4j.logger.org.apache.myfaces.util.DebugUtils=info
30 | log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error
31 | log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error
32 | log4j.logger.org.apache.myfaces.taglib=error
33 |
34 | # Alfresco
35 | log4j.logger.org.alfresco=error
36 | log4j.logger.org.alfresco.config=warn
37 | log4j.logger.org.alfresco.config.JndiObjectFactoryBean=warn
38 | log4j.logger.org.alfresco.web=info
39 |
40 | # Web Framework
41 | log4j.logger.org.springframework.extensions.webscripts=info
42 | log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=warn
43 | log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=off
44 |
45 | # Freemarker
46 | # Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler
47 | log4j.logger.freemarker.runtime=
48 |
49 | #-----------------------------------------------------------------------
50 | # Custom Share module logging goes here...
51 | #-----------------------------------------------------------------------
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/integration-tests/src/test/resources/share/log4j.properties:
--------------------------------------------------------------------------------
1 | # Set root logger level to error
2 | log4j.rootLogger=error, Console, File
3 |
4 | ###### Console appender definition #######
5 |
6 | # All outputs currently set to be a ConsoleAppender.
7 | log4j.appender.Console=org.apache.log4j.ConsoleAppender
8 | log4j.appender.Console.layout=org.apache.log4j.PatternLayout
9 |
10 | # use log4j NDC to replace %x with tenant domain / username
11 | log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n
12 | #log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
13 |
14 | ###### File appender definition #######
15 | log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
16 | log4j.appender.File.File=share.log
17 | log4j.appender.File.Append=true
18 | log4j.appender.File.DatePattern='.'yyyy-MM-dd
19 | log4j.appender.File.layout=org.apache.log4j.PatternLayout
20 | log4j.appender.File.layout.ConversionPattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %m%n
21 |
22 | # Spring
23 | log4j.logger.org.springframework=warn
24 | # Turn off Spring remoting warnings that should really be info or debug.
25 | log4j.logger.org.springframework.remoting.support=error
26 | log4j.logger.org.springframework.util=error
27 |
28 | # MyFaces
29 | log4j.logger.org.apache.myfaces.util.DebugUtils=info
30 | log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error
31 | log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error
32 | log4j.logger.org.apache.myfaces.taglib=error
33 |
34 | # Alfresco
35 | log4j.logger.org.alfresco=error
36 | log4j.logger.org.alfresco.config=warn
37 | log4j.logger.org.alfresco.config.JndiObjectFactoryBean=warn
38 | log4j.logger.org.alfresco.web=info
39 |
40 | # Web Framework
41 | log4j.logger.org.springframework.extensions.webscripts=info
42 | log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=warn
43 | log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=off
44 |
45 | # Freemarker
46 | # Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler
47 | log4j.logger.freemarker.runtime=
48 |
49 | #-----------------------------------------------------------------------
50 | # Custom Share module logging goes here...
51 | #-----------------------------------------------------------------------
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/share-site-creators-repo/src/main/assembly/amp.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
18 |
19 | build-amp-file
20 |
21 |
22 | amp
23 |
24 |
25 | false
26 |
27 |
28 |
29 |
30 | src/main/resources/alfresco/module/${project.artifactId}/module.properties
31 | true
32 |
33 |
34 |
35 | src/main/assembly/file-mapping.properties
36 | false
37 |
38 |
39 |
40 |
41 |
42 |
43 | src/main/assembly/web
44 | web
45 | true
46 |
47 | README.md
48 |
49 |
50 |
51 |
52 |
55 |
56 |
57 | lib
58 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/share-site-creators-share/src/main/assembly/amp.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
18 |
19 | build-amp-file
20 |
21 |
22 | amp
23 |
24 |
25 | false
26 |
27 |
28 |
29 |
30 | src/main/resources/alfresco/module/${project.artifactId}/module.properties
31 | true
32 |
33 |
34 |
35 | src/main/assembly/file-mapping.properties
36 | false
37 |
38 |
39 |
40 |
41 |
42 |
43 | src/main/assembly/web
44 | web
45 | true
46 |
47 | README.md
48 |
49 |
50 |
51 |
52 |
55 |
56 |
57 | lib
58 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/share-site-creators-share/src/test/properties/local/alfresco-global.properties:
--------------------------------------------------------------------------------
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 | # As we run embedded, we set Lucene
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 | # These are also filtered from Maven at build time from POM properties.
39 | # Alternatively you can directly define them directly here
40 | db.driver=${alfresco.db.datasource.class}
41 | db.url=${alfresco.db.url}
42 | db.username=${alfresco.db.username}
43 | db.password=${alfresco.db.password}
44 | db.pool.initial=10
45 | db.pool.max=100
46 |
47 | # File servers related properties
48 | # For local builds we disable CIFS and FTP. Edit the following property to reenable them
49 | smb.server.enabled=false
50 | smb.server.name=CFS_SHARE_LOCAL
51 | smb.server.domain=mycompany.com
52 | smb.server.bindto=127.0.0.1
53 | smb.tcpip.port=1445
54 | netbios.session.port=1139
55 | netbios.name.port=1137
56 | netbios.datagram.port=1138
57 | ftp.server.enables=false
58 | ftp.port=1121
59 | ftp.authenticator=alfresco
--------------------------------------------------------------------------------
/share-site-creators-repo/src/test/properties/local/alfresco-global.properties:
--------------------------------------------------------------------------------
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 compatibility with local tomcat 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 | # As we run embedded, we set Lucene
28 | # TODO: Find a better solution for indexing, as buildonly (embedded Lucene) is deprecated and going to be removed soon
29 | #index.subsystem.name=noindex
30 | #index.subsystem.name=solr
31 | #index.subsystem.name=solr4
32 | index.subsystem.name=buildonly
33 |
34 |
35 | #dir.keystore=.
36 | #keystore.password=storepassword
37 | #metadata.password=metapassword
38 |
39 | # Fail or not when there are node integrity checker errors
40 | integrity.failOnError=true
41 |
42 | # Database connection properties
43 | # These are also filtered from Maven at build time from POM properties.
44 | # Alternatively you can directly define them directly here
45 | db.driver=${alfresco.db.datasource.class}
46 | db.url=${alfresco.db.url}
47 | db.username=${alfresco.db.username}
48 | db.password=${alfresco.db.password}
49 | db.pool.initial=10
50 | db.pool.max=100
51 |
52 | # File servers related properties
53 | # For local builds we disable CIFS and FTP. Edit the following property to reenable them
54 | cifs.enabled=false
55 |
56 | ftp.enabled=false
57 | ftp.port=1121
58 | ftp.authenticator=alfresco
59 |
--------------------------------------------------------------------------------
/share-site-creators-repo/src/test/resources/alfresco/extension/disable-webscript-caching-context.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
19 |
20 |
21 |
22 |
23 | javascript
24 |
25 |
26 | js
27 |
28 |
29 |
30 | false
31 |
32 |
33 |
34 |
35 | true
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 | ${spaces.store}
46 |
47 |
48 | ${spaces.company_home.childname}
49 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/src/test/resources/share-hotswap-agent.properties:
--------------------------------------------------------------------------------
1 | # Enable hotswap so that changes in this module will be automatically reloaded
2 | # Watch for changed class files on watchResources path and reload class definition in the running application.
3 | autoHotswap=true
4 | #autoHotswap.port=8000
5 |
6 | # Add a directory prior to application classpath (load classes and resources).
7 | #
8 | # This may be useful for example in multi module maven project to load class changes from upstream project
9 | # classes. Set extraClasspath to upstream project compiler output and .class file will have precedence to
10 | # classes from built JAR file.
11 | # i.e. monitor /target/classes
12 | # should work with extraClasspath=${project.build.outputDirectory}
13 | # If not try
14 | extraClasspath=${project.basedir}/test-aio-301-share-jar/target/classes;${project.basedir}/test-aio-301-share-jar/target/test-classes
15 |
16 |
17 | # Comma separated list of disabled plugins
18 | # Use plugin name - e.g.
19 | # Hotswapper, AnonymousClassPatch, WatchResources, Hibernate, Spring, Jersey2, Jetty, Tomcat,
20 | # ZK, Logback, JSF, Seam, ELResolver, OsgiEquinox, Proxy, WebObjects, Weld, JBossModules, Resteasy, Gae
21 | disabledPlugins=Hibernate,Spring
22 |
23 | # Add a directory prior to webapp path (load webapp resources).
24 | #
25 | # Load web application resources (such as HTML, JSP, CSS, ...) from this directory prior to default processing.
26 | # Use this setting to set to serve resources from source directory directly (e.g. src/main/webapp).
27 | extraWebappContext=${project.basedir}/test-aio-301-share-jar/target/classes/META-INF/resources;
28 |
29 | # Load static web resources from different directory.
30 | #
31 | # This setting is dependent on application server plugin(Jetty, Tomcat, JBoss, ...)
32 | webappDir=${project.basedir}/test-aio-301-share-jar/target/classes/META-INF/resources;
33 |
34 | # Watch for changes in a directory (resources only).
35 | #
36 | # Similar to extraClasspath this property adds classpath when searching for resources (not classes).
37 | # While extra classpath just modifies the classloader, this setting does nothing until the resource
38 | # is really changed.
39 | #
40 | # Sometimes it is not possible to point extraClasspath to your i.e. src/main/resources, because there are multiple
41 | # replacements of resources in a building step (maven filtering resource option).
42 | # This setting will leave i.e. src/target/classes as default source for resources, but after the resource is modified
43 | # in src/main/resources, the new changed resource is served instead.
44 | # watchResources=
45 |
46 | LOGGER.org.hotswap.agent=DEBUG
47 | #LOGGER.org.hotswap.agent.plugin=TRACE
48 | #LOGGER.org.hotswap.agent.watch=TRACE
49 | #LOGGER.org.hotswap.agent.command=TRACE
--------------------------------------------------------------------------------
/src/test/resources/platform-hotswap-agent.properties:
--------------------------------------------------------------------------------
1 | # Enable hotswap so that changes in this module will be automatically reloaded
2 | # Watch for changed class files on watchResources path and reload class definition in the running application.
3 | autoHotswap=true
4 | #autoHotswap.port=8000
5 |
6 | # Add a directory prior to application classpath (load classes and resources).
7 | #
8 | # This may be useful for example in multi module maven project to load class changes from upstream project
9 | # classes. Set extraClasspath to upstream project compiler output and .class file will have precedence to
10 | # classes from built JAR file.
11 | # i.e. monitor /target/classes
12 | # should work with extraClasspath=${project.build.outputDirectory}
13 | # If not try
14 | extraClasspath=${project.basedir}/test-aio-301-platform-jar/target/classes;${project.basedir}/test-aio-301-platform-jar/target/test-classes;${project.basedir}/integration-tests/target/classes;${project.basedir}/integration-tests/target/test-classes
15 |
16 | # Comma separated list of disabled plugins
17 | # Use plugin name - e.g.
18 | # Hotswapper, AnonymousClassPatch, WatchResources, Hibernate, Spring, Jersey2, Jetty, Tomcat,
19 | # ZK, Logback, JSF, Seam, ELResolver, OsgiEquinox, Proxy, WebObjects, Weld, JBossModules, Resteasy, Gae
20 | disabledPlugins=Hibernate,Spring
21 |
22 | # Add a directory prior to webapp path (load webapp resources).
23 | #
24 | # Load web application resources (such as HTML, JSP, CSS, ...) from this directory prior to default processing.
25 | # Use this setting to set to serve resources from source directory directly (e.g. src/main/webapp).
26 | extraWebappContext=${project.basedir}/test-aio-301-platform-jar/target/classes/META-INF/resources;
27 |
28 | # Load static web resources from different directory.
29 | #
30 | # This setting is dependent on application server plugin(Jetty, Tomcat, JBoss, ...)
31 | webappDir=${project.basedir}/test-aio-301-platform-jar/target/classes/META-INF/resources;
32 |
33 | # Watch for changes in a directory (resources only).
34 | #
35 | # Similar to extraClasspath this property adds classpath when searching for resources (not classes).
36 | # While extra classpath just modifies the classloader, this setting does nothing until the resource
37 | # is really changed.
38 | #
39 | # Sometimes it is not possible to point extraClasspath to your i.e. src/main/resources, because there are multiple
40 | # replacements of resources in a building step (maven filtering resource option).
41 | # This setting will leave i.e. src/target/classes as default source for resources, but after the resource is modified
42 | # in src/main/resources, the new changed resource is served instead.
43 | # watchResources=
44 |
45 | LOGGER.org.hotswap.agent=DEBUG
46 | #LOGGER.org.hotswap.agent.plugin=TRACE
47 | #LOGGER.org.hotswap.agent.watch=TRACE
48 | #LOGGER.org.hotswap.agent.command=TRACE
--------------------------------------------------------------------------------
/src/test/properties/local/alfresco-global-postgresql.properties:
--------------------------------------------------------------------------------
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 | ########################################################################################################################
19 | # Alfresco configuration for running locally with PostgreSQL Database
20 | #
21 | # Configuration when running Tomcat embedded from Maven.
22 | # Property values from the POM but it can also be edited here.
23 | ########################################################################################################################
24 |
25 | dir.root=${alfresco.data.location}
26 |
27 | # Alfresco Repo Webapp (alfresco.war) context, ports etc
28 | alfresco.context=alfresco
29 | alfresco.host=localhost
30 | alfresco.port=8080
31 | alfresco.protocol=http
32 |
33 | # Alfresco Share Webapp (share.war) context, ports etc
34 | share.context=share
35 | share.host=localhost
36 | share.port=8080
37 | share.protocol=http
38 |
39 | index.subsystem.name=solr4
40 | solr.host=localhost
41 | solr.port=8080
42 | solr.secureComms=none
43 |
44 | # Don't try and recover any index
45 | index.recovery.mode=NONE
46 |
47 | # These jobs seem to require Lucene (Unsupported Operation with Solr) so we disable them / set to future date
48 | # See https://forums.alfresco.com/en/viewtopic.php?f=52&t=41597
49 | # If you want to enable them (and so full WQS functionality), please also set index.subsystem.name=lucene
50 | wcmqs.dynamicCollectionProcessor.schedule=0 30 2 * * ? 2060
51 | wcmqs.feedbackProcessor.schedule=0 40 2 * * ? 2060
52 | wcmqs.publishQueueProcessor.schedule=0 50 2 * * ? 2060
53 |
54 | # Fail or not when there are node integrity checker errors
55 | integrity.failOnError=true
56 |
57 | # Alfresco Repository PostgreSQL Database configuration.
58 | # The PostgreSQL Driver is brought in via the tomcat7-maven-plugin as a dependency.
59 | db.driver=org.postgresql.Driver
60 | db.url=jdbc:postgresql://localhost:5432/alfrescoaio
61 | db.username=alfresco
62 | db.password=alfresco
63 | db.pool.initial=10
64 | db.pool.max=100
65 |
66 | # File servers related properties
67 | # For local runs we disable CIFS and FTP
68 | cifs.enabled=false
69 | ftp.enabled=false
--------------------------------------------------------------------------------
/src/test/properties/local/alfresco-global-mysql.properties:
--------------------------------------------------------------------------------
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 | ########################################################################################################################
19 | # Alfresco configuration for running locally with MySQL Database
20 | #
21 | # Configuration when running Tomcat embedded from Maven.
22 | # Property values from the POM but it can also be edited here.
23 | ########################################################################################################################
24 |
25 | dir.root=${alfresco.data.location}
26 |
27 | # Alfresco Repo Webapp (alfresco.war) context, ports etc
28 | alfresco.context=alfresco
29 | alfresco.host=localhost
30 | alfresco.port=8080
31 | alfresco.protocol=http
32 |
33 | # Alfresco Share Webapp (share.war) context, ports etc
34 | share.context=share
35 | share.host=localhost
36 | share.port=8080
37 | share.protocol=http
38 |
39 | index.subsystem.name=solr4
40 | solr.host=localhost
41 | solr.port=8080
42 | solr.secureComms=none
43 |
44 | # Don't try and recover any index
45 | index.recovery.mode=NONE
46 |
47 | # These jobs seem to require Lucene (Unsupported Operation with Solr) so we disable them / set to future date
48 | # See https://forums.alfresco.com/en/viewtopic.php?f=52&t=41597
49 | # If you want to enable them (and so full WQS functionality), please also set index.subsystem.name=lucene
50 | wcmqs.dynamicCollectionProcessor.schedule=0 30 2 * * ? 2060
51 | wcmqs.feedbackProcessor.schedule=0 40 2 * * ? 2060
52 | wcmqs.publishQueueProcessor.schedule=0 50 2 * * ? 2060
53 |
54 | # Fail or not when there are node integrity checker errors
55 | integrity.failOnError=true
56 |
57 | # Alfresco Repository MySQL Database configuration.
58 | # The MySQL Driver is brought in via the tomcat7-maven-plugin as a dependency.
59 | db.driver=org.gjt.mm.mysql.Driver
60 | db.url=jdbc:mysql://localhost:3306/alfrescoaio?useUnicode=yes&characterEncoding=UTF-8
61 | db.username=alfresco
62 | db.password=alfresco
63 | db.pool.initial=10
64 | db.pool.max=100
65 |
66 | # File servers related properties
67 | # For local runs we disable CIFS and FTP
68 | cifs.enabled=false
69 | ftp.enabled=false
--------------------------------------------------------------------------------
/src/test/properties/local/alfresco-global-enterprise.properties:
--------------------------------------------------------------------------------
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 | ########################################################################################################################
19 | # Alfresco configuration for running locally with Enterprise Database, such as SQL Server, Oracle etc
20 | #
21 | # Configuration when running Tomcat embedded from Maven.
22 | # Property values from the POM but it can also be edited here.
23 | ########################################################################################################################
24 |
25 | dir.root=${alfresco.data.location}
26 |
27 | # Alfresco Repo Webapp (alfresco.war) context, ports etc
28 | alfresco.context=alfresco
29 | alfresco.host=localhost
30 | alfresco.port=8080
31 | alfresco.protocol=http
32 |
33 | # Alfresco Share Webapp (share.war) context, ports etc
34 | share.context=share
35 | share.host=localhost
36 | share.port=8080
37 | share.protocol=http
38 |
39 | index.subsystem.name=solr4
40 | solr.host=localhost
41 | solr.port=8080
42 | solr.secureComms=none
43 |
44 | # Don't try and recover any index
45 | index.recovery.mode=NONE
46 |
47 | # These jobs seem to require Lucene (Unsupported Operation with Solr) so we disable them / set to future date
48 | # See https://forums.alfresco.com/en/viewtopic.php?f=52&t=41597
49 | # If you want to enable them (and so full WQS functionality), please also set index.subsystem.name=lucene
50 | wcmqs.dynamicCollectionProcessor.schedule=0 30 2 * * ? 2060
51 | wcmqs.feedbackProcessor.schedule=0 40 2 * * ? 2060
52 | wcmqs.publishQueueProcessor.schedule=0 50 2 * * ? 2060
53 |
54 | # Fail or not when there are node integrity checker errors
55 | integrity.failOnError=true
56 |
57 | # Alfresco Repository Enterprise Database Configuration, such as SQL Server, Oracle etc
58 | # The Enterprise Driver is brought in via the tomcat7-maven-plugin as a dependency.
59 | db.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
60 | db.url=jdbc:sqlserver://localhost:1433;databaseName=alfrescoaio
61 | db.username=alfresco
62 | db.password=alfresco
63 | db.pool.initial=10
64 | db.pool.max=100
65 |
66 | # File servers related properties
67 | # For local runs we disable CIFS and FTP
68 | cifs.enabled=false
69 | ftp.enabled=false
--------------------------------------------------------------------------------
/src/test/resources/alfresco/extension/disable-webscript-caching-context.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
19 |
20 |
31 |
32 |
33 | javascript
34 |
35 |
36 | js
37 |
38 |
39 |
40 | false
41 |
42 |
43 |
44 |
45 | true
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 | ${spaces.store}
56 |
57 |
58 | ${spaces.company_home.childname}
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/integration-tests/src/test/resources/alfresco/extension/disable-webscript-caching-context.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
19 |
20 |
31 |
32 |
33 | javascript
34 |
35 |
36 | js
37 |
38 |
39 |
40 | false
41 |
42 |
43 |
44 |
45 | true
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 | ${spaces.store}
56 |
57 |
58 | ${spaces.company_home.childname}
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/integration-tests/src/test/properties/local/alfresco-global-postgresql.properties:
--------------------------------------------------------------------------------
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 | ########################################################################################################################
19 | # Alfresco configuration for running locally with PostgreSQL Database
20 | #
21 | # Configuration when running Tomcat embedded from Maven.
22 | # Property values from the POM but it can also be edited here.
23 | ########################################################################################################################
24 |
25 | dir.root=${alfresco.data.location}
26 |
27 | # Alfresco Repo Webapp (alfresco.war) context, ports etc
28 | alfresco.context=alfresco
29 | alfresco.host=localhost
30 | alfresco.port=8080
31 | alfresco.protocol=http
32 |
33 | # Alfresco Share Webapp (share.war) context, ports etc
34 | share.context=share
35 | share.host=localhost
36 | share.port=8080
37 | share.protocol=http
38 |
39 | index.subsystem.name=solr4
40 | solr.host=localhost
41 | solr.port=8080
42 | solr.secureComms=none
43 |
44 | # Don't try and recover any index
45 | index.recovery.mode=NONE
46 | # As we run embedded, we set Lucene
47 | # TODO: Find a better solution for indexing, as buildonly (embedded Lucene) is deprecated and going to be removed soon
48 | #index.subsystem.name=buildonly
49 |
50 | # These jobs seem to require Lucene (Unsupported Operation with Solr) so we disable them / set to future date
51 | # See https://forums.alfresco.com/en/viewtopic.php?f=52&t=41597
52 | # If you want to enable them (and so full WQS functionality), please also set index.subsystem.name=lucene
53 | wcmqs.dynamicCollectionProcessor.schedule=0 30 2 * * ? 2060
54 | wcmqs.feedbackProcessor.schedule=0 40 2 * * ? 2060
55 | wcmqs.publishQueueProcessor.schedule=0 50 2 * * ? 2060
56 |
57 | # Fail or not when there are node integrity checker errors
58 | integrity.failOnError=true
59 |
60 | # Alfresco Repository PostgreSQL Database configuration.
61 | # The PostgreSQL Driver is brought in via the tomcat7-maven-plugin as a dependency.
62 | db.driver=org.postgresql.Driver
63 | db.url=jdbc:postgresql://localhost:5432/alfrescoaio
64 | db.username=alfresco
65 | db.password=alfresco
66 | db.pool.initial=10
67 | db.pool.max=100
68 |
69 | # File servers related properties
70 | # For local runs we disable CIFS and FTP
71 | cifs.enabled=false
72 | ftp.enabled=false
--------------------------------------------------------------------------------
/integration-tests/src/test/properties/local/alfresco-global-mysql.properties:
--------------------------------------------------------------------------------
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 | ########################################################################################################################
19 | # Alfresco configuration for running locally with MySQL Database
20 | #
21 | # Configuration when running Tomcat embedded from Maven.
22 | # Property values from the POM but it can also be edited here.
23 | ########################################################################################################################
24 |
25 | dir.root=${alfresco.data.location}
26 |
27 | # Alfresco Repo Webapp (alfresco.war) context, ports etc
28 | alfresco.context=alfresco
29 | alfresco.host=localhost
30 | alfresco.port=8080
31 | alfresco.protocol=http
32 |
33 | # Alfresco Share Webapp (share.war) context, ports etc
34 | share.context=share
35 | share.host=localhost
36 | share.port=8080
37 | share.protocol=http
38 |
39 | index.subsystem.name=solr4
40 | solr.host=localhost
41 | solr.port=8080
42 | solr.secureComms=none
43 |
44 | # Don't try and recover any index
45 | index.recovery.mode=NONE
46 | # As we run embedded, we set Lucene
47 | # TODO: Find a better solution for indexing, as buildonly (embedded Lucene) is deprecated and going to be removed soon
48 | #index.subsystem.name=buildonly
49 |
50 | # These jobs seem to require Lucene (Unsupported Operation with Solr) so we disable them / set to future date
51 | # See https://forums.alfresco.com/en/viewtopic.php?f=52&t=41597
52 | # If you want to enable them (and so full WQS functionality), please also set index.subsystem.name=lucene
53 | wcmqs.dynamicCollectionProcessor.schedule=0 30 2 * * ? 2060
54 | wcmqs.feedbackProcessor.schedule=0 40 2 * * ? 2060
55 | wcmqs.publishQueueProcessor.schedule=0 50 2 * * ? 2060
56 |
57 | # Fail or not when there are node integrity checker errors
58 | integrity.failOnError=true
59 |
60 | # Alfresco Repository MySQL Database configuration.
61 | # The MySQL Driver is brought in via the tomcat7-maven-plugin as a dependency.
62 | db.driver=org.gjt.mm.mysql.Driver
63 | db.url=jdbc:mysql://localhost:3306/alfrescoaio?useUnicode=yes&characterEncoding=UTF-8
64 | db.username=alfresco
65 | db.password=alfresco
66 | db.pool.initial=10
67 | db.pool.max=100
68 |
69 | # File servers related properties
70 | # For local runs we disable CIFS and FTP
71 | cifs.enabled=false
72 | ftp.enabled=false
--------------------------------------------------------------------------------
/integration-tests/src/test/properties/local/alfresco-global-enterprise.properties:
--------------------------------------------------------------------------------
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 | ########################################################################################################################
19 | # Alfresco configuration for running locally with Enterprise Database, such as SQL Server, Oracle etc
20 | #
21 | # Configuration when running Tomcat embedded from Maven.
22 | # Property values from the POM but it can also be edited here.
23 | ########################################################################################################################
24 |
25 | dir.root=${alfresco.data.location}
26 |
27 | # Alfresco Repo Webapp (alfresco.war) context, ports etc
28 | alfresco.context=alfresco
29 | alfresco.host=localhost
30 | alfresco.port=8080
31 | alfresco.protocol=http
32 |
33 | # Alfresco Share Webapp (share.war) context, ports etc
34 | share.context=share
35 | share.host=localhost
36 | share.port=8080
37 | share.protocol=http
38 |
39 | index.subsystem.name=solr4
40 | solr.host=localhost
41 | solr.port=8080
42 | solr.secureComms=none
43 |
44 | # Don't try and recover any index
45 | index.recovery.mode=NONE
46 | # As we run embedded, we set Lucene
47 | # TODO: Find a better solution for indexing, as buildonly (embedded Lucene) is deprecated and going to be removed soon
48 | #index.subsystem.name=buildonly
49 |
50 | # These jobs seem to require Lucene (Unsupported Operation with Solr) so we disable them / set to future date
51 | # See https://forums.alfresco.com/en/viewtopic.php?f=52&t=41597
52 | # If you want to enable them (and so full WQS functionality), please also set index.subsystem.name=lucene
53 | wcmqs.dynamicCollectionProcessor.schedule=0 30 2 * * ? 2060
54 | wcmqs.feedbackProcessor.schedule=0 40 2 * * ? 2060
55 | wcmqs.publishQueueProcessor.schedule=0 50 2 * * ? 2060
56 |
57 | # Fail or not when there are node integrity checker errors
58 | integrity.failOnError=true
59 |
60 | # Alfresco Repository Enterprise Database Configuration, such as SQL Server, Oracle etc
61 | # The Enterprise Driver is brought in via the tomcat7-maven-plugin as a dependency.
62 | db.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
63 | db.url=jdbc:sqlserver://localhost:1433;databaseName=alfrescoaio
64 | db.username=alfresco
65 | db.password=alfresco
66 | db.pool.initial=10
67 | db.pool.max=100
68 |
69 | # File servers related properties
70 | # For local runs we disable CIFS and FTP
71 | cifs.enabled=false
72 | ftp.enabled=false
--------------------------------------------------------------------------------
/share-site-creators-share/src/test/resources/alfresco/web-extension/share-config-custom.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
14 |
15 |
16 |
19 | true
20 |
24 | false
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | alfresco-noauth
38 | Alfresco - unauthenticated access
39 | Access to Alfresco Repository WebScripts that do not require authentication
40 | alfresco
41 | ${alfresco.repo.url}/s
42 | none
43 |
44 |
45 |
46 | alfresco
47 | Alfresco - user access
48 | Access to Alfresco Repository WebScripts that require user authentication
49 | alfresco
50 | ${alfresco.repo.url}/s
51 | user
52 |
53 |
54 |
55 | alfresco-feed
56 | Alfresco Feed
57 | Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet
58 | http
59 | ${alfresco.repo.url}/s
60 | true
61 | user
62 |
63 |
64 |
65 | activiti-admin
66 | Activiti Admin UI - user access
67 | Access to Activiti Admin UI, that requires user authentication
68 | activiti-admin-connector
69 | ${alfresco.repo.url}/activiti-admin
70 | user
71 |
72 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/src/test/properties/local/alfresco-global-h2.properties:
--------------------------------------------------------------------------------
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 | ########################################################################################################################
19 | # Alfresco configuration for running locally with H2 Database
20 | #
21 | # Configuration when running Tomcat embedded from Maven.
22 | # Property values from the POM but it can also be edited here.
23 | ########################################################################################################################
24 |
25 | dir.root=${alfresco.data.location}
26 |
27 | # Alfresco Repo Webapp (alfresco.war) context, ports etc
28 | alfresco.context=alfresco
29 | alfresco.host=localhost
30 | alfresco.port=8080
31 | alfresco.protocol=http
32 |
33 | # Alfresco Share Webapp (share.war) context, ports etc
34 | share.context=share
35 | share.host=localhost
36 | share.port=8080
37 | share.protocol=http
38 |
39 | index.subsystem.name=solr4
40 | solr.host=localhost
41 | solr.port=8080
42 | solr.secureComms=none
43 |
44 | # Don't try and recover any index
45 | index.recovery.mode=NONE
46 |
47 | # These jobs seem to require Lucene (Unsupported Operation with Solr) so we disable them / set to future date
48 | # See https://forums.alfresco.com/en/viewtopic.php?f=52&t=41597
49 | # If you want to enable them (and so full WQS functionality), please also set index.subsystem.name=lucene
50 | wcmqs.dynamicCollectionProcessor.schedule=0 30 2 * * ? 2060
51 | wcmqs.feedbackProcessor.schedule=0 40 2 * * ? 2060
52 | wcmqs.publishQueueProcessor.schedule=0 50 2 * * ? 2060
53 |
54 | # Fail or not when there are node integrity checker errors
55 | integrity.failOnError=true
56 |
57 | # Alfresco Repository H2 Database configuration.
58 | # The H2 database implementation and Driver is brought in via the tomcat7-maven-plugin as a dependency.
59 | # The data files for the H2 database will be created in a relative path, such as alf_data_dev/h2_data/alf_dev,
60 | # see alfresco.db.url below.
61 | # For more information about the db parameters see:http://www.h2database.com/html/features.html
62 | db.driver=org.h2.jdbcx.JdbcDataSource
63 | db.url=jdbc:h2:${alfresco.data.location}/h2_data/alf_dev;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;MVCC=FALSE;LOCK_MODE=0
64 | db.username=alfresco
65 | db.password=alfresco
66 | db.pool.initial=10
67 | db.pool.max=100
68 | hibernate.dialect=org.hibernate.dialect.H2Dialect
69 |
70 | # File servers related properties
71 | # For local runs we disable CIFS and FTP
72 | cifs.enabled=false
73 | ftp.enabled=false
--------------------------------------------------------------------------------
/integration-tests/src/test/properties/local/alfresco-global-h2.properties:
--------------------------------------------------------------------------------
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 | ########################################################################################################################
19 | # Alfresco configuration for running locally with H2 Database
20 | #
21 | # Configuration when running Tomcat embedded from Maven.
22 | # Property values from the POM but it can also be edited here.
23 | ########################################################################################################################
24 |
25 | dir.root=${alfresco.data.location}
26 |
27 | # Alfresco Repo Webapp (alfresco.war) context, ports etc
28 | alfresco.context=alfresco
29 | alfresco.host=localhost
30 | alfresco.port=8080
31 | alfresco.protocol=http
32 |
33 | # Alfresco Share Webapp (share.war) context, ports etc
34 | share.context=share
35 | share.host=localhost
36 | share.port=8080
37 | share.protocol=http
38 |
39 | index.subsystem.name=solr4
40 | solr.host=localhost
41 | solr.port=8080
42 | solr.secureComms=none
43 |
44 | # Don't try and recover any index
45 | index.recovery.mode=NONE
46 | # As we run embedded, we set Lucene
47 | # TODO: Find a better solution for indexing, as buildonly (embedded Lucene) is deprecated and going to be removed soon
48 | #index.subsystem.name=buildonly
49 |
50 | # These jobs seem to require Lucene (Unsupported Operation with Solr) so we disable them / set to future date
51 | # See https://forums.alfresco.com/en/viewtopic.php?f=52&t=41597
52 | # If you want to enable them (and so full WQS functionality), please also set index.subsystem.name=lucene
53 | wcmqs.dynamicCollectionProcessor.schedule=0 30 2 * * ? 2060
54 | wcmqs.feedbackProcessor.schedule=0 40 2 * * ? 2060
55 | wcmqs.publishQueueProcessor.schedule=0 50 2 * * ? 2060
56 |
57 | # Fail or not when there are node integrity checker errors
58 | integrity.failOnError=true
59 |
60 | # Alfresco Repository H2 Database configuration.
61 | # The H2 database implementation and Driver is brought in via the tomcat7-maven-plugin as a dependency.
62 | # The data files for the H2 database will be created in a relative path, such as alf_data_dev/h2_data/alf_dev,
63 | # see alfresco.db.url below.
64 | # For more information about the db parameters see:http://www.h2database.com/html/features.html
65 | db.driver=org.h2.jdbcx.JdbcDataSource
66 | db.url=jdbc:h2:${alfresco.data.location}/h2_data/alf_dev;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;MVCC=FALSE;LOCK_MODE=0
67 | db.username=alfresco
68 | db.password=alfresco
69 | db.pool.initial=10
70 | db.pool.max=100
71 | hibernate.dialect=org.hibernate.dialect.H2Dialect
72 |
73 | # File servers related properties
74 | # For local runs we disable CIFS and FTP
75 | cifs.enabled=false
76 | ftp.enabled=false
--------------------------------------------------------------------------------
/share-site-creators-repo/src/main/resources/alfresco/module/share-site-creators-repo/context/service-context.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 | org.alfresco.service.cmr.site.SiteService.cleanSitePermissions=ACL_NODE.0.sys:base.ReadProperties
29 | org.alfresco.service.cmr.site.SiteService.createContainer=ACL_ALLOW,AFTER_ACL_NODE.sys:base.ReadProperties
30 | org.alfresco.service.cmr.site.SiteService.createSite=ACL_METHOD.GROUP_SITE_CREATORS
31 | org.alfresco.service.cmr.site.SiteService.deleteSite=ACL_ALLOW
32 | org.alfresco.service.cmr.site.SiteService.findSites=ACL_ALLOW,AFTER_ACL_NODE.sys:base.ReadProperties
33 | org.alfresco.service.cmr.site.SiteService.getContainer=ACL_ALLOW,AFTER_ACL_NODE.sys:base.ReadProperties
34 | org.alfresco.service.cmr.site.SiteService.listContainers=ACL_ALLOW,AFTER_ACL_NODE.sys:base.ReadProperties
35 | org.alfresco.service.cmr.site.SiteService.getMembersRole=ACL_ALLOW
36 | org.alfresco.service.cmr.site.SiteService.getMembersRoleInfo=ACL_ALLOW
37 | org.alfresco.service.cmr.site.SiteService.resolveSite=ACL_ALLOW
38 | org.alfresco.service.cmr.site.SiteService.getSite=ACL_ALLOW,AFTER_ACL_NODE.sys:base.ReadProperties
39 | org.alfresco.service.cmr.site.SiteService.getSiteShortName=ACL_ALLOW,AFTER_ACL_NODE.sys:base.ReadProperties
40 | org.alfresco.service.cmr.site.SiteService.getSiteGroup=ACL_ALLOW
41 | org.alfresco.service.cmr.site.SiteService.getSiteRoleGroup=ACL_ALLOW
42 | org.alfresco.service.cmr.site.SiteService.getSiteRoles=ACL_ALLOW
43 | org.alfresco.service.cmr.site.SiteService.getSiteRoot=ACL_ALLOW,AFTER_ACL_NODE.sys:base.ReadProperties
44 | org.alfresco.service.cmr.site.SiteService.hasContainer=ACL_ALLOW
45 | org.alfresco.service.cmr.site.SiteService.hasCreateSitePermissions=ACL_ALLOW
46 | org.alfresco.service.cmr.site.SiteService.hasSite=ACL_ALLOW
47 | org.alfresco.service.cmr.site.SiteService.isMember=ACL_ALLOW
48 | org.alfresco.service.cmr.site.SiteService.listMembers=ACL_ALLOW
49 | org.alfresco.service.cmr.site.SiteService.listMembersInfo=ACL_ALLOW
50 | org.alfresco.service.cmr.site.SiteService.listMembersPaged=ACL_ALLOW
51 | org.alfresco.service.cmr.site.SiteService.listSiteMemberships=ACL_ALLOW
52 | org.alfresco.service.cmr.site.SiteService.listSites=ACL_ALLOW,AFTER_ACL_NODE.sys:base.ReadProperties
53 | org.alfresco.service.cmr.site.SiteService.listSitesPaged=ACL_ALLOW,AFTER_ACL_NODE.sys:base.ReadProperties
54 | org.alfresco.service.cmr.site.SiteService.removeMembership=ACL_ALLOW
55 | org.alfresco.service.cmr.site.SiteService.canAddMember=ACL_ALLOW
56 | org.alfresco.service.cmr.site.SiteService.setMembership=ACL_ALLOW
57 | org.alfresco.service.cmr.site.SiteService.updateSite=ACL_ALLOW
58 | org.alfresco.service.cmr.site.SiteService.countAuthoritiesWithRole=ACL_ALLOW
59 | org.alfresco.service.cmr.site.SiteService.isSiteAdmin=ACL_ALLOW
60 | org.alfresco.service.cmr.site.SiteService.*=ACL_DENY
61 |
62 |
63 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/integration-tests/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | 4.0.0
5 | integration-tests
6 | Integration Tests Module
7 | Integration Tests module for share site creators
8 | jar
10 |
11 |
12 | com.metaversant
13 | share-site-creators
14 | 0.0.8-SNAPSHOT
15 |
16 |
17 |
18 |
19 |
20 |
21 |
23 |
24 | com.metaversant
25 | share-site-creators-repo
26 | 0.0.8-SNAPSHOT
27 | test
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 | src/test/resources
36 | true
37 |
38 |
39 |
40 |
41 |
42 |
43 | org.zeroturnaround
44 | jrebel-maven-plugin
45 | ${jrebel.version}
46 |
47 | ${project.build.testOutputDirectory}
48 |
49 |
50 |
51 |
52 |
53 | org.apache.maven.plugins
54 | maven-jar-plugin
55 | 3.0.2
56 |
57 |
58 |
59 | test-jar
60 |
61 |
62 |
63 |
64 |
65 |
67 |
68 | org.apache.maven.plugins
69 | maven-failsafe-plugin
70 | 2.19.1
71 |
72 |
73 | integration-test
74 | integration-test
75 |
76 | integration-test
77 |
78 |
79 |
80 | verify-test
81 | verify
82 |
83 | verify
84 |
85 |
86 |
87 |
88 |
89 | org.apache.maven.surefire
90 | surefire-junit47
91 | 2.19.1
92 |
93 |
94 |
95 |
96 |
97 |
98 | org.alfresco.maven.plugin
99 | alfresco-maven-plugin
100 | ${alfresco.sdk.version}
101 |
102 |
103 | start-alfresco
104 |
105 | it
106 |
107 | pre-integration-test
108 |
109 |
110 |
111 |
112 |
113 |
114 |
--------------------------------------------------------------------------------
/src/test/resources/share/share-config-custom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
8 | production
9 |
10 |
11 |
20 | false
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
31 | true
32 |
36 | false
37 |
38 |
39 |
40 |
44 |
45 |
46 |
47 |
48 |
49 |
53 |
54 |
55 |
56 | alfresco-noauth
57 | Alfresco - unauthenticated access
58 | Access to Alfresco Repository WebScripts that do not require authentication
59 | alfresco
60 | ${alfresco.repo.url}/s
61 | none
62 |
63 |
64 |
65 | alfresco
66 | Alfresco - user access
67 | Access to Alfresco Repository WebScripts that require user authentication
68 | alfresco
69 | ${alfresco.repo.url}/s
70 | user
71 |
72 |
73 |
74 | alfresco-feed
75 | Alfresco Feed
76 | Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet
77 | http
78 | ${alfresco.repo.url}/s
79 | true
80 | user
81 |
82 |
83 |
84 | activiti-admin
85 | Activiti Admin UI - user access
86 | Access to Activiti Admin UI, that requires user authentication
87 | activiti-admin-connector
88 | ${alfresco.repo.url}/activiti-admin
89 | user
90 |
91 |
92 |
93 | alfresco-api
94 | alfresco
95 | Alfresco Public API - user access
96 | Access to Alfresco Repository Public API that require user authentication.
97 | This makes use of the authentication that is provided by parent 'alfresco' endpoint.
98 | alfresco
99 | ${alfresco.repo.url}/api
100 | user
101 |
102 |
103 |
104 |
105 |
106 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | share-site-creators
2 | ==============
3 |
4 | This add-on gives you the ability to restrict Alfresco Share site creation to a specific group of users. Users not in the group will not see a "Create Site" link in:
5 |
6 | * The header Sites dropdown menu
7 | * The My Sites dashlet
8 | * The "welcome" dashlet
9 |
10 | In addition, for users not in the group, the "welcome" dashlet's text changes to explain what a Share site is but does not imply that they have the ability to create one. A nice enhancement might be a link that launches a workflow to request a new site. (Pull requests welcome!)
11 |
12 | By default, the group the module looks for must have an ID of "GROUP_SITE_CREATORS". The display name can be anything. When you create the group you do not specify "GROUP_"--Alfresco will prepend that for you.
13 |
14 | This add-on also changes the low-level permissions so that even if someone figures out how to create a site without the user interface, the repository tier won't let them do that unless they are in the group.
15 |
16 | Compatibility
17 | -------------
18 |
19 | Old versions of this add-on will work with older versions of Alfresco. Starting with version 0.0.6, you must be running 5.1 or higher.
20 |
21 | Maven
22 | -----
23 | Add the dependencies and overlays to the POM files of your WAR projects.
24 |
25 | For the repository tier, in a project created with the all-in-one archetype, edit repo/pom.xml:
26 |
27 |
28 |
29 | ...
30 |
31 | com.metaversant
32 | share-site-creators-repo
33 | 0.0.7
34 | amp
35 |
36 | ...
37 |
38 |
39 |
40 | ...
41 |
42 | com.metaversant
43 | share-site-creators-repo
44 | amp
45 |
46 | ...
47 |
48 |
49 | For the Share tier, in a project created with the all-in-one archetype, edit share/pom.xml:
50 |
51 |
52 | ...
53 |
54 | com.metaversant
55 | share-site-creators-share
56 | 0.0.7
57 | amp
58 |
59 | ...
60 |
61 |
62 |
63 | ...
64 |
65 | com.metaversant
66 | share-site-creators-share
67 | amp
68 |
69 | ...
70 |
71 |
72 | Manual Installation
73 | -------------------
74 | There are two AMPs associated with this add-on. One is a "repo tier" AMP and the other is a "Share tier" AMP.
75 |
76 | Use `mvn install` to create the AMPs. When running with 5.1.f, you must specify `-Ddependency.surf.version=6.3` when running maven commands for the Share tier AMP.
77 |
78 | ### Install the AMPs
79 |
80 | You can install the AMPs as you normally would using the MMT. For example, to install on a server, you would copy `share-site-creators-repo.amp` to `$ALFRESCO_HOME/amps` and copy `share-site-creators-share.amp` to `$ALFRESCO_HOME/amps_share`, then run `bin/apply_amps.sh`.
81 |
82 | For developers looking to contribute who are running locally, you can use the Maven plug-in to install the AMP by running `mvn alfresco:install -Dmaven.alfresco.warLocation=$TOMCAT_HOME/webapps/alfresco` for the repo AMP and `mvn alfresco:install -Dmaven.alfresco.warLocation=$TOMCAT_HOME/webapps/share` for the Share AMP. If you are not running your Alfresco and Share WARs expanded specify the WAR file path instead of the directory.
83 |
84 | Once the AMPs are deployed, start up Alfresco.
85 |
86 | ### Deploy the Module in Share
87 |
88 | After starting Alfresco with the AMPs deployed, the Share module should be deployed for you automatically. If you can still see "Create Sites" you may need to deploy the module manually. To do so, go to the [Share Module Deployment Console](http://localhost:8080/share/service/modules/deploy) to deploy the module. After you hit "Apply Changes", log out, then log back in. If you don't already have a group created with your username in it, the "Create Site" links should be gone, even if you are an administrator.
89 |
90 | ### Create and Populate the Group
91 |
92 | The SITE_CREATORS group will be created for you automatically. If, for some reason, it does not get created, create a new group with an ID of "GROUP_SITE_CREATORS". You can add individuals and groups to this group. For example, at the very least you will probably want to add ALFRESCO_ADMINISTRATORS to this group.
93 |
94 | Using a Different Group Name
95 | ------------------------
96 | If you want to use a different group it needs to be changed in two places. First, in the repo project, change `src/main/amp/config/alfresco/module/share-site-creators-repo/context/service-context.xml`. Do a search for "GROUP_SITE_CREATORS" and you'll find it.
97 |
98 | Second, you can either change the group when you deploy the module, or in the Share tier project, change the evaluator declaration in `src/main/amp/config/alfresco/web-extension/site-data/site-creators-module-extension.xml`.
99 |
--------------------------------------------------------------------------------
/leiame.md:
--------------------------------------------------------------------------------
1 | share-site-creators
2 | ==============
3 |
4 | Este add-on permite você restringir no Alfresco Share a criação de site para um grupo específico de usuários. Usuários que não estiverem no grupo, não poderão criar site nos links abaixo:
5 |
6 | * Menu dropdown do cabeçalho dos sites
7 | * No dashlet de "Meus sites"
8 | * No Dashlet "bem-vindo"
9 |
10 | No mais, para usuáros que não estiverem no grupo, o texto "boas-vindas" do dashlet muda para explicar o que é um site de compartilhamento, mas não implica que eles têm a capacidade de criar um. Um bom aprimoramento pode ser um link que lança um fluxo de trabalho para solicitar um novo site. (Pull solicitações bem-vindos!)
11 |
12 | Por padrão, deve existir um grupo com um ID de "GROUP_SITE_CREATORS". o nome de exibição pode ser qualquer coisa. Quando você criar um grupo, não precisa especificar "GROUP_", o Alfresco fará isso por você.
13 |
14 | Esse add-on também altera as permissões de baixo nível para que mesmo se alguém descobrir como criar um site sem a interface do usuário, a camada do repositório não permitirá que elas façam isso a menos que estejam no grupo.
15 |
16 | Maven
17 | -----
18 | Adicionar as dependências e sobreposições para os arquivos POM de seu projeto WAR.
19 |
20 | Para a camada de repositório, em um projeto criado com o arquétipo all-in-one, altere o arquivo repo/pom.xml:
21 |
22 |
23 |
24 | ...
25 |
26 | com.metaversant
27 | share-site-creators-repo
28 | 0.0.5
29 | amp
30 |
31 | ...
32 |
33 |
34 |
35 | ...
36 |
37 | com.metaversant
38 | share-site-creators-repo
39 | amp
40 |
41 | ...
42 |
43 |
44 | Para a camada Share, no projeto criado com arquitipo all-in-one, altere o arquivo share/pom.xml:
45 |
46 |
47 | ...
48 |
49 | com.metaversant
50 | share-site-creators-share
51 | 0.0.5
52 | amp
53 |
54 | ...
55 |
56 |
57 |
58 | ...
59 |
60 | com.metaversant
61 | share-site-creators-share
62 | amp
63 |
64 | ...
65 |
66 |
67 | Instalação Manual
68 | -------------------
69 | Existem dois AMPs associados com este add-on. Um é o "repo tier" AMP e o outro é o "Share tier" AMP.
70 |
71 | Para cada um desses dois projetos, use `mvn install` para criar o AMP. Quando estiver usando a versão do Alfresco 5.1.f, você precisa especificar `-Ddependency.surf.version=6.3` no momento de executar os comandos do maven para a camada Share AMP.
72 |
73 | ### Instalando os AMPs
74 |
75 | Você pode instalar os AMPs como você normalmente usaria o MMT. Por exemplo, para instalar no servidor, você copiaria `share-site-creators-repo.amp` para `$ALFRESCO_HOME/amps` e copiaria `share-site-creators-share.amp` to `$ALFRESCO_HOME/amps_share`, depois executar `bin/apply_amps.sh`.
76 |
77 | Para os desenvolvedores que desejam contribuir, que estão executando localmente, poderá usar o plug-in do Maven para instalar o AMP executando `mvn alfresco:install -Dmaven.alfresco.warLocation=$TOMCAT_HOME/webapps/alfresco` para o repo AMP e `mvn alfresco:install -Dmaven.alfresco.warLocation=$TOMCAT_HOME/webapps/share` para o Share AMP. Se você não estiver executando o seu Alfresco e Share WARs expandido especifique o caminho do arquivo WAR em vez do diretório.
78 |
79 | Uma vez que os AMPs estiverem implantados, inicie o Alfresco.
80 |
81 | ### Implantar o módulo no Share
82 |
83 | Depois de iniciar o Alfresco com os AMPs implantados, o módulo Share deve ser implantado automaticamente para você. Se você ainda conseguir ver a opção "Criar Sites" você precisa fazer a implantação dos módulos manualmente. Para fazê-lo, navegue até [Share Module Deployment Console](http://localhost:8080/share/service/modules/deploy) para implantar o módulo. Depois de clicar em "Apply Changes", faça log out, somente então entre novamente. Se você ainda não tiver um grupo criado com seu nome de usuário nele, os links "Criar Site" devem ser eliminados, mesmo se você for um administrador.
84 |
85 | ### Criar e popular o grupo
86 |
87 | O grupo SITE_CREATORS será criado para você automaticamente. Se por alguma razão não for criado, crie um novo grupo com o ID de "GROUP_SITE_CREATORS". Você pode adicionar pessoas e grupos nesse grupo. Por exemplo, provavelmente você vai quere adicionar ALFRESCO_ADMINISTRATORS neste grupo.
88 |
89 | Usando um nome de grupo diferente
90 | ------------------------
91 | Se você quiser usar um nome de grupo diferente, será necessário alterar em dois lugares. Primeiro, no projeto repo, altere `src/main/amp/config/alfresco/module/share-site-creators-repo/context/service-context.xml`. Faça busca por "GROUP_SITE_CREATORS" e você irá encontrálo.
92 |
93 | Segundo, Você pode alterar o grupo quando você implantar o módulo, ou na camada Share do projeto, alterar a declaração do avaliador`src/main/amp/config/alfresco/web-extension/site-data/site-creators-module-extension.xml`.
94 |
--------------------------------------------------------------------------------
/integration-tests/src/test/resources/alfresco/extension/dev-log4j.properties:
--------------------------------------------------------------------------------
1 | # Set root logger level to error
2 | log4j.rootLogger=error, Console, File
3 |
4 |
5 | # All outputs currently set to be a ConsoleAppender.
6 | log4j.appender.Console=org.apache.log4j.ConsoleAppender
7 | log4j.appender.Console.layout=org.apache.log4j.PatternLayout
8 |
9 | # use log4j NDC to replace %x with tenant domain / username
10 | log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n
11 | #log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
12 |
13 | log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
14 | log4j.appender.File.File=alfresco.log
15 | log4j.appender.File.Append=true
16 | log4j.appender.File.DatePattern='.'yyyy-MM-dd
17 | log4j.appender.File.layout=org.apache.log4j.PatternLayout
18 | log4j.appender.File.layout.ConversionPattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %m%n
19 |
20 | #log4j.appender.file=org.apache.log4j.FileAppender
21 | #log4j.appender.file.File=hibernate.log
22 | #log4j.appender.file.layout=org.apache.log4j.PatternLayout
23 | #log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
24 |
25 |
26 | # Commented-in loggers will be exposed as JMX MBeans (refer to org.alfresco.repo.admin.Log4JHierarchyInit)
27 | # Hence, generally useful loggers should be listed with at least ERROR level to allow simple runtime
28 | # control of the level via a suitable JMX Console. Also, any other loggers can be added transiently via
29 | # Log4j addLoggerMBean as long as the logger exists and has been loaded.
30 |
31 | # Hibernate
32 | log4j.logger.org.hibernate=error
33 | log4j.logger.org.hibernate.util.JDBCExceptionReporter=fatal
34 | log4j.logger.org.hibernate.event.def.AbstractFlushingEventListener=fatal
35 | log4j.logger.org.hibernate.type=warn
36 | log4j.logger.org.hibernate.cfg.SettingsFactory=warn
37 |
38 | # Spring
39 | log4j.logger.org.springframework=warn
40 | # Turn off Spring remoting warnings that should really be info or debug.
41 | log4j.logger.org.springframework.remoting.support=error
42 | log4j.logger.org.springframework.util=error
43 |
44 | # Axis/WSS4J
45 | log4j.logger.org.apache.axis=info
46 | log4j.logger.org.apache.ws=info
47 |
48 | # CXF
49 | log4j.logger.org.apache.cxf=error
50 |
51 | # MyFaces
52 | log4j.logger.org.apache.myfaces.util.DebugUtils=info
53 | log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error
54 | log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error
55 | log4j.logger.org.apache.myfaces.taglib=error
56 |
57 | # OpenOfficeConnection
58 | log4j.logger.net.sf.jooreports.openoffice.connection=fatal
59 |
60 | # log prepared statement cache activity log4j.logger.org.hibernate.ps.PreparedStatementCache=info
61 |
62 | # Alfresco
63 | log4j.logger.org.alfresco=error
64 | log4j.logger.org.alfresco.repo.admin=info
65 | log4j.logger.org.alfresco.repo.transaction=warn
66 | log4j.logger.org.alfresco.repo.cache.TransactionalCache=warn
67 | log4j.logger.org.alfresco.repo.model.filefolder=warn
68 | log4j.logger.org.alfresco.repo.tenant=info
69 | log4j.logger.org.alfresco.config=warn
70 | log4j.logger.org.alfresco.config.JndiObjectFactoryBean=warn
71 | log4j.logger.org.alfresco.config.JBossEnabledWebApplicationContext=warn
72 | log4j.logger.org.alfresco.repo.management.subsystems=warn
73 | log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory=info
74 | log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ChildApplicationContext=warn
75 | log4j.logger.org.alfresco.repo.security.sync=info
76 | log4j.logger.org.alfresco.repo.security.person=info
77 |
78 | log4j.logger.org.alfresco.sample=info
79 | log4j.logger.org.alfresco.web=info
80 | #log4j.logger.org.alfresco.web.app.AlfrescoNavigationHandler=debug
81 | #log4j.logger.org.alfresco.web.ui.repo.component.UIActions=debug
82 | #log4j.logger.org.alfresco.web.ui.repo.tag.PageTag=debug
83 | #log4j.logger.org.alfresco.web.bean.clipboard=debug
84 | log4j.logger.org.alfresco.service.descriptor.DescriptorService=info
85 | #log4j.logger.org.alfresco.web.page=debug
86 |
87 | log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=error
88 | #log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=info
89 |
90 | log4j.logger.org.alfresco.repo.admin.patch.PatchExecuter=info
91 | log4j.logger.org.alfresco.repo.domain.patch.ibatis.PatchDAOImpl=info
92 |
93 | # Specific patches
94 | log4j.logger.org.alfresco.repo.admin.patch.impl.DeploymentMigrationPatch=info
95 | log4j.logger.org.alfresco.repo.version.VersionMigrator=info
96 |
97 | log4j.logger.org.alfresco.repo.module.ModuleServiceImpl=info
98 | log4j.logger.org.alfresco.repo.domain.schema.SchemaBootstrap=info
99 | log4j.logger.org.alfresco.repo.admin.ConfigurationChecker=info
100 | log4j.logger.org.alfresco.repo.node.index.AbstractReindexComponent=warn
101 | log4j.logger.org.alfresco.repo.node.index.IndexTransactionTracker=warn
102 | log4j.logger.org.alfresco.repo.node.index.FullIndexRecoveryComponent=info
103 | log4j.logger.org.alfresco.util.OpenOfficeConnectionTester=info
104 | log4j.logger.org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl=warn
105 | log4j.logger.org.alfresco.repo.domain.hibernate.DirtySessionMethodInterceptor=warn
106 | log4j.logger.org.alfresco.repo.transaction.RetryingTransactionHelper=warn
107 | log4j.logger.org.alfresco.util.transaction.SpringAwareUserTransaction.trace=warn
108 | log4j.logger.org.alfresco.util.AbstractTriggerBean=warn
109 | log4j.logger.org.alfresco.enterprise.repo.cluster=info
110 | log4j.logger.org.alfresco.repo.version.Version2ServiceImpl=warn
111 |
112 | #log4j.logger.org.alfresco.web.app.DebugPhaseListener=debug
113 | log4j.logger.org.alfresco.repo.node.db.NodeStringLengthWorker=info
114 |
115 | log4j.logger.org.alfresco.repo.workflow=info
116 |
117 | # CIFS server debugging
118 | log4j.logger.org.alfresco.smb.protocol=error
119 | #log4j.logger.org.alfresco.smb.protocol.auth=debug
120 | #log4j.logger.org.alfresco.acegi=debug
121 |
122 | # FTP server debugging
123 | log4j.logger.org.alfresco.ftp.protocol=error
124 | #log4j.logger.org.alfresco.ftp.server=debug
125 |
126 | # WebDAV debugging
127 | #log4j.logger.org.alfresco.webdav.protocol=debug
128 | log4j.logger.org.alfresco.webdav.protocol=info
129 |
130 | # NTLM servlet filters
131 | #log4j.logger.org.alfresco.web.app.servlet.NTLMAuthenticationFilter=debug
132 | #log4j.logger.org.alfresco.repo.webdav.auth.NTLMAuthenticationFilter=debug
133 |
134 | # Kerberos servlet filters
135 | #log4j.logger.org.alfresco.web.app.servlet.KerberosAuthenticationFilter=debug
136 | #log4j.logger.org.alfresco.repo.webdav.auth.KerberosAuthenticationFilter=debug
137 |
138 | # File servers
139 | log4j.logger.org.alfresco.fileserver=warn
140 |
141 | # Repo filesystem debug logging
142 | #log4j.logger.org.alfresco.filesys.repo.ContentDiskDriver=debug
143 |
144 | # Integrity message threshold - if 'failOnViolation' is off, then WARNINGS are generated
145 | log4j.logger.org.alfresco.repo.node.integrity=ERROR
146 |
147 | # Indexer debugging
148 | log4j.logger.org.alfresco.repo.search.Indexer=error
149 | #log4j.logger.org.alfresco.repo.search.Indexer=debug
150 |
151 | log4j.logger.org.alfresco.repo.search.impl.lucene.index=error
152 | log4j.logger.org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl=warn
153 | #log4j.logger.org.alfresco.repo.search.impl.lucene.index=DEBUG
154 |
155 | # Audit debugging
156 | # log4j.logger.org.alfresco.repo.audit=DEBUG
157 | # log4j.logger.org.alfresco.repo.audit.model=DEBUG
158 |
159 | # Property sheet and modelling debugging
160 | # change to error to hide the warnings about missing properties and associations
161 | log4j.logger.alfresco.missingProperties=warn
162 |
163 | # Dictionary/Model debugging
164 | log4j.logger.org.alfresco.repo.dictionary=warn
165 | log4j.logger.org.alfresco.repo.dictionary.types.period=warn
166 |
167 | # Virtualization Server Registry
168 | log4j.logger.org.alfresco.mbeans.VirtServerRegistry=error
169 |
170 | # Spring context runtime property setter
171 | log4j.logger.org.alfresco.util.RuntimeSystemPropertiesSetter=info
172 |
173 | # Debugging options for clustering
174 | log4j.logger.org.alfresco.repo.content.ReplicatingContentStore=error
175 | log4j.logger.org.alfresco.repo.content.replication=error
176 |
177 | #log4j.logger.org.alfresco.repo.deploy.DeploymentServiceImpl=debug
178 |
179 | # Activity service
180 | log4j.logger.org.alfresco.repo.activities=warn
181 |
182 | # User usage tracking
183 | log4j.logger.org.alfresco.repo.usage=info
184 |
185 | # Sharepoint
186 | log4j.logger.org.alfresco.module.vti=info
187 |
188 | # Forms Engine
189 | log4j.logger.org.alfresco.web.config.forms=info
190 | log4j.logger.org.alfresco.web.scripts.forms=info
191 |
192 | # CMIS
193 | log4j.logger.org.alfresco.opencmis=error
194 | log4j.logger.org.alfresco.opencmis.AlfrescoCmisServiceInterceptor=error
195 | log4j.logger.org.alfresco.cmis=error
196 | log4j.logger.org.alfresco.cmis.dictionary=warn
197 | log4j.logger.org.apache.chemistry.opencmis=info
198 | log4j.logger.org.apache.chemistry.opencmis.server.impl.browser.CmisBrowserBindingServlet=OFF
199 | log4j.logger.org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet=OFF
200 |
201 | # IMAP
202 | log4j.logger.org.alfresco.repo.imap=info
203 |
204 | # JBPM
205 | # Note: non-fatal errors (eg. logged during job execution) should be handled by Alfresco's retrying transaction handler
206 | log4j.logger.org.jbpm.graph.def.GraphElement=fatal
207 |
208 | #log4j.logger.org.alfresco.repo.googledocs=debug
209 |
210 |
211 | # Web Framework
212 | log4j.logger.org.springframework.extensions.webscripts=info
213 | log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=warn
214 | log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=off
215 |
216 | # Repository
217 | log4j.logger.org.alfresco.repo.web.scripts=warn
218 | log4j.logger.org.alfresco.repo.web.scripts.BaseWebScriptTest=info
219 | log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=off
220 | log4j.logger.org.alfresco.repo.jscript=error
221 | log4j.logger.org.alfresco.repo.jscript.ScriptLogger=warn
222 | log4j.logger.org.alfresco.repo.cmis.rest.CMISTest=info
223 |
224 | log4j.logger.org.alfresco.repo.domain.schema.script.ScriptBundleExecutorImpl=off
225 | log4j.logger.org.alfresco.repo.domain.schema.script.ScriptExecutorImpl=info
226 |
227 | log4j.logger.org.alfresco.repo.search.impl.solr.facet.SolrFacetServiceImpl=info
228 |
229 | # Bulk Filesystem Import Tool
230 | log4j.logger.org.alfresco.repo.bulkimport=warn
231 |
232 | # Freemarker
233 | # Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler
234 | log4j.logger.freemarker.runtime=
235 |
236 | # Metadata extraction
237 | log4j.logger.org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter=warn
238 |
239 | # Reduces PDFont error level due to ALF-7105
240 | log4j.logger.org.apache.pdfbox.pdmodel.font.PDSimpleFont=fatal
241 | log4j.logger.org.apache.pdfbox.pdmodel.font.PDFont=fatal
242 | log4j.logger.org.apache.pdfbox.pdmodel.font.PDCIDFont=fatal
243 |
244 | # no index support
245 | log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexIndexer=fatal
246 | log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexSearchService=fatal
247 |
248 | # lucene index warnings
249 | log4j.logger.org.alfresco.repo.search.impl.lucene.index.IndexInfo=warn
250 |
251 | # Warn about RMI socket bind retries.
252 | log4j.logger.org.alfresco.util.remote.server.socket.HostConfigurableSocketFactory=warn
253 |
254 | log4j.logger.org.alfresco.repo.usage.RepoUsageMonitor=info
255 |
256 | # Authorization
257 | log4j.logger.org.alfresco.enterprise.repo.authorization.AuthorizationService=info
258 | log4j.logger.org.alfresco.enterprise.repo.authorization.AuthorizationsConsistencyMonitor=warn
259 |
260 |
261 |
262 |
263 |
264 |
--------------------------------------------------------------------------------
/share-site-creators-repo/src/test/resources/log4j.properties:
--------------------------------------------------------------------------------
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.demoamp.test=DEBUG
--------------------------------------------------------------------------------
/share-site-creators-share/src/test/resources/log4j.properties:
--------------------------------------------------------------------------------
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.demoamp.test=DEBUG
--------------------------------------------------------------------------------
/src/test/resources/alfresco/extension/dev-log4j.properties:
--------------------------------------------------------------------------------
1 | # Set root logger level to error
2 | log4j.rootLogger=error, Console, File
3 |
4 |
5 | # All outputs currently set to be a ConsoleAppender.
6 | log4j.appender.Console=org.apache.log4j.ConsoleAppender
7 | log4j.appender.Console.layout=org.apache.log4j.PatternLayout
8 |
9 | # use log4j NDC to replace %x with tenant domain / username
10 | log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n
11 | #log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
12 |
13 | log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
14 | log4j.appender.File.File=alfresco.log
15 | log4j.appender.File.Append=true
16 | log4j.appender.File.DatePattern='.'yyyy-MM-dd
17 | log4j.appender.File.layout=org.apache.log4j.PatternLayout
18 | log4j.appender.File.layout.ConversionPattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %m%n
19 |
20 | #log4j.appender.file=org.apache.log4j.FileAppender
21 | #log4j.appender.file.File=hibernate.log
22 | #log4j.appender.file.layout=org.apache.log4j.PatternLayout
23 | #log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
24 |
25 |
26 | # Commented-in loggers will be exposed as JMX MBeans (refer to org.alfresco.repo.admin.Log4JHierarchyInit)
27 | # Hence, generally useful loggers should be listed with at least ERROR level to allow simple runtime
28 | # control of the level via a suitable JMX Console. Also, any other loggers can be added transiently via
29 | # Log4j addLoggerMBean as long as the logger exists and has been loaded.
30 |
31 | # Hibernate
32 | log4j.logger.org.hibernate=error
33 | log4j.logger.org.hibernate.util.JDBCExceptionReporter=fatal
34 | log4j.logger.org.hibernate.event.def.AbstractFlushingEventListener=fatal
35 | log4j.logger.org.hibernate.type=warn
36 | log4j.logger.org.hibernate.cfg.SettingsFactory=warn
37 |
38 | # Spring
39 | log4j.logger.org.springframework=warn
40 | # Turn off Spring remoting warnings that should really be info or debug.
41 | log4j.logger.org.springframework.remoting.support=error
42 | log4j.logger.org.springframework.util=error
43 |
44 | # Axis/WSS4J
45 | log4j.logger.org.apache.axis=info
46 | log4j.logger.org.apache.ws=info
47 |
48 | # CXF
49 | log4j.logger.org.apache.cxf=error
50 |
51 | # MyFaces
52 | log4j.logger.org.apache.myfaces.util.DebugUtils=info
53 | log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error
54 | log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error
55 | log4j.logger.org.apache.myfaces.taglib=error
56 |
57 | # OpenOfficeConnection
58 | log4j.logger.net.sf.jooreports.openoffice.connection=fatal
59 |
60 | # log prepared statement cache activity log4j.logger.org.hibernate.ps.PreparedStatementCache=info
61 |
62 | # Alfresco
63 | log4j.logger.org.alfresco=error
64 | log4j.logger.org.alfresco.repo.admin=info
65 | log4j.logger.org.alfresco.repo.transaction=warn
66 | log4j.logger.org.alfresco.repo.cache.TransactionalCache=warn
67 | log4j.logger.org.alfresco.repo.model.filefolder=warn
68 | log4j.logger.org.alfresco.repo.tenant=info
69 | log4j.logger.org.alfresco.config=warn
70 | log4j.logger.org.alfresco.config.JndiObjectFactoryBean=warn
71 | log4j.logger.org.alfresco.config.JBossEnabledWebApplicationContext=warn
72 | log4j.logger.org.alfresco.repo.management.subsystems=warn
73 | log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory=info
74 | log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ChildApplicationContext=warn
75 | log4j.logger.org.alfresco.repo.security.sync=info
76 | log4j.logger.org.alfresco.repo.security.person=info
77 |
78 | log4j.logger.org.alfresco.sample=info
79 | log4j.logger.org.alfresco.web=info
80 | #log4j.logger.org.alfresco.web.app.AlfrescoNavigationHandler=debug
81 | #log4j.logger.org.alfresco.web.ui.repo.component.UIActions=debug
82 | #log4j.logger.org.alfresco.web.ui.repo.tag.PageTag=debug
83 | #log4j.logger.org.alfresco.web.bean.clipboard=debug
84 | log4j.logger.org.alfresco.service.descriptor.DescriptorService=info
85 | #log4j.logger.org.alfresco.web.page=debug
86 |
87 | log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=error
88 | #log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=info
89 |
90 | log4j.logger.org.alfresco.repo.admin.patch.PatchExecuter=info
91 | log4j.logger.org.alfresco.repo.domain.patch.ibatis.PatchDAOImpl=info
92 |
93 | # Specific patches
94 | log4j.logger.org.alfresco.repo.admin.patch.impl.DeploymentMigrationPatch=info
95 | log4j.logger.org.alfresco.repo.version.VersionMigrator=info
96 |
97 | log4j.logger.org.alfresco.repo.module.ModuleServiceImpl=info
98 | log4j.logger.org.alfresco.repo.domain.schema.SchemaBootstrap=info
99 | log4j.logger.org.alfresco.repo.admin.ConfigurationChecker=info
100 | log4j.logger.org.alfresco.repo.node.index.AbstractReindexComponent=warn
101 | log4j.logger.org.alfresco.repo.node.index.IndexTransactionTracker=warn
102 | log4j.logger.org.alfresco.repo.node.index.FullIndexRecoveryComponent=info
103 | log4j.logger.org.alfresco.util.OpenOfficeConnectionTester=info
104 | log4j.logger.org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl=warn
105 | log4j.logger.org.alfresco.repo.domain.hibernate.DirtySessionMethodInterceptor=warn
106 | log4j.logger.org.alfresco.repo.transaction.RetryingTransactionHelper=warn
107 | log4j.logger.org.alfresco.util.transaction.SpringAwareUserTransaction.trace=warn
108 | log4j.logger.org.alfresco.util.AbstractTriggerBean=warn
109 | log4j.logger.org.alfresco.enterprise.repo.cluster=info
110 | log4j.logger.org.alfresco.repo.version.Version2ServiceImpl=warn
111 |
112 | #log4j.logger.org.alfresco.web.app.DebugPhaseListener=debug
113 | log4j.logger.org.alfresco.repo.node.db.NodeStringLengthWorker=info
114 |
115 | log4j.logger.org.alfresco.repo.workflow=info
116 |
117 | # CIFS server debugging
118 | log4j.logger.org.alfresco.smb.protocol=error
119 | #log4j.logger.org.alfresco.smb.protocol.auth=debug
120 | #log4j.logger.org.alfresco.acegi=debug
121 |
122 | # FTP server debugging
123 | log4j.logger.org.alfresco.ftp.protocol=error
124 | #log4j.logger.org.alfresco.ftp.server=debug
125 |
126 | # WebDAV debugging
127 | #log4j.logger.org.alfresco.webdav.protocol=debug
128 | log4j.logger.org.alfresco.webdav.protocol=info
129 |
130 | # NTLM servlet filters
131 | #log4j.logger.org.alfresco.web.app.servlet.NTLMAuthenticationFilter=debug
132 | #log4j.logger.org.alfresco.repo.webdav.auth.NTLMAuthenticationFilter=debug
133 |
134 | # Kerberos servlet filters
135 | #log4j.logger.org.alfresco.web.app.servlet.KerberosAuthenticationFilter=debug
136 | #log4j.logger.org.alfresco.repo.webdav.auth.KerberosAuthenticationFilter=debug
137 |
138 | # File servers
139 | log4j.logger.org.alfresco.fileserver=warn
140 |
141 | # Repo filesystem debug logging
142 | #log4j.logger.org.alfresco.filesys.repo.ContentDiskDriver=debug
143 |
144 | # Integrity message threshold - if 'failOnViolation' is off, then WARNINGS are generated
145 | log4j.logger.org.alfresco.repo.node.integrity=ERROR
146 |
147 | # Indexer debugging
148 | log4j.logger.org.alfresco.repo.search.Indexer=error
149 | #log4j.logger.org.alfresco.repo.search.Indexer=debug
150 |
151 | log4j.logger.org.alfresco.repo.search.impl.lucene.index=error
152 | log4j.logger.org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl=warn
153 | #log4j.logger.org.alfresco.repo.search.impl.lucene.index=DEBUG
154 |
155 | # Audit debugging
156 | # log4j.logger.org.alfresco.repo.audit=DEBUG
157 | # log4j.logger.org.alfresco.repo.audit.model=DEBUG
158 |
159 | # Property sheet and modelling debugging
160 | # change to error to hide the warnings about missing properties and associations
161 | log4j.logger.alfresco.missingProperties=warn
162 |
163 | # Dictionary/Model debugging
164 | log4j.logger.org.alfresco.repo.dictionary=warn
165 | log4j.logger.org.alfresco.repo.dictionary.types.period=warn
166 |
167 | # Virtualization Server Registry
168 | log4j.logger.org.alfresco.mbeans.VirtServerRegistry=error
169 |
170 | # Spring context runtime property setter
171 | log4j.logger.org.alfresco.util.RuntimeSystemPropertiesSetter=info
172 |
173 | # Debugging options for clustering
174 | log4j.logger.org.alfresco.repo.content.ReplicatingContentStore=error
175 | log4j.logger.org.alfresco.repo.content.replication=error
176 |
177 | #log4j.logger.org.alfresco.repo.deploy.DeploymentServiceImpl=debug
178 |
179 | # Activity service
180 | log4j.logger.org.alfresco.repo.activities=warn
181 |
182 | # User usage tracking
183 | log4j.logger.org.alfresco.repo.usage=info
184 |
185 | # Sharepoint
186 | log4j.logger.org.alfresco.module.vti=info
187 |
188 | # Forms Engine
189 | log4j.logger.org.alfresco.web.config.forms=info
190 | log4j.logger.org.alfresco.web.scripts.forms=info
191 |
192 | # CMIS
193 | log4j.logger.org.alfresco.opencmis=error
194 | log4j.logger.org.alfresco.opencmis.AlfrescoCmisServiceInterceptor=error
195 | log4j.logger.org.alfresco.cmis=error
196 | log4j.logger.org.alfresco.cmis.dictionary=warn
197 | log4j.logger.org.apache.chemistry.opencmis=info
198 | log4j.logger.org.apache.chemistry.opencmis.server.impl.browser.CmisBrowserBindingServlet=OFF
199 | log4j.logger.org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet=OFF
200 |
201 | # IMAP
202 | log4j.logger.org.alfresco.repo.imap=info
203 |
204 | # JBPM
205 | # Note: non-fatal errors (eg. logged during job execution) should be handled by Alfresco's retrying transaction handler
206 | log4j.logger.org.jbpm.graph.def.GraphElement=fatal
207 |
208 | #log4j.logger.org.alfresco.repo.googledocs=debug
209 |
210 |
211 | # Web Framework
212 | log4j.logger.org.springframework.extensions.webscripts=info
213 | log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=warn
214 | log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=off
215 |
216 | # Repository
217 | log4j.logger.org.alfresco.repo.web.scripts=warn
218 | log4j.logger.org.alfresco.repo.web.scripts.BaseWebScriptTest=info
219 | log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=off
220 | log4j.logger.org.alfresco.repo.jscript=error
221 | log4j.logger.org.alfresco.repo.jscript.ScriptLogger=warn
222 | log4j.logger.org.alfresco.repo.cmis.rest.CMISTest=info
223 |
224 | log4j.logger.org.alfresco.repo.domain.schema.script.ScriptBundleExecutorImpl=off
225 | log4j.logger.org.alfresco.repo.domain.schema.script.ScriptExecutorImpl=info
226 |
227 | log4j.logger.org.alfresco.repo.search.impl.solr.facet.SolrFacetServiceImpl=info
228 |
229 | # Bulk Filesystem Import Tool
230 | log4j.logger.org.alfresco.repo.bulkimport=warn
231 |
232 | # Freemarker
233 | # Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler
234 | log4j.logger.freemarker.runtime=
235 |
236 | # Metadata extraction
237 | log4j.logger.org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter=warn
238 |
239 | # Reduces PDFont error level due to ALF-7105
240 | log4j.logger.org.apache.pdfbox.pdmodel.font.PDSimpleFont=fatal
241 | log4j.logger.org.apache.pdfbox.pdmodel.font.PDFont=fatal
242 | log4j.logger.org.apache.pdfbox.pdmodel.font.PDCIDFont=fatal
243 |
244 | # no index support
245 | log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexIndexer=fatal
246 | log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexSearchService=fatal
247 |
248 | # lucene index warnings
249 | log4j.logger.org.alfresco.repo.search.impl.lucene.index.IndexInfo=warn
250 |
251 | # Warn about RMI socket bind retries.
252 | log4j.logger.org.alfresco.util.remote.server.socket.HostConfigurableSocketFactory=warn
253 |
254 | log4j.logger.org.alfresco.repo.usage.RepoUsageMonitor=info
255 |
256 | # Authorization
257 | log4j.logger.org.alfresco.enterprise.repo.authorization.AuthorizationService=info
258 | log4j.logger.org.alfresco.enterprise.repo.authorization.AuthorizationsConsistencyMonitor=warn
259 |
260 | #-----------------------------------------------------------------------
261 | # Platform module logging
262 | #-----------------------------------------------------------------------
263 | log4j.logger.com.metaversant.platformsample.DemoComponent=debug
264 | log4j.logger.com.metaversant.platformsample.HelloWorldWebScript=debug
265 |
266 |
267 |
268 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 |
2 | Apache License
3 | Version 2.0, January 2004
4 | http://www.apache.org/licenses/
5 |
6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7 |
8 | 1. Definitions.
9 |
10 | "License" shall mean the terms and conditions for use, reproduction,
11 | and distribution as defined by Sections 1 through 9 of this document.
12 |
13 | "Licensor" shall mean the copyright owner or entity authorized by
14 | the copyright owner that is granting the License.
15 |
16 | "Legal Entity" shall mean the union of the acting entity and all
17 | other entities that control, are controlled by, or are under common
18 | control with that entity. For the purposes of this definition,
19 | "control" means (i) the power, direct or indirect, to cause the
20 | direction or management of such entity, whether by contract or
21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
22 | outstanding shares, or (iii) beneficial ownership of such entity.
23 |
24 | "You" (or "Your") shall mean an individual or Legal Entity
25 | exercising permissions granted by this License.
26 |
27 | "Source" form shall mean the preferred form for making modifications,
28 | including but not limited to software source code, documentation
29 | source, and configuration files.
30 |
31 | "Object" form shall mean any form resulting from mechanical
32 | transformation or translation of a Source form, including but
33 | not limited to compiled object code, generated documentation,
34 | and conversions to other media types.
35 |
36 | "Work" shall mean the work of authorship, whether in Source or
37 | Object form, made available under the License, as indicated by a
38 | copyright notice that is included in or attached to the work
39 | (an example is provided in the Appendix below).
40 |
41 | "Derivative Works" shall mean any work, whether in Source or Object
42 | form, that is based on (or derived from) the Work and for which the
43 | editorial revisions, annotations, elaborations, or other modifications
44 | represent, as a whole, an original work of authorship. For the purposes
45 | of this License, Derivative Works shall not include works that remain
46 | separable from, or merely link (or bind by name) to the interfaces of,
47 | the Work and Derivative Works thereof.
48 |
49 | "Contribution" shall mean any work of authorship, including
50 | the original version of the Work and any modifications or additions
51 | to that Work or Derivative Works thereof, that is intentionally
52 | submitted to Licensor for inclusion in the Work by the copyright owner
53 | or by an individual or Legal Entity authorized to submit on behalf of
54 | the copyright owner. For the purposes of this definition, "submitted"
55 | means any form of electronic, verbal, or written communication sent
56 | to the Licensor or its representatives, including but not limited to
57 | communication on electronic mailing lists, source code control systems,
58 | and issue tracking systems that are managed by, or on behalf of, the
59 | Licensor for the purpose of discussing and improving the Work, but
60 | excluding communication that is conspicuously marked or otherwise
61 | designated in writing by the copyright owner as "Not a Contribution."
62 |
63 | "Contributor" shall mean Licensor and any individual or Legal Entity
64 | on behalf of whom a Contribution has been received by Licensor and
65 | subsequently incorporated within the Work.
66 |
67 | 2. Grant of Copyright License. Subject to the terms and conditions of
68 | this License, each Contributor hereby grants to You a perpetual,
69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70 | copyright license to reproduce, prepare Derivative Works of,
71 | publicly display, publicly perform, sublicense, and distribute the
72 | Work and such Derivative Works in Source or Object form.
73 |
74 | 3. Grant of Patent License. Subject to the terms and conditions of
75 | this License, each Contributor hereby grants to You a perpetual,
76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77 | (except as stated in this section) patent license to make, have made,
78 | use, offer to sell, sell, import, and otherwise transfer the Work,
79 | where such license applies only to those patent claims licensable
80 | by such Contributor that are necessarily infringed by their
81 | Contribution(s) alone or by combination of their Contribution(s)
82 | with the Work to which such Contribution(s) was submitted. If You
83 | institute patent litigation against any entity (including a
84 | cross-claim or counterclaim in a lawsuit) alleging that the Work
85 | or a Contribution incorporated within the Work constitutes direct
86 | or contributory patent infringement, then any patent licenses
87 | granted to You under this License for that Work shall terminate
88 | as of the date such litigation is filed.
89 |
90 | 4. Redistribution. You may reproduce and distribute copies of the
91 | Work or Derivative Works thereof in any medium, with or without
92 | modifications, and in Source or Object form, provided that You
93 | meet the following conditions:
94 |
95 | (a) You must give any other recipients of the Work or
96 | Derivative Works a copy of this License; and
97 |
98 | (b) You must cause any modified files to carry prominent notices
99 | stating that You changed the files; and
100 |
101 | (c) You must retain, in the Source form of any Derivative Works
102 | that You distribute, all copyright, patent, trademark, and
103 | attribution notices from the Source form of the Work,
104 | excluding those notices that do not pertain to any part of
105 | the Derivative Works; and
106 |
107 | (d) If the Work includes a "NOTICE" text file as part of its
108 | distribution, then any Derivative Works that You distribute must
109 | include a readable copy of the attribution notices contained
110 | within such NOTICE file, excluding those notices that do not
111 | pertain to any part of the Derivative Works, in at least one
112 | of the following places: within a NOTICE text file distributed
113 | as part of the Derivative Works; within the Source form or
114 | documentation, if provided along with the Derivative Works; or,
115 | within a display generated by the Derivative Works, if and
116 | wherever such third-party notices normally appear. The contents
117 | of the NOTICE file are for informational purposes only and
118 | do not modify the License. You may add Your own attribution
119 | notices within Derivative Works that You distribute, alongside
120 | or as an addendum to the NOTICE text from the Work, provided
121 | that such additional attribution notices cannot be construed
122 | as modifying the License.
123 |
124 | You may add Your own copyright statement to Your modifications and
125 | may provide additional or different license terms and conditions
126 | for use, reproduction, or distribution of Your modifications, or
127 | for any such Derivative Works as a whole, provided Your use,
128 | reproduction, and distribution of the Work otherwise complies with
129 | the conditions stated in this License.
130 |
131 | 5. Submission of Contributions. Unless You explicitly state otherwise,
132 | any Contribution intentionally submitted for inclusion in the Work
133 | by You to the Licensor shall be under the terms and conditions of
134 | this License, without any additional terms or conditions.
135 | Notwithstanding the above, nothing herein shall supersede or modify
136 | the terms of any separate license agreement you may have executed
137 | with Licensor regarding such Contributions.
138 |
139 | 6. Trademarks. This License does not grant permission to use the trade
140 | names, trademarks, service marks, or product names of the Licensor,
141 | except as required for reasonable and customary use in describing the
142 | origin of the Work and reproducing the content of the NOTICE file.
143 |
144 | 7. Disclaimer of Warranty. Unless required by applicable law or
145 | agreed to in writing, Licensor provides the Work (and each
146 | Contributor provides its Contributions) on an "AS IS" BASIS,
147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148 | implied, including, without limitation, any warranties or conditions
149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150 | PARTICULAR PURPOSE. You are solely responsible for determining the
151 | appropriateness of using or redistributing the Work and assume any
152 | risks associated with Your exercise of permissions under this License.
153 |
154 | 8. Limitation of Liability. In no event and under no legal theory,
155 | whether in tort (including negligence), contract, or otherwise,
156 | unless required by applicable law (such as deliberate and grossly
157 | negligent acts) or agreed to in writing, shall any Contributor be
158 | liable to You for damages, including any direct, indirect, special,
159 | incidental, or consequential damages of any character arising as a
160 | result of this License or out of the use or inability to use the
161 | Work (including but not limited to damages for loss of goodwill,
162 | work stoppage, computer failure or malfunction, or any and all
163 | other commercial damages or losses), even if such Contributor
164 | has been advised of the possibility of such damages.
165 |
166 | 9. Accepting Warranty or Additional Liability. While redistributing
167 | the Work or Derivative Works thereof, You may choose to offer,
168 | and charge a fee for, acceptance of support, warranty, indemnity,
169 | or other liability obligations and/or rights consistent with this
170 | License. However, in accepting such obligations, You may act only
171 | on Your own behalf and on Your sole responsibility, not on behalf
172 | of any other Contributor, and only if You agree to indemnify,
173 | defend, and hold each Contributor harmless for any liability
174 | incurred by, or claims asserted against, such Contributor by reason
175 | of your accepting any such warranty or additional liability.
176 |
177 | END OF TERMS AND CONDITIONS
178 |
179 | APPENDIX: How to apply the Apache License to your work.
180 |
181 | To apply the Apache License to your work, attach the following
182 | boilerplate notice, with the fields enclosed by brackets "[]"
183 | replaced with your own identifying information. (Don't include
184 | the brackets!) The text should be enclosed in the appropriate
185 | comment syntax for the file format. We also recommend that a
186 | file or class name and description of purpose be included on the
187 | same "printed page" as the copyright notice for easier
188 | identification within third-party archives.
189 |
190 | Copyright [yyyy] [name of copyright owner]
191 |
192 | Licensed under the Apache License, Version 2.0 (the "License");
193 | you may not use this file except in compliance with the License.
194 | You may obtain a copy of the License at
195 |
196 | http://www.apache.org/licenses/LICENSE-2.0
197 |
198 | Unless required by applicable law or agreed to in writing, software
199 | distributed under the License is distributed on an "AS IS" BASIS,
200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201 | See the License for the specific language governing permissions and
202 | limitations under the License.
203 |
204 |
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | 4.0.0
5 | com.metaversant
6 | share-site-creators
7 | 0.0.8-SNAPSHOT
8 | pom
9 |
10 | Share Site Creators
11 | Changes the permissions so that only members of a specific group can create sites.
12 | https://github.com/jpotts/share-site-creators
13 |
14 |
15 |
16 | The Apache License, Version 2.0
17 | http://www.apache.org/licenses/LICENSE-2.0.txt
18 |
19 |
20 |
21 |
22 |
23 | Jeff Potts
24 | info@metaversant.com
25 | Metaversant Group, Inc.
26 | http://www.metaversant.com
27 |
28 |
29 |
30 |
31 | scm:git:git://github.com/jpotts/share-site-creators.git
32 | scm:git:ssh://github.com:jpotts/share-site-creators.git
33 | http://github.com/jpotts/share-site-creators/tree/master
34 |
35 |
36 |
37 | https://oss.sonatype.org/content/repositories/snapshots/
38 |
39 | 3.0.1
40 |
41 | UTF-8
42 |
43 |
49 | ${session.executionRootDirectory}/alf_data_dev
50 |
51 |
52 | ${alfresco.data.location}/solr
53 | ${solr.home}/alfrescoModels
54 | ${solr.home}/index
55 |
56 |
57 | org.alfresco
58 |
59 |
62 | 5.2.g
63 | 5.2.f
64 |
65 |
66 | community
67 |
68 |
69 | 6.11
70 |
71 |
72 | 1.1.6
73 |
74 |
76 | local
77 |
78 |
79 | 1.7
80 | 1.7
81 |
82 |
83 |
84 | share-site-creators-repo
85 | share-site-creators-share
86 | integration-tests
87 |
88 |
89 |
90 |
91 | ossrh
92 | https://oss.sonatype.org/content/repositories/snapshots
93 |
94 |
95 |
96 |
97 |
98 |
99 | alfresco-public
100 | https://artifacts.alfresco.com/nexus/content/groups/public
101 |
102 |
103 | alfresco-public-snapshots
104 | https://artifacts.alfresco.com/nexus/content/groups/public-snapshots
105 |
106 | true
107 | daily
108 |
109 |
110 |
111 |
112 | alfresco-private-repository
113 | https://artifacts.alfresco.com/nexus/content/groups/private
114 |
115 |
116 |
117 |
118 | alfresco-plugin-public
119 | https://artifacts.alfresco.com/nexus/content/groups/public
120 |
121 |
122 | alfresco-plugin-public-snapshots
123 | https://artifacts.alfresco.com/nexus/content/groups/public-snapshots
124 |
125 | true
126 | daily
127 |
128 |
129 |
130 |
131 |
133 |
134 |
135 | junit
136 | junit
137 | 4.13.1
138 | test
139 |
140 |
141 | org.mockito
142 | mockito-all
143 | 1.9.5
144 | test
145 |
146 |
147 | org.apache.httpcomponents
148 | httpclient
149 | 4.5.13
150 | test
151 |
152 |
153 |
154 |
155 | ${alfresco.groupId}
156 | alfresco-repository
157 |
158 |
159 |
160 |
161 | org.springframework
162 | spring-context
163 | 3.2.17.RELEASE
164 | test
165 |
166 |
167 |
168 |
169 | org.alfresco.maven
170 | alfresco-rad
171 | ${alfresco.sdk.version}
172 | test
173 |
174 |
175 |
176 |
177 |
178 |
184 |
185 | ${alfresco.groupId}
186 | alfresco-platform-distribution
187 | ${alfresco.platform.version}
188 | pom
189 | import
190 |
191 |
193 |
194 | ${alfresco.groupId}
195 | share
196 | ${alfresco.share.version}
197 | war
198 | provided
199 |
200 |
201 | ${alfresco.groupId}
202 | share
203 | ${alfresco.share.version}
204 | classes
205 | provided
206 |
207 |
208 | ${alfresco.groupId}
209 | alfresco-web-framework-commons
210 | ${alfresco.share.version}
211 | classes
212 | provided
213 |
214 |
215 |
217 |
218 | org.alfresco.surf
219 | spring-surf
220 | ${alfresco.surf.version}
221 | provided
222 |
223 |
224 | org.alfresco.surf
225 | spring-surf-api
226 | ${alfresco.surf.version}
227 | provided
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
242 |
243 | org.apache.maven.plugins
244 | maven-assembly-plugin
245 | 2.6
246 |
247 |
248 | build-amp-file
249 | package
250 |
251 | single
252 |
253 |
254 | false
255 | src/main/assembly/amp.xml
256 |
257 |
258 |
259 |
260 |
261 | org.alfresco.maven.plugin
262 | alfresco-maven-plugin
263 | ${alfresco.sdk.version}
264 |
265 |
266 |
267 |
268 |
269 |
270 | org.apache.maven.plugins
271 | maven-resources-plugin
272 | 3.0.1
273 |
274 | UTF-8
275 |
276 | ftl
277 | acp
278 | svg
279 | pdf
280 | doc
281 | docx
282 | xls
283 | xlsx
284 | ppt
285 | pptx
286 | bin
287 | lic
288 | swf
289 | zip
290 | msg
291 | jar
292 | ttf
293 | eot
294 | woff
295 | woff2
296 | css
297 | ico
298 | psd
299 | js
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 | src/main/resources
310 | true
311 |
312 |
313 |
314 |
315 |
316 | org.sonatype.plugins
317 | nexus-staging-maven-plugin
318 | 1.6.7
319 | true
320 |
321 | ossrh
322 | https://oss.sonatype.org/
323 | true
324 |
325 |
326 |
327 | org.apache.maven.plugins
328 | maven-source-plugin
329 | 2.4
330 |
331 |
332 | attach-sources
333 |
334 | jar-no-fork
335 |
336 |
337 |
338 |
339 |
340 | org.apache.maven.plugins
341 | maven-gpg-plugin
342 | 1.5
343 |
344 |
345 | sign-artifacts
346 | verify
347 |
348 | sign
349 |
350 |
351 |
352 |
353 |
354 | org.apache.maven.plugins
355 | maven-resources-plugin
356 | 3.0.1
357 | false
358 |
359 |
360 |
361 | copy-and-filter-test-resources
362 | validate
363 |
364 | copy-resources
365 |
366 |
367 | ${project.build.testOutputDirectory}
368 |
369 |
370 | src/test/resources
371 | true
372 |
373 |
374 |
375 |
376 |
377 |
378 |
379 |
383 |
384 | org.alfresco.maven.plugin
385 | alfresco-maven-plugin
386 | ${alfresco.sdk.version}
387 |
388 |
389 |
390 | true
391 |
392 | true
393 |
394 | true
395 |
396 | true
397 |
398 | true
399 |
400 |
404 |
405 |
406 |
407 | ${alfresco.groupId}
408 | alfresco-share-services
409 | ${alfresco.share.version}
410 | amp
411 |
412 |
413 |
414 |
415 | ${project.groupId}
416 | share-site-creators-repo
417 | ${project.version}
418 |
419 |
420 |
421 |
422 | ${project.groupId}
423 | integration-tests
424 | ${project.version}
425 | tests
426 |
427 |
428 |
429 |
430 |
433 |
434 |
435 |
436 | ${project.groupId}
437 | share-site-creators-share
438 | ${project.version}
439 |
440 |
441 |
442 |
443 |
444 |
445 |
446 | org.zeroturnaround
447 | jrebel-maven-plugin
448 | ${jrebel.version}
449 |
450 |
451 | generate-rebel-xml
452 | process-resources
453 |
454 | generate
455 |
456 |
457 |
458 |
459 |
461 |
462 | all
463 |
464 |
465 | ${project.build.outputDirectory}
466 | ${project.build.testOutputDirectory}
467 |
468 |
469 |
470 |
471 |
476 | true
477 |
478 |
479 |
480 |
481 |
482 |
--------------------------------------------------------------------------------