Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Here's a fragment declaration for ALM and a couple channel publishing fragments for demonstrating WSRP support.
Add this to /properties/al/fragments.xml

Code Block
xmlxml
titleA WSRP support fragment
xml
	<fragment name="WSRP" type="pushed">
		<description>Instances of the WSRP portlet</description>
		<groups>
			<group>Everyone</group>
		</groups>
		<restrictions>
			<restriction path="local" name="priority" value="15000-20000"/>
			<restriction path="local" name="depth" value="1"/>
		</restrictions>
		<folder name="WSRP Examples" immutable="Y" unremovable="Y" hidden="N">
			<folder name="column1" immutable="Y" unremovable="Y" hidden="N">
				<channel fname="sakai-announcements-wsrp" immutable="Y" unremovable="Y" hidden="N"/>
			</folder>
		</folder>
	</fragment>

Assumes Sakai 2.1.0 002 (or similar) running on port 8180. Place this in /properties/chanpub

xml
Code Block
xml
titleSakai announcements channel publishing fragment
xml
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE channel-definition SYSTEM "channelDefinition.dtd">

 
<channel-definition>

    <title>Sakai Announcements Tool via WSRP</title>
    <name>Sakai Announcements Tool via WSRP</name>
    <fname>sakai-announcements-wsrp</fname>
    <desc>The Sakai Announcements tool via WSRP.</desc>
    <type>Portlet</type>
    <class>org.jasig.portal.channels.portlet.CPortletAdapter</class>
    <timeout>60000</timeout>
    
    <hasedit>N</hasedit>
    <hashelp>N</hashelp>
    <hasabout>N</hasabout>

    <secure>N</secure>
    <locale>en_US</locale>
    
    <categories>
        <category>Development</category>
    </categories>
    
    <groups>
        <group>Everyone</group>
    </groups>
    
    <parameters>

        <!-- The syntax of the ID is [portlet-context-name].[portlet-name] -->
        <parameter>
            <name>portletDefinitionId</name>
            <value>proxyportlet.ProxyPortlet</value>
            <description>Identifies the portlet deployed within the portlet container.
            This channel uses the WSRP4j ProxyPortlet.</description>
            <ovrd>N</ovrd>
        </parameter>

        <!-- Portlet entity preference names will be prepended with "PORTLET." -->
        <parameter>
            <name>PORTLET.wsrp_markup_url</name>
            <value>http://localhost:8180/sakai-wsrp-producer/wsrp4j/WSRPBaseService</value>
            <description>Markup endpoint (Markup Interface URL)</description>
            <ovrd>N</ovrd>
        </parameter>
        
        <parameter>
            <name>PORTLET.wsrp_service_desc_url</name>
            <value>http://localhost:8180/sakai-wsrp-producer/wsrp4j/WSRPServiceDescriptionService</value>
            <description>Service description endpoint</description>
            <ovrd>N</ovrd>
        </parameter>
        
        <parameter>
            <name>PORTLET.wsrp_reg_url</name>
            <value>http://localhost:8180/sakai-wsrp-producer/wsrp4j/WSRPRegistrationService</value>
            <description>Registration endpoint</description>
            <ovrd>N</ovrd>
        </parameter>
        
        <parameter>
            <name>PORTLET.wsrp_portlet_mgmt_url</name>
            <value>http://localhost:8180/sakai-wsrp-producer/wsrp4j/WSRPPortletManagementService</value>
            <description>Portlet management endpoint</description>
            <ovrd>N</ovrd>
        </parameter>
        
        <parameter>
            <name>PORTLET.wsrp_portlet_handle</name>
            <value>sakai.announcements</value>
            <description>Sakai announcements tool</description>
            <ovrd>N</ovrd>
        </parameter>
        
    </parameters>
    
</channel-definition>