I have developed a portlet customizer that I would like to contribute to Jetspeed. I have attached a file with the necessary patches to integrate the portlet customizer as well as the new templates and code that provide the functionality.
Please feel free to make comments and/or suggestions.
Please note: This customizer requires the RemoveMediaTypePatch file to be
applied. Without it, I believe a casting exception will occur.
Jeremy Ford
How to use:
1) Log in as admin
2) Go to the admin tab.
3) Choose portlet browser
You will notice that you now have the options to add a new portlet, update
an existing one, or delete an existing portlet.
Adding a portlet
1) Click on "Add Portlet"
2) Enter your information
4) Click on "Insert Portlet".
5) You will be taken back to the portlet browser and you should now see your
portlet
Updating a portlet
1) Choose a portlet and click on "Update Portlet"
2) You will notice 4 tabs. These tabs are broken down into info, media
types, categories, and parameter
3) Choose the tab of your choose and make modifications as necessary
4) The info tab allows to modify the main fields of a portlet
5) The media type tab allows you to add/remove media type entries to your
portlet. By default, there are none.
6) The categories tab allows you to add/remove categories to your portlet.
Your portlet will inherit the categories of your parent (if it has one).
If your portlet does not have any categories, then your parent's categories
will not show. Also, you cannot remove the categories that belong to your
parent.
7) The parameter tab allows you to add/modify/remove parameters. You can
choose to modify any of the values in this portlet at this point.
8) Since there is so much information that can be attached to parameters,
there is a more link so that you may investigate individual parameters more
thoroughly. Within this screen, you can choose to update any parameter
fields that you desire.
Deleting a portlet
1) Choose a portlet and click on "Delete Portlet"
2) Confirm your decision
3) The portlet will not be in the browser
Index: BasePortletInfoEntry.java
===================================================================
RCS file:
/home/cvspublic/jakarta-jetspeed/src/java/org/apache/jetspeed/om/registry/base/BasePortletInfoEntry.java,v
retrieving revision 1.4
diff -u -r1.4 BasePortletInfoEntry.java
--- BasePortletInfoEntry.java 3 Nov 2002 15:07:35 -0000 1.4
+++ BasePortletInfoEntry.java 23 Feb 2003 22:11:08 -0000
@@ -413,11 +413,14 @@
synchronized (medias)
{
mediasIdx.remove(name);
+
+ BaseMediaType m = new BaseMediaType();
+ m.setRef(name);
Iterator i = medias.iterator();
while (i.hasNext())
{
- if (i.next().equals(name))
+ if (i.next().equals(m))
{
i.remove();
return;
PortletBrowserPatch.zip
Description: Zip compressed data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
