Commit 3d70b716 authored by mindthegab's avatar mindthegab
Browse files

-- fixed broken filtering

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@281 04253f4f-3451-0410-a141-5562f1e59037
parent 6b990829
Loading
Loading
Loading
Loading
+14 −17
Original line number Diff line number Diff line
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
${symbol_pound}    Licensed to the Apache Software Foundation (ASF) under one or more
${symbol_pound}    contributor license agreements.  See the NOTICE file distributed with
${symbol_pound}    this work for additional information regarding copyright ownership.
${symbol_pound}    The ASF licenses this file to You under the Apache License, Version 2.0
${symbol_pound}    (the "License"); you may not use this file except in compliance with
${symbol_pound}    the License.  You may obtain a copy of the License at
${symbol_pound}    
${symbol_pound}    http://www.apache.org/licenses/LICENSE-2.0
${symbol_pound}    
${symbol_pound}    Unless required by applicable law or agreed to in writing, software
${symbol_pound}    distributed under the License is distributed on an "AS IS" BASIS,
${symbol_pound}    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
${symbol_pound}    See the License for the specific language governing permissions and
${symbol_pound}    limitations under the License.
#    Licensed to the Apache Software Foundation (ASF) under one or more
#    contributor license agreements.  See the NOTICE file distributed with
#    this work for additional information regarding copyright ownership.
#    The ASF licenses this file to You under the Apache License, Version 2.0
#    (the "License"); you may not use this file except in compliance with
#    the License.  You may obtain a copy of the License at
#    
#    http://www.apache.org/licenses/LICENSE-2.0
#    
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS,
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#    See the License for the specific language governing permissions and
#    limitations under the License.

Ant/m2 runtime properties management
------------------------------------
+2 −5
Original line number Diff line number Diff line
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
${symbol_pound} SHARE client environment dependent properties (local build)
# SHARE client environment dependent properties (local build)
share.server.scheme=http
share.server.name=localhost
share.server.port=${symbol_dollar}{share.servlet.port}
share.server.port=${share.servlet.port}
alfresco.server.scheme=http
alfresco.server.name=localhost
alfresco.server.port=8080
+46 −90
Original line number Diff line number Diff line
<alfresco-config>
   

   <config evaluator="string-compare" condition="Server">
      <server>
         <!-- Enable and adjust the following settings to allow for external access URLs to the
              WebScript Framework - to return an externally accessable address for absolute url generation.
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>

   <!-- Custom application properties loading -->
   
	<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="ignoreResourceNotFound" value="true" />
		<property name="locations">
			<list>
				<value>classpath:alfresco/web-extension/application.properties</value>
			</list>
		</property>
	</bean>

   <!-- uncomment this section (or override bean def in custom app context) for remote component deploy -->
   <!-- Override WebScripts searchpath - to include remote store -->
   <!--
   
	<bean id="webframework.searchpath" class="org.alfresco.web.scripts.SearchPath">
      <property name="searchPath">
         <list>
            <ref bean="webframework.remotestore.webscripts" />
            <ref bean="webframework.store.webscripts.custom" />
            <ref bean="webframework.store.webscripts" />
            <ref bean="webscripts.store" />
         </list>
      </property>
   </bean>
   -->
         <scheme>${share.server.scheme}</scheme>
         <hostname>${share.server.name}</hostname>
         <port>${share.server.port}</port>
      </server>
   </config>


   <!-- Overriding endpoints to reference a remote Alfresco server -->
   
   <config evaluator="string-compare" condition="Remote">
    <remote>

      <!-- Endpoints -->
      <!-- Example of a 'declared' identity endpoint configuration
      <endpoint>
        <id>alfresco-system</id>
        <name>Alfresco - System access</name>
        <description>System account access to Alfresco</description>
        <connector-id>alfresco</connector-id>
        <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
        <identity>declared</identity>
        <username>admin</username>
        <password>admin</password>
        <unsecure>true</unsecure>
      </endpoint> -->

      <endpoint>
        <id>alfresco-noauth</id>
        <name>Alfresco - unauthenticated access</name>
        <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
        <connector-id>alfresco</connector-id>
        <endpoint-url>${alfresco.server.scheme}://${alfresco.server.name}:${alfresco.server.port}/${alfresco.webapp.name}/s</endpoint-url>
        <identity>none</identity>
      </endpoint>

      <endpoint>
        <id>alfresco</id>
        <name>Alfresco - user access</name>
        <description>Access to Alfresco Repository WebScripts that require user authentication</description>
        <connector-id>alfresco</connector-id>
        <endpoint-url>${alfresco.server.scheme}://${alfresco.server.name}:${alfresco.server.port}/${alfresco.webapp.name}/s</endpoint-url>
        <identity>user</identity>
      </endpoint>

    </remote>
  </config>
  
  
  
   <!-- Overriding endpoints to reference an Alfresco server with external SSO or NTLM enabled -->
   <!-- NOTE: For NTLM, the NTLM Authentication Filter must also be enabled in share web.xml -->
   <!-- NOTE: if utilising a load balancer between web-tier and repository cluster, the "sticky -->
   <!--       sessions" feature of your load balancer must be used -->
   <!-- Uses SSL client certificate + trusted CAs. Optionally used to authenticate share to an external SSO system such as CAS
   <config evaluator="string-compare" condition="Remote">
        <remote>
            <keystore>
                <path>alfresco/web-extension/alfresco-system.p12</path>
                <type>pkcs12</type>
                <password>alfresco-system</password>
            </keystore>
         
            <connector>
                <id>alfrescoCookie</id>
                <name>Alfresco Connector</name>
                <description>Connects to an Alfresco instance using cookie-based authentication</description>
                <class>org.alfresco.connector.AlfrescoConnector</class>
            </connector>

            <endpoint>
                <id>alfresco</id>
                <name>Alfresco - user access</name>
                <description>Access to Alfresco Repository WebScripts that require user authentication</description>
                <connector-id>alfrescoCookie</connector-id>
                <endpoint-url>http://localhost/alfresco/wcs</endpoint-url>
                <identity>user</identity>
                <external-auth>true</external-auth>
            </endpoint>
        </remote>
   
    </config>
   <!-- uncomment this section (or override bean def in custom app context) for remote component deploy -->
   <!-- Override Templates and Scripts searchpath - to include remote store -->
   <!--
   <bean id="webframework.templates.searchpath" class="org.alfresco.web.scripts.SearchPath">
      <property name="searchPath">
         <list>
            <ref bean="webframework.remotestore.webscripts" />
            <ref bean="webframework.store.webscripts.custom" />
            <ref bean="webframework.store.system-templates" />
            <ref bean="webframework.store.templates" />
            <ref bean="webframework.store.webscripts" />
         </list>
      </property>
   </bean>
   -->
   

</alfresco-config>
 No newline at end of file
</beans>
 No newline at end of file