taylor 2003/12/28 18:51:17
Modified: commons/src/java/org/apache/jetspeed/om/common/portlet
MutablePortletApplication.java
Log:
Added Application Type to the MutablePortletApplication to support variants on the
deployment of a portlet application. The default is to deploy as a web application. Im
now exploring a second deployment type: deploying as a portlet application stored
within the Jetspeed web application.
Note 1: remember to build and install this jar before building the portal project
cd commons
maven jar:install
Note 2: Im proposing refactoring the deploy tools: (Roger, are you reading this? ;-)
- move the code that actually creates the portlet applications into the running
portal
- to deploy, simply drop a WAR file into a directory, and have a file scanner pickup
it up in the portal
Revision Changes Path
1.2 +44 -1
jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/om/common/portlet/MutablePortletApplication.java
Index: MutablePortletApplication.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/om/common/portlet/MutablePortletApplication.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MutablePortletApplication.java 28 Jul 2003 23:46:41 -0000 1.1
+++ MutablePortletApplication.java 29 Dec 2003 02:51:17 -0000 1.2
@@ -62,6 +62,12 @@
import org.apache.pluto.om.servlet.WebApplicationDefinition;
/**
+ * MutablePortletApplication
+ *
+ * @author <a href="mailto:[EMAIL PROTECTED]">David Sean Taylor</a>
+ * @version $Id$
+ */
+/**
*
* MutablePortletApplication
*
@@ -115,4 +121,41 @@
*/
void setVersion(String version);
+ /**
+ * Sets the Portlet Application type.
+ * Valid values are:
+ * <p>
+ * [EMAIL PROTECTED] MutablePortletApplication#WEBAPP} - A standard web
application, stored in the web application
+ * server's web application space.
+ * <p>
+ * [EMAIL PROTECTED] MutablePortletApplication#PORTLET_APP} - A portlet
application stored within Jetspeed's web application.
+ * <p>
+ * @param type The type of portlet application.
+ */
+ void setApplicationType(int type);
+
+ /**
+ * Gets the Portlet Application type.
+ * Valid values are:
+ * <p>
+ * [EMAIL PROTECTED] MutablePortletApplication#WEBAPP} - A standard web
application, stored in the web application
+ * server's web application space.
+ * <p>
+ * [EMAIL PROTECTED] MutablePortletApplication#PORTLET_APP} - A portlet
application stored within Jetspeed's web application.
+ * <p>
+ * @return The type of portlet application.
+ */
+ int getApplicationType();
+
+ /**
+ * Marks this application as a standard web application,
+ * stored in the web application server's web application space.
+ */
+ public static final int WEB_APP = 0;
+
+ /**
+ * Marks this application as a portlet application,
+ * stored in Jetspeed managed portlet application space.
+ */
+ public static final int PORTLET_APP = 1;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]