mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added blog module into core - not complete! Also updated version.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7601 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
96
config/alfresco/blog-context.xml
Normal file
96
config/alfresco/blog-context.xml
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
||||||
|
|
||||||
|
<beans>
|
||||||
|
|
||||||
|
<!-- Blog Integration Service -->
|
||||||
|
|
||||||
|
<bean id="BlogIntegrationService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||||
|
<property name="proxyInterfaces">
|
||||||
|
<value>org.alfresco.module.blogIntegration.BlogIntegrationService</value>
|
||||||
|
</property>
|
||||||
|
<property name="target">
|
||||||
|
<ref bean="blogIntegrationService"/>
|
||||||
|
</property>
|
||||||
|
<property name="interceptorNames">
|
||||||
|
<list>
|
||||||
|
<idref local="BlogIntegrationService_transaction"/>
|
||||||
|
<idref bean="AuditMethodInterceptor"/>
|
||||||
|
<idref bean="exceptionTranslator"/>
|
||||||
|
<idref local="BlogIntegrationService_security"/>
|
||||||
|
</list>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<bean id="BlogIntegrationService_transaction" class="org.springframework.transaction.interceptor.TransactionInterceptor">
|
||||||
|
<property name="transactionManager">
|
||||||
|
<ref bean="transactionManager"/>
|
||||||
|
</property>
|
||||||
|
<property name="transactionAttributes">
|
||||||
|
<props>
|
||||||
|
<prop key="*">${server.transaction.mode.default}</prop>
|
||||||
|
</props>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<bean id="BlogIntegrationService_security" class="org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor" />
|
||||||
|
|
||||||
|
<bean id="blogIntegrationService" class="org.alfresco.module.blogIntegration.BlogIntegrationServiceImpl">
|
||||||
|
<property name="nodeService" ref="NodeService"/>
|
||||||
|
<property name="contentService" ref="ContentService"/>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<!-- Blog Integration Implementations -->
|
||||||
|
|
||||||
|
<bean id="baseBlogIntegrationImplmentation" abstract="true" init-method="register">
|
||||||
|
<property name="blogIntegrationService" ref="blogIntegrationService"/>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<bean id="wordPressBlogIntegration" parent="baseBlogIntegrationImplmentation" class="org.alfresco.module.blogIntegration.wordpress.WordPressIntegration">
|
||||||
|
<property name="name" value="wordpress"/>
|
||||||
|
<property name="displayName" value="WordPress"/>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<bean id="typePadBlogIntegration" parent="baseBlogIntegrationImplmentation" class="org.alfresco.module.blogIntegration.typepad.TypepadIntegration">
|
||||||
|
<property name="name" value="typepad"/>
|
||||||
|
<property name="displayName" value="Typepad"/>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<!-- UI Configuration Bootstrap -->
|
||||||
|
|
||||||
|
<bean id="org_alfresco_module_blogIntegration_ConfigBootstrap" class="org.alfresco.web.config.WebClientConfigBootstrap" init-method="init">
|
||||||
|
<property name="configs">
|
||||||
|
<list>
|
||||||
|
<value>classpath:alfresco/module/org.alfresco.module.blogIntegration/ui/web-client-custom.xml</value>
|
||||||
|
</list>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<!-- UI Action Listeners -->
|
||||||
|
|
||||||
|
<bean id="org_alfresco_module_blogIntegration_BlogDetailsActionListener" class="org.alfresco.module.blogIntegration.ui.BlogDetailsActionListener">
|
||||||
|
<property name="serviceRegistry">
|
||||||
|
<ref bean="ServiceRegistry"/>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<bean id="org_alfresco_module_blogIntegration_BlogActionListener" class="org.alfresco.module.blogIntegration.ui.BlogActionListener">
|
||||||
|
<property name="serviceRegistry" ref="ServiceRegistry"/>
|
||||||
|
<property name="blogIntegrationService" ref="BlogIntegrationService"/>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<!-- Blog Repository Actions -->
|
||||||
|
|
||||||
|
<bean id="blog-post" class="org.alfresco.module.blogIntegration.BlogAction" parent="action-executer">
|
||||||
|
<property name="nodeService">
|
||||||
|
<ref bean="nodeService" />
|
||||||
|
</property>
|
||||||
|
<property name="dictionaryService">
|
||||||
|
<ref bean="dictionaryService" />
|
||||||
|
</property>
|
||||||
|
<property name="blogIntegrationService">
|
||||||
|
<ref bean="blogIntegrationService" />
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
</beans>
|
@@ -694,6 +694,9 @@
|
|||||||
<!-- Calendar model -->
|
<!-- Calendar model -->
|
||||||
<value>alfresco/model/calendarModel.xml</value>
|
<value>alfresco/model/calendarModel.xml</value>
|
||||||
|
|
||||||
|
<!-- Blog Integration model -->
|
||||||
|
<value>alfresco/model/blogIntegrationModel.xml</value>
|
||||||
|
|
||||||
<!-- Deprecated types -->
|
<!-- Deprecated types -->
|
||||||
<value>alfresco/model/deprecated/deprecated_contentModel.xml</value>
|
<value>alfresco/model/deprecated/deprecated_contentModel.xml</value>
|
||||||
</list>
|
</list>
|
||||||
|
127
config/alfresco/model/blogIntegrationModel.xml
Normal file
127
config/alfresco/model/blogIntegrationModel.xml
Normal file
@@ -0,0 +1,127 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<!-- Definition of Blog Integration Model -->
|
||||||
|
|
||||||
|
<!-- Note: the blg: namespace is defined further on in the document -->
|
||||||
|
<model name="blg:blogintegration" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
||||||
|
|
||||||
|
<!-- Meta-data about the model -->
|
||||||
|
<description>Blog Integration Model</description>
|
||||||
|
<author>Roy Wetherall</author>
|
||||||
|
<version>1.0</version>
|
||||||
|
|
||||||
|
<!-- Imports are required to allow references to definitions in other models -->
|
||||||
|
<imports>
|
||||||
|
<!-- Import Alfresco Dictionary Definitions -->
|
||||||
|
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
|
||||||
|
<!-- Import Alfresco Content Domain Model Definitions -->
|
||||||
|
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
|
||||||
|
<!-- Import Alfresco Content Domain Model Definitions -->
|
||||||
|
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys" />
|
||||||
|
</imports>
|
||||||
|
|
||||||
|
<!-- Records Management Namespace -->
|
||||||
|
<namespaces>
|
||||||
|
<namespace uri="http://www.alfresco.org/model/blogintegration/1.0" prefix="blg"/>
|
||||||
|
</namespaces>
|
||||||
|
|
||||||
|
<aspects>
|
||||||
|
|
||||||
|
<aspect name="blg:blogDetails">
|
||||||
|
<title>Blog Details</title>
|
||||||
|
<properties>
|
||||||
|
<property name="blg:blogImplementation">
|
||||||
|
<title>Blog Type</title>
|
||||||
|
<type>d:text</type>
|
||||||
|
<mandatory>false</mandatory>
|
||||||
|
</property>
|
||||||
|
<property name="blg:id">
|
||||||
|
<title>Blog Identifier</title>
|
||||||
|
<type>d:text</type>
|
||||||
|
<mandatory>false</mandatory>
|
||||||
|
<default>0</default>
|
||||||
|
</property>
|
||||||
|
<property name="blg:name">
|
||||||
|
<title>Blog Name</title>
|
||||||
|
<type>d:text</type>
|
||||||
|
<mandatory>false</mandatory>
|
||||||
|
</property>
|
||||||
|
<property name="blg:description">
|
||||||
|
<title>Blog Description</title>
|
||||||
|
<type>d:text</type>
|
||||||
|
<mandatory>false</mandatory>
|
||||||
|
</property>
|
||||||
|
<property name="blg:url">
|
||||||
|
<title>Blog URL</title>
|
||||||
|
<type>d:text</type>
|
||||||
|
<mandatory>false</mandatory>
|
||||||
|
</property>
|
||||||
|
<property name="blg:userName">
|
||||||
|
<title>Blog User Name</title>
|
||||||
|
<type>d:text</type>
|
||||||
|
<mandatory>false</mandatory>
|
||||||
|
</property>
|
||||||
|
<property name="blg:password">
|
||||||
|
<title>Blog User Password</title>
|
||||||
|
<type>d:text</type>
|
||||||
|
<mandatory>false</mandatory>
|
||||||
|
</property>
|
||||||
|
</properties>
|
||||||
|
</aspect>
|
||||||
|
|
||||||
|
<aspect name="blg:blogPost">
|
||||||
|
<title>Blog Post</title>
|
||||||
|
<properties>
|
||||||
|
<property name="blg:postId">
|
||||||
|
<title>Blog post identifier</title>
|
||||||
|
<type>d:text</type>
|
||||||
|
<protected>true</protected>
|
||||||
|
<mandatory>true</mandatory>
|
||||||
|
</property>
|
||||||
|
<property name="blg:published">
|
||||||
|
<title>Blog published</title>
|
||||||
|
<type>d:boolean</type>
|
||||||
|
<protected>true</protected>
|
||||||
|
<mandatory>true</mandatory>
|
||||||
|
</property>
|
||||||
|
<property name="blg:link">
|
||||||
|
<title>Blog post link</title>
|
||||||
|
<type>d:text</type>
|
||||||
|
<protected>true</protected>
|
||||||
|
<mandatory>true</mandatory>
|
||||||
|
</property>
|
||||||
|
<property name="blg:posted">
|
||||||
|
<title>Date posted</title>
|
||||||
|
<type>d:date</type>
|
||||||
|
<protected>true</protected>
|
||||||
|
<mandatory>true</mandatory>
|
||||||
|
</property>
|
||||||
|
<property name="blg:lastUpdate">
|
||||||
|
<title>Date last updated</title>
|
||||||
|
<type>d:date</type>
|
||||||
|
<protected>true</protected>
|
||||||
|
<mandatory>true</mandatory>
|
||||||
|
</property>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<associations>
|
||||||
|
<association name="blg:blogDetails">
|
||||||
|
<title>Blog details</title>
|
||||||
|
<source>
|
||||||
|
<role>blg:posts</role>
|
||||||
|
<mandatory>false</mandatory>
|
||||||
|
<many>true</many>
|
||||||
|
</source>
|
||||||
|
<target>
|
||||||
|
<class>blg:blogDetails</class>
|
||||||
|
<role>blg:blogDetails</role>
|
||||||
|
<mandatory>true</mandatory>
|
||||||
|
<many>false</many>
|
||||||
|
</target>
|
||||||
|
</association>
|
||||||
|
</associations>
|
||||||
|
</aspect>
|
||||||
|
|
||||||
|
</aspects>
|
||||||
|
|
||||||
|
</model>
|
@@ -61,6 +61,7 @@
|
|||||||
<app:uifacets></app:uifacets>
|
<app:uifacets></app:uifacets>
|
||||||
<cm:webscriptable></cm:webscriptable>
|
<cm:webscriptable></cm:webscriptable>
|
||||||
<cm:projectsummary></cm:projectsummary>
|
<cm:projectsummary></cm:projectsummary>
|
||||||
|
<blg:blogDetails></blg:blogDetails>
|
||||||
</view:aspects>
|
</view:aspects>
|
||||||
<view:properties>
|
<view:properties>
|
||||||
<cm:description></cm:description>
|
<cm:description></cm:description>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
version.major=2
|
version.major=2
|
||||||
version.minor=9
|
version.minor=9
|
||||||
version.revision=0
|
version.revision=0
|
||||||
version.label=dev
|
version.label=B
|
||||||
|
|
||||||
# Edition label
|
# Edition label
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user