mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
- Addition of Mike's "readme" presentation template
- Bootstrap updated & patch created - Applied to Web Scripts folders - Fixed Importer bug found with above import patch files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6099 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -173,6 +173,10 @@
|
|||||||
<prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.templates.content.childname}</prop>
|
<prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.templates.content.childname}</prop>
|
||||||
<prop key="location">alfresco/templates/content_template_examples.xml</prop>
|
<prop key="location">alfresco/templates/content_template_examples.xml</prop>
|
||||||
</props>
|
</props>
|
||||||
|
<props>
|
||||||
|
<prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.templates.content.childname}</prop>
|
||||||
|
<prop key="location">alfresco/templates/readme_template.xml</prop>
|
||||||
|
</props>
|
||||||
<props>
|
<props>
|
||||||
<prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.templates.email.childname}</prop>
|
<prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.templates.email.childname}</prop>
|
||||||
<prop key="location">alfresco/templates/email_templates.acp</prop>
|
<prop key="location">alfresco/templates/email_templates.acp</prop>
|
||||||
@@ -193,6 +197,10 @@
|
|||||||
<prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}</prop>
|
<prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}</prop>
|
||||||
<prop key="location">alfresco/bootstrap/webScriptsExtensions.xml</prop>
|
<prop key="location">alfresco/bootstrap/webScriptsExtensions.xml</prop>
|
||||||
</props>
|
</props>
|
||||||
|
<props>
|
||||||
|
<prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}</prop>
|
||||||
|
<prop key="location">alfresco/bootstrap/webScriptsReadme.xml</prop>
|
||||||
|
</props>
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
@@ -12,6 +12,9 @@
|
|||||||
<property name="dictionaryService">
|
<property name="dictionaryService">
|
||||||
<ref bean="dictionaryService" />
|
<ref bean="dictionaryService" />
|
||||||
</property>
|
</property>
|
||||||
|
<property name="nodeService">
|
||||||
|
<ref bean="nodeService" />
|
||||||
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="importerComponent" class="org.alfresco.repo.importer.ImporterComponent">
|
<bean id="importerComponent" class="org.alfresco.repo.importer.ImporterComponent">
|
||||||
|
@@ -160,3 +160,6 @@ patch.redeploySubmitProcess.description=Re-deploy WCM Submit Process Definition.
|
|||||||
|
|
||||||
patch.AVMLocking.description=Adds existing web projects to locking service.
|
patch.AVMLocking.description=Adds existing web projects to locking service.
|
||||||
patch.AVMLocking.result=Necessary web projects added.
|
patch.AVMLocking.result=Necessary web projects added.
|
||||||
|
|
||||||
|
patch.ReadmeTemplate.description=Deployed ReadMe Template
|
||||||
|
patch.webScriptsReadme.description=Applied ReadMe template to Web Scripts folders
|
||||||
|
@@ -827,4 +827,40 @@
|
|||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
<bean id="patch.ReadmeTemplate" class="org.alfresco.repo.admin.patch.impl.GenericBootstrapPatch" parent="basePatch" >
|
||||||
|
<property name="id"><value>patch.ReadmeTemplate</value></property>
|
||||||
|
<property name="description"><value>patch.ReadmeTemplate.description</value></property>
|
||||||
|
<property name="fixesFromSchema"><value>0</value></property>
|
||||||
|
<property name="fixesToSchema"><value>59</value></property>
|
||||||
|
<property name="targetSchema"><value>60</value></property>
|
||||||
|
<!-- bootstrap view -->
|
||||||
|
<property name="importerBootstrap">
|
||||||
|
<ref bean="spacesBootstrap" />
|
||||||
|
</property>
|
||||||
|
<property name="bootstrapView">
|
||||||
|
<props>
|
||||||
|
<prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.templates.content.childname}</prop>
|
||||||
|
<prop key="location">alfresco/templates/readme_template.xml</prop>
|
||||||
|
</props>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<bean id="patch.webScriptsReadme" class="org.alfresco.repo.admin.patch.impl.GenericBootstrapPatch" parent="basePatch" >
|
||||||
|
<property name="id"><value>patch.webScriptsReadme</value></property>
|
||||||
|
<property name="description"><value>patch.webScriptsReadme.description</value></property>
|
||||||
|
<property name="fixesFromSchema"><value>0</value></property>
|
||||||
|
<property name="fixesToSchema"><value>59</value></property>
|
||||||
|
<property name="targetSchema"><value>60</value></property>
|
||||||
|
<!-- bootstrap view -->
|
||||||
|
<property name="importerBootstrap">
|
||||||
|
<ref bean="spacesBootstrap" />
|
||||||
|
</property>
|
||||||
|
<property name="bootstrapView">
|
||||||
|
<props>
|
||||||
|
<prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}</prop>
|
||||||
|
<prop key="location">alfresco/bootstrap/webScriptsReadme.xml</prop>
|
||||||
|
</props>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
||||||
|
@@ -38,6 +38,7 @@ import org.alfresco.service.cmr.dictionary.DictionaryService;
|
|||||||
import org.alfresco.service.cmr.dictionary.PropertyDefinition;
|
import org.alfresco.service.cmr.dictionary.PropertyDefinition;
|
||||||
import org.alfresco.service.cmr.dictionary.TypeDefinition;
|
import org.alfresco.service.cmr.dictionary.TypeDefinition;
|
||||||
import org.alfresco.service.cmr.repository.NodeRef;
|
import org.alfresco.service.cmr.repository.NodeRef;
|
||||||
|
import org.alfresco.service.cmr.repository.NodeService;
|
||||||
import org.alfresco.service.cmr.security.AccessStatus;
|
import org.alfresco.service.cmr.security.AccessStatus;
|
||||||
import org.alfresco.service.cmr.view.ImporterException;
|
import org.alfresco.service.cmr.view.ImporterException;
|
||||||
import org.alfresco.service.namespace.NamespaceService;
|
import org.alfresco.service.namespace.NamespaceService;
|
||||||
@@ -87,6 +88,7 @@ public class ViewParser implements Parser
|
|||||||
|
|
||||||
// Supporting services
|
// Supporting services
|
||||||
private NamespaceService namespaceService;
|
private NamespaceService namespaceService;
|
||||||
|
private NodeService nodeService;
|
||||||
private DictionaryService dictionaryService;
|
private DictionaryService dictionaryService;
|
||||||
|
|
||||||
// Parser Context maintained during each parse
|
// Parser Context maintained during each parse
|
||||||
@@ -125,6 +127,14 @@ public class ViewParser implements Parser
|
|||||||
this.namespaceService = namespaceService;
|
this.namespaceService = namespaceService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param nodeService the node service
|
||||||
|
*/
|
||||||
|
public void setNodeService(NodeService nodeService)
|
||||||
|
{
|
||||||
|
this.nodeService = nodeService;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param dictionaryService the dictionary service
|
* @param dictionaryService the dictionary service
|
||||||
*/
|
*/
|
||||||
@@ -439,6 +449,7 @@ public class ViewParser implements Parser
|
|||||||
{
|
{
|
||||||
NodeRef nodeRef = new NodeRef(nodeRefAttr);
|
NodeRef nodeRef = new NodeRef(nodeRefAttr);
|
||||||
node.setUUID(nodeRef.getId());
|
node.setUUID(nodeRef.getId());
|
||||||
|
node.setTypeDefinition(dictionaryService.getType(nodeService.getType(nodeRef)));
|
||||||
}
|
}
|
||||||
else if (idRefAttr != null && idRefAttr.length() > 0)
|
else if (idRefAttr != null && idRefAttr.length() > 0)
|
||||||
{
|
{
|
||||||
@@ -449,6 +460,7 @@ public class ViewParser implements Parser
|
|||||||
throw new ImporterException("Cannot find node referenced by id " + idRefAttr);
|
throw new ImporterException("Cannot find node referenced by id " + idRefAttr);
|
||||||
}
|
}
|
||||||
node.setUUID(nodeRef.getId());
|
node.setUUID(nodeRef.getId());
|
||||||
|
node.setTypeDefinition(dictionaryService.getType(nodeService.getType(nodeRef)));
|
||||||
}
|
}
|
||||||
else if (pathRefAttr != null && pathRefAttr.length() > 0)
|
else if (pathRefAttr != null && pathRefAttr.length() > 0)
|
||||||
{
|
{
|
||||||
@@ -458,6 +470,7 @@ public class ViewParser implements Parser
|
|||||||
throw new ImporterException("Cannot find node referenced by path " + pathRefAttr);
|
throw new ImporterException("Cannot find node referenced by path " + pathRefAttr);
|
||||||
}
|
}
|
||||||
node.setUUID(referencedRef.getId());
|
node.setUUID(referencedRef.getId());
|
||||||
|
node.setTypeDefinition(dictionaryService.getType(nodeService.getType(referencedRef)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Extract child name if explicitly defined
|
// Extract child name if explicitly defined
|
||||||
|
Reference in New Issue
Block a user