28-Oct-06 (Created: 28-Oct-06) | More in 'Java-Portlets'

Samplecode: Some portlet definitions


<!--
*****************************************************
satya: start
*****************************************************
-->
<!--
*****************************************************
satya: portlet 4, AspirePortlet
*****************************************************
-->
   <portlet>
      <portlet-name>AspirePortlet1</portlet-name>
      <display-name>AspirePortlet1</display-name>
      <portlet-class>com.indent.portals.test.AspirePortlet</portlet-class>
      <expiration-cache>0</expiration-cache>
      <supports>
         <mime-type>text/html</mime-type>
      </supports>
      <portlet-info>
         <title>Aspire Portlet Title</title>
         <short-title>Aspire Portlet Short Title</short-title>
         <keywords>Aspire Portlet key words</keywords>
      </portlet-info>
      <portlet-preferences>
         <preference>
            <name>startingurl</name>
            <value>GlobalStartingURL</value>
         </preference>
      </portlet-preferences>
      <security-role-ref>
         <role-name>power-user</role-name>
      </security-role-ref>
      <security-role-ref>
         <role-name>user</role-name>
      </security-role-ref>
   </portlet>
   
   <portlet>
      <portlet-name>satya-portlet-1</portlet-name>
      <display-name>Satya Hello World</display-name>
      <portlet-class>com.indent.portals.test.SatyaHelloWorldPortlet</portlet-class>
      <expiration-cache>0</expiration-cache>
      <supports>
         <mime-type>text/html</mime-type>
      </supports>
      <portlet-info>
         <title>Satya Hello World</title>
         <short-title>Satya Hello World</short-title>
         <keywords>Satya Hello World</keywords>
      </portlet-info>
      <security-role-ref>
         <role-name>power-user</role-name>
      </security-role-ref>
      <security-role-ref>
         <role-name>user</role-name>
      </security-role-ref>
   </portlet>
<!--
*****************************************************
satya: portlet 2, IndentIFramePortlet
*****************************************************
-->
   <portlet>
      <portlet-name>IndentIFramePorlet2</portlet-name>
      <display-name>IndentIFramePorlet2DisplayName</display-name>
      <portlet-class>com.indent.portals.test.IndentIFramePortlet</portlet-class>
      <expiration-cache>0</expiration-cache>
      <supports>
         <mime-type>text/html</mime-type>
         <portlet-mode>edit</portlet-mode>
      </supports>
      <portlet-info>
         <title>Indent IFrame Portlet 2 Title</title>
         <short-title>Indent IFrame Portlet 2 Short Title</short-title>
         <keywords>Indent IFrame Portlet 2</keywords>
      </portlet-info>
      <portlet-preferences>
         <preference>
            <name>jsppage</name>
            <value>/indent/iframe.jsp</value>
         </preference>
         <preference>
            <name>src</name>
            <value>http://www.knowledgefolders.com/akc/test?a=b</value>
         </preference>
         <preference>
            <name>userAttributeNames</name>
            <value>abc,def</value>
         </preference>
      </portlet-preferences>
      <security-role-ref>
         <role-name>power-user</role-name>
      </security-role-ref>
      <security-role-ref>
         <role-name>user</role-name>
      </security-role-ref>
   </portlet>
<!--
*****************************************************
satya: portlet 3, IndentJSPPortlet
*****************************************************
-->
   <portlet>
      <portlet-name>satya-portlet-jspportlet-2</portlet-name>
      <display-name>IndentJSPPortlet2</display-name>
      <portlet-class>com.indent.portals.test.IndentJSPPortlet</portlet-class>
      <expiration-cache>0</expiration-cache>
      <supports>
         <mime-type>text/html</mime-type>
         <portlet-mode>edit</portlet-mode>
      </supports>
      <portlet-info>
         <title>Indent JSP Portlet 2</title>
         <short-title>Indent JSP Portlet 2</short-title>
         <keywords>Indent JSP Portlet 2</keywords>
      </portlet-info>
      <portlet-preferences>
         <preference>
            <name>jsppage</name>
            <value></value>
         </preference>
      </portlet-preferences>
      <security-role-ref>
         <role-name>power-user</role-name>
      </security-role-ref>
      <security-role-ref>
         <role-name>user</role-name>
      </security-role-ref>
   </portlet>
<!--
*****************************************************
satya: portlet 5, AspirePortlet
*****************************************************
-->
   <portlet>
      <portlet-name>AspirePortlet2</portlet-name>
      <display-name>AspirePortlet2</display-name>
      <portlet-class>com.indent.portals.test.AspirePortlet</portlet-class>
      <expiration-cache>0</expiration-cache>
      <supports>
         <mime-type>text/html</mime-type>
      </supports>
      <portlet-info>
         <title>Aspire Portlet Title 2</title>
         <short-title>Aspire Portlet Short Title 2</short-title>
         <keywords>Aspire Portlet key words 2</keywords>
      </portlet-info>
      <portlet-preferences>
         <preference>
            <name>startingurl</name>
            <value>GlobalStartingURL</value>
         </preference>
      </portlet-preferences>
      <security-role-ref>
         <role-name>power-user</role-name>
      </security-role-ref>
      <security-role-ref>
         <role-name>user</role-name>
      </security-role-ref>
   </portlet>

<!--
*****************************************************
satya: end
*****************************************************
-->