-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from douglascrp/5.0.d
Bootstrap to create the Site Creators group
- Loading branch information
Showing
5 changed files
with
89 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ target | |
.classpath | ||
alfresco.log | ||
share.log | ||
.idea |
40 changes: 40 additions & 0 deletions
40
...o/src/main/amp/config/alfresco/module/share-site-creators-repo/bootstrap/create-group.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
38 changes: 38 additions & 0 deletions
38
...rc/main/amp/config/alfresco/module/share-site-creators-repo/context/bootstrap-context.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
2 changes: 2 additions & 0 deletions
2
...mp/config/alfresco/module/share-site-creators-repo/messages/bootstrap-messages.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters