You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2004/07/06 23:32:33 UTC
cvs commit: jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/common JetspeedServiceReference.java
taylor 2004/07/06 14:32:33
Modified: jetspeed-api/src/java/org/apache/jetspeed/om/common/portlet
PortletApplication.java
MutablePortletApplication.java
Added: jetspeed-api/src/java/org/apache/jetspeed/om/common
JetspeedServiceReference.java
Log:
added new JetspeedServicesReference interface to Jetspeed Api
completed step 1 of JS2-70 -- Support service definitions in Jetspeed portlet descriptor
step 3 is completed, leaving only step 2 (validation)
http://nagoya.apache.org/jira/browse/JS2-70
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.2 +9 -1 jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/common/portlet/PortletApplication.java
Index: PortletApplication.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/common/portlet/PortletApplication.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- PortletApplication.java 6 Jul 2004 16:15:13 -0000 1.1
+++ PortletApplication.java 6 Jul 2004 21:32:33 -0000 1.2
@@ -93,4 +93,12 @@
*/
int getApplicationType();
+ /**
+ * Gets a collection of all Jetspeed Services allowed for this application.
+ *
+ * @see org.apache.jetspeed.om.common.JetspeedServiceReference
+ * @return The collection of services of type <code>JetspeedServiceReference</code>.
+ */
+ Collection getJetspeedServices();
+
}
1.5 +9 -1 jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/common/portlet/MutablePortletApplication.java
Index: MutablePortletApplication.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/common/portlet/MutablePortletApplication.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- MutablePortletApplication.java 6 Jul 2004 16:15:13 -0000 1.4
+++ MutablePortletApplication.java 6 Jul 2004 21:32:33 -0000 1.5
@@ -19,6 +19,7 @@
import java.util.Collection;
import org.apache.jetspeed.om.common.GenericMetadata;
+import org.apache.jetspeed.om.common.JetspeedServiceReference;
import org.apache.jetspeed.om.common.UserAttribute;
import org.apache.jetspeed.om.common.UserAttributeRef;
import org.apache.pluto.om.portlet.PortletDefinition;
@@ -136,4 +137,11 @@
* stored in Jetspeed managed portlet application space.
*/
public static final int LOCAL = 1;
+
+ /**
+ * Adds a Jetspeed component service to the collection of component services allowed for this application.
+ *
+ * @param service The component service being added.
+ */
+ void addJetspeedService(JetspeedServiceReference service);
}
1.1 jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/common/JetspeedServiceReference.java
Index: JetspeedServiceReference.java
===================================================================
/* Copyright 2004 Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jetspeed.om.common;
import java.io.Serializable;
/**
* Defines Jetspeed services supported by a portlet application.
*
* @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
*/
public interface JetspeedServiceReference extends Serializable
{
/**
* The name of the Jetspeed Component Service as defined in the component assembly.
*
* @return
*/
String getName();
/**
* The name of the Jetspeed Component Service as defined in the component assembly.
*
* @param name
*/
void setName(String name);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org