Plugin syndication

Version: Not specified

Features detail

syndication/module.syndication.cache

Components:

org.ametys.plugins.syndication.FeedCache

Associated java class:
org.ametys.plugins.syndication.FeedCache

Configuration:

<component role="org.ametys.plugins.syndication.FeedCache" id="org.ametys.plugins.syndication.FeedCache" class="org.ametys.plugins.syndication.FeedCache"> </component>

syndication/module.syndication.userprefs

Components:

org.ametys.plugins.syndication.RssFeedUserPrefsComponent

Associated java class:
org.ametys.plugins.syndication.RssFeedUserPrefsComponent

Configuration:

<component role="org.ametys.plugins.syndication.RssFeedUserPrefsComponent" id="org.ametys.plugins.syndication.RssFeedUserPrefsComponent" class="org.ametys.plugins.syndication.RssFeedUserPrefsComponent"/>

syndication/module.syndication.service

Extensions:

org.ametys.plugins.syndication.service.rss.rights

Extension point extended:
org.ametys.core.right.RightsExtensionPoint

Configuration:

<extension point="org.ametys.core.right.RightsExtensionPoint" id="org.ametys.plugins.syndication.service.rss.rights">
<right id="Syndication_Right_Service_RSS">
<label i18n="true">PLUGINS_SYNDICATION_RIGHT_SERVICE_RSS_LABEL</label>
<description i18n="true">PLUGINS_SYNDICATION_RIGHT_SERVICE_RSS_DESCRIPTION</description>
<category i18n="true">plugin.web:PLUGINS_WEB_RIGHTS_SERVICE_CREATE_CATEGORY</category>
</right>
</extension>

org.ametys.plugins.syndication.service.RSS

Associated java class:
org.ametys.plugins.syndication.SyndicationService

Extension point extended:
org.ametys.web.service.ServiceExtensionPoint

Configuration:

<extension point="org.ametys.web.service.ServiceExtensionPoint" class="org.ametys.plugins.syndication.SyndicationService" id="org.ametys.plugins.syndication.service.RSS">
<url>feed/read.xhtml</url>
<right>Syndication_Right_Service_RSS</right>
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_LABEL</label>
<description i18n="true">SYNDICATION_SERVICE_READ_RSS_DESCRIPTION</description>
<category i18n="true">plugin.web:PLUGINS_WEB_SERVICE_CATEGORY_20_CONTENT_EXTERNAL</category>
<thumbnail>
<glyph>ametysicon-connection4</glyph>
<small>img/feed-icon_16.png</small>
<medium>img/feed-icon_32.png</medium>
<large>img/feed-icon_32.png</large>
</thumbnail>
<parameters>
<parameter name="header" type="string">
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_TITLE</label>
<description i18n="true">SYNDICATION_SERVICE_READ_RSS_TITLE_DESC</description>
</parameter>
<parameter name="length" type="long">
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_LENGTH_DEFAULT</label>
<description i18n="true">SYNDICATION_SERVICE_READ_RSS_LENGTH_DEFAULT_DESC</description>
</parameter>
<parameter name="cache" type="string">
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_CACHE_DEFAULT</label>
<description i18n="true">SYNDICATION_SERVICE_READ_RSS_CACHE_DEFAULT_DESC</description>
<default-value>2</default-value>
<widget>edition.combobox</widget>
<widget-params>
<param name="naturalOrder">true</param>
</widget-params>
<enumeration>
<entry>
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_CACHE_LONG</label>
<value>1</value>
</entry>
<entry>
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_CACHE_MEDIUM</label>
<value>2</value>
</entry>
<entry>
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_CACHE_SMALL</label>
<value>3</value>
</entry>
</enumeration>
<validation>
<mandatory/>
</validation>
</parameter>
<repeater name="feeds" initial-size="0" min-size="1">
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_FEED_LABEL</label>
<description i18n="true">SYNDICATION_SERVICE_READ_RSS_FEED_DESC</description>
<add-label i18n="true">SYNDICATION_SERVICE_READ_RSS_ADD</add-label>
<edit-label i18n="true">SYNDICATION_SERVICE_READ_RSS_EDIT</edit-label>
<del-label i18n="true">SYNDICATION_SERVICE_READ_RSS_DELETE</del-label>
<parameter name="title" type="string">
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_TITLE</label>
<description i18n="true">SYNDICATION_SERVICE_READ_RSS_TITLE_DESC</description>
</parameter>
<parameter name="url" type="string">
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_URL</label>
<description i18n="true">SYNDICATION_SERVICE_READ_RSS_URL_DESC</description>
<validation>
<mandatory/>
<regexp>^https?:\/\/[^\s]+$</regexp>
</validation>
</parameter>
<parameter name="length" type="long">
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_LENGTH</label>
<description i18n="true">SYNDICATION_SERVICE_READ_RSS_LENGTH_DESC</description>
</parameter>
<parameter name="cache" type="string">
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_CACHE</label>
<description i18n="true">SYNDICATION_SERVICE_READ_RSS_CACHE_DESC</description>
<default-value/>
<widget>edition.combobox</widget>
<widget-params>
<param name="naturalOrder">true</param>
</widget-params>
<enumeration>
<entry>
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_CACHE_DEFAULT_VALUE</label>
<value/>
</entry>
<entry>
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_CACHE_LONG</label>
<value>1</value>
</entry>
<entry>
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_CACHE_MEDIUM</label>
<value>2</value>
</entry>
<entry>
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_CACHE_SMALL</label>
<value>3</value>
</entry>
</enumeration>
</parameter>
<parameter name="limited" type="boolean">
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_LIMITED</label>
<description i18n="true">SYNDICATION_SERVICE_READ_RSS_LIMITED_DESC</description>
</parameter>
<parameter name="fo-user" type="string" multiple="true">
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_FO_USER</label>
<description i18n="true">SYNDICATION_SERVICE_READ_RSS_FO_USER_DESC</description>
<widget>edition.user</widget>
</parameter>
<parameter name="fo-group" type="string" multiple="true">
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_FO_GROUP</label>
<description i18n="true">SYNDICATION_SERVICE_READ_RSS_FO_GROUP_DESC</description>
<widget>edition.group</widget>
</parameter>
<parameter name="id" type="string">
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_ID</label>
<description i18n="true">SYNDICATION_SERVICE_READ_RSS_ID_DESC</description>
<widget>edition.random-number</widget>
</parameter>
</repeater>
<parameter name="nb-feed-user" type="long">
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_NB_FLUX_CUSTOM</label>
<description i18n="true">SYNDICATION_SERVICE_READ_RSS_NB_FLUX_CUSTOM_DESC</description>
</parameter>
<parameter name="nb-feed-max" type="long">
<label i18n="true">SYNDICATION_SERVICE_READ_RSS_NB_FLUX_MAX</label>
<description i18n="true">SYNDICATION_SERVICE_READ_RSS_NB_FLUX_MAX_DESC</description>
</parameter>
<parameter name="link" type="string">
<label i18n="true">plugin.web:PLUGINS_WEB_SERVICE_FILTERED_CONTENTS_LINK</label>
<description i18n="true">SYNDICATION_SERVICE_SERVICE_RSS_LINK_TITLE_DESC</description>
<widget>edition.select-page</widget>
<widget-params>
<param name="siteContext">current</param>
<param name="sitemapContext">current</param>
</widget-params>
</parameter>
<parameter name="link-title" type="string">
<label i18n="true">plugin.web:PLUGINS_WEB_SERVICE_FILTERED_CONTENTS_LINK_TITLE</label>
<description i18n="true">plugin.web:PLUGINS_WEB_SERVICE_FILTERED_CONTENTS_LINK_TITLE_DESC</description>
</parameter>
<parameter name="xslt" type="string">
<label i18n="true">SYNDICATION_SERVICE_READ_XSLT</label>
<description i18n="true">SYNDICATION_SERVICE_READ_XSLT_DESC</description>
<default-value>pages/services/feed/feed2xhtml_1.2.xsl</default-value>
<validation>
<mandatory/>
</validation>
<widget>edition.combobox</widget>
<enumeration>
<custom-enumerator class="org.ametys.web.service.ServiceXSLTEnumerator">
<path>pages/services/feed</path>
<values>
<value>pages/services/feed/feed2xhtml_1.2.xsl</value>
<value>pages/services/feed/feedmulticol2xhtml_1.2.xsl</value>
</values>
</custom-enumerator>
</enumeration>
</parameter>
</parameters>
<indexation>
<parameter>header</parameter>
</indexation>
<css>
<file plugin="core-ui">font/ametys/AmetysIcon.css</file>
</css>
</extension>

syndication/syndication.service.cache.policy

Extensions:

org.ametys.plugins.syndication.service.RSSCachePolicy

Associated java class:
org.ametys.web.cache.service.IsolatedServiceCachePolicy

Extension point extended:
org.ametys.web.cache.pageelement.PageElementCachePolicyExtensionPoint/zoneItem

Configuration:

<extension point="org.ametys.web.cache.pageelement.PageElementCachePolicyExtensionPoint/zoneItem" id="org.ametys.plugins.syndication.service.RSSCachePolicy" class="org.ametys.web.cache.service.IsolatedServiceCachePolicy">
<service id="org.ametys.plugins.syndication.service.RSS"/>
</extension>