You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by dd...@apache.org on 2007/03/06 03:21:09 UTC
svn commit: r514958 - in
/portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/optional:
PortletInvocationEvent.java PortletInvocationListener.java
Author: ddewolf
Date: Mon Mar 5 18:21:08 2007
New Revision: 514958
URL: http://svn.apache.org/viewvc?view=rev&rev=514958
Log:
Missed two adds in last patch from branch
Added:
portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletInvocationEvent.java (with props)
portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletInvocationListener.java (with props)
Added: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletInvocationEvent.java
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletInvocationEvent.java?view=auto&rev=514958
==============================================================================
--- portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletInvocationEvent.java (added)
+++ portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletInvocationEvent.java Mon Mar 5 18:21:08 2007
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.pluto.spi.optional;
+
+import org.apache.pluto.PortletWindow;
+import org.apache.pluto.Constants;
+
+import javax.portlet.PortletRequest;
+
+
+public class PortletInvocationEvent {
+
+ public static int LOAD = Constants.METHOD_NOOP.intValue();
+
+ public static int ACTION = Constants.METHOD_ACTION.intValue();
+
+ public static int RENDER = Constants.METHOD_RENDER.intValue();
+
+ public static int ADMIN = Constants.METHOD_ADMIN.intValue();
+
+ private PortletRequest portletRequest;
+
+ private PortletWindow portletWindow;
+
+ private int invocationMethod;
+
+ public PortletInvocationEvent(PortletRequest portletRequest, PortletWindow portletWindow, int invocationMethod) {
+ this.portletRequest = portletRequest;
+ this.portletWindow = portletWindow;
+ this.invocationMethod = invocationMethod;
+ }
+
+ public PortletRequest getPortletRequest() {
+ return portletRequest;
+ }
+
+ public int getInvocationMethod() {
+ return invocationMethod;
+ }
+
+ public PortletWindow getPortletWindow() {
+ return portletWindow;
+ }
+
+}
Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletInvocationEvent.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletInvocationEvent.java
------------------------------------------------------------------------------
svn:keywords = Id Author Date Rev
Added: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletInvocationListener.java
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletInvocationListener.java?view=auto&rev=514958
==============================================================================
--- portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletInvocationListener.java (added)
+++ portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletInvocationListener.java Mon Mar 5 18:21:08 2007
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.pluto.spi.optional;
+
+
+public interface PortletInvocationListener {
+
+ void onBegin(PortletInvocationEvent event);
+
+ void onEnd(PortletInvocationEvent event);
+
+ void onError(PortletInvocationEvent event, Throwable error);
+
+}
Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletInvocationListener.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/optional/PortletInvocationListener.java
------------------------------------------------------------------------------
svn:keywords = Id Author Date Rev