Skip to content

Commit

Permalink
Copy rules from the source folder template to the new document librar…
Browse files Browse the repository at this point in the history
…y folder, if they exist. Closes #8.
  • Loading branch information
jpotts committed Jan 21, 2017
1 parent 825f01a commit 6580fe1
Show file tree
Hide file tree
Showing 3 changed files with 197 additions and 161 deletions.
19 changes: 14 additions & 5 deletions README.md
@@ -1,15 +1,24 @@
share-site-space-templates
==========================

Adds the ability to create a default set of folders to an Alfresco Share site by leveraging Space Templates
Adds the ability to create a default set of folders to an Alfresco Share site by leveraging Space Templates.

For example, the out-of-the-box Share site "type" is shown in English as "Collaboration Site". Its preset ID is "site-dashboard".
For example, the out-of-the-box Share site "type" is shown in English as "Collaboration Site". Its preset ID is
"site-dashboard".

So after installing this AMP in your Alfresco WAR, you can create a folder under Data Dictionary/Space Templates called "site-dashboard". Then anything you put in that folder will be copied into the document library of new "Collaboration Site" sites.
After installing this AMP in your Alfresco WAR, you can create a folder under Data Dictionary/Space Templates
called "site-dashboard". Then, anything you put in that folder will be copied into the document library of new
"Collaboration Site" sites.

Alternatively, you can store your Share Site Space Templates in a Data Dictionary folder called Site Folder Templates. That will keep them separate from traditional Space Templates.
Alternatively, you can store your Share Site Space Templates in a Data Dictionary folder called Site Folder Templates,
which is a folder this add-on will automatically add to your Data Dictionary. Storing your Share Site Space Templates
in the Site Folder Templates folder will keep them separate from traditional Space Templates.

If you modify your site presets to add additional types of Share sites, you can create additional space templates for each type of site.
If you modify your site presets to add additional types of Share sites, you can create additional space templates for
each type of site.

If you add rules to your Share Site Space Template, those rules will be copied to the new site's document library when
the site is created.

Maven
-----
Expand Down
@@ -1,38 +1,41 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<!--
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.
<!--
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.
-->
<beans>
<bean id="${project.artifactId}_siteBehavior" class="com.ecmarchitect.share.behavior.ShareDocumentLibraryFromTemplate" init-method="init">
<bean id="${project.artifactId}_siteBehavior"
class="com.ecmarchitect.share.behavior.ShareDocumentLibraryFromTemplate" init-method="init">
<property name="nodeService">
<ref bean="NodeService" />
<ref bean="NodeService"/>
</property>
<property name="policyComponent">
<ref bean="policyComponent" />
<ref bean="policyComponent"/>
</property>
<property name="fileFolderService">
<ref bean="FileFolderService" />
<ref bean="FileFolderService"/>
</property>
<property name="searchService">
<ref bean="SearchService" />
<ref bean="SearchService"/>
</property>
<property name="siteService">
<ref bean="SiteService" />
</property>
<ref bean="SiteService"/>
</property>
<property name="copyService">
<ref bean="CopyService"/>
</property>
</bean>

</beans>

0 comments on commit 6580fe1

Please sign in to comment.