Skip to content

Commit

Permalink
Merge pull request #14 from douglascrp/5.0.d
Browse files Browse the repository at this point in the history
Bootstrap to create the Site Creators group
  • Loading branch information
jpotts committed May 2, 2016
2 parents e3ab3e0 + 983b789 commit dc3a72d
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ target
.classpath
alfresco.log
share.log
.idea
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<view:view xmlns:view="http://www.alfresco.org/view/repository/1.0"
xmlns:cm="http://www.alfresco.org/model/content/1.0"
xmlns:sys="http://www.alfresco.org/model/system/1.0">

<view:reference view:pathref="${system.authorities_container.childname}">
<view:associations>
<sys:children>
<cm:authorityContainer view:childName="cm:GROUP_SITE_CREATORS">
<view:aspects>
<sys:referenceable />
</view:aspects>
<view:properties>
<sys:node-uuid>Site Creators</sys:node-uuid>
<cm:name>GROUP_SITE_CREATORS</cm:name>
<cm:authorityName>GROUP_SITE_CREATORS</cm:authorityName>
</view:properties>
</cm:authorityContainer>
</sys:children>
</view:associations>
</view:reference>

<!-- Each group is also part of the AUTH.ALF and APP.DEFAULT zones -->
<view:reference view:pathref="${system.zones_container.childname}/cm:AUTH.ALF">
<view:associations>
<cm:inZone>
<view:reference view:pathref="${system.authorities_container.childname}/cm:GROUP_SITE_CREATORS"
view:childName="GROUP_SITE_CREATORS" />
</cm:inZone>
</view:associations>
</view:reference>
<view:reference view:pathref="${system.zones_container.childname}/cm:APP.DEFAULT">
<view:associations>
<cm:inZone>
<view:reference view:pathref="${system.authorities_container.childname}/cm:GROUP_SITE_CREATORS"
view:childName="GROUP_SITE_CREATORS" />
</cm:inZone>
</view:associations>
</view:reference>
</view:view>
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version='1.0' encoding='UTF-8'?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

<!-- The bootstrap-context.xml file is used for patch definitions, importers,
workflow, and loading custom content models. -->

<bean id="share-site-creators-repo.groupsLoader.resourceBundle"
class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>alfresco.module.${project.artifactId}.messages.bootstrap-messages</value>
</list>
</property>
</bean>

<bean id="share-site-creators-repo.groupsLoader"
class="org.alfresco.repo.admin.patch.impl.GenericBootstrapPatch"
parent="basePatch" >
<property name="id"><value>share-site-creators-repo.groupsLoader</value></property>
<property name="description"><value>share-site-creators-repo.groupsLoader.description</value></property>
<property name="fixesFromSchema"><value>0</value></property>
<property name="fixesToSchema"><value>${version.schema}</value></property>
<property name="targetSchema"><value>10000</value></property>
<property name="importerBootstrap">
<ref bean="spacesBootstrap" />
</property>
<property name="bootstrapView">
<props>
<prop key="path">/${alfresco_user_store.system_container.childname}</prop>
<prop key="location">alfresco/module/${project.artifactId}/bootstrap/create-group.xml</prop>
</props>
</property>
</bean>

</beans>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
share-site-creators-repo.groupsLoader=Bootstraps the SITE_CREATORS group
share-site-creators-repo.groupsLoader.description=Bootstraps the SITE_CREATORS group
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
<!-- This is filtered by Maven at build time, so that module name is single sourced. -->
<import resource="classpath:alfresco/module/${project.artifactId}/context/service-context.xml" />

</beans>
-->
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
<!-- This is filtered by Maven at build time, so that module name is single sourced. -->
<import resource="classpath:alfresco/module/${project.artifactId}/context/service-context.xml" />
<import resource="classpath:alfresco/module/${project.artifactId}/context/bootstrap-context.xml" />
</beans>

0 comments on commit dc3a72d

Please sign in to comment.