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 2005/11/14 08:33:26 UTC
svn commit: r344064 - in
/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout:
./ Coordinate.java PortletPlacementException.java
PortletPlacementManager.java
Author: taylor
Date: Sun Nov 13 23:33:21 2005
New Revision: 344064
URL: http://svn.apache.org/viewcvs?rev=344064&view=rev
Log:
http://issues.apache.org/jira/browse/JS2-387
Layout pipeline (AJAX), Portlet Placement Manager
base code checked in
still need to integrate into pipeline
Added:
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/Coordinate.java
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/PortletPlacementException.java
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/PortletPlacementManager.java
Added: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/Coordinate.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/Coordinate.java?rev=344064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/Coordinate.java (added)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/Coordinate.java Sun Nov 13 23:33:21 2005
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2000-2004 The 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.layout;
+
+/**
+ * Abstracts coordinate parameters for portlet placement
+ *
+ * @author <a>David Gurney</a>
+ * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
+ * @version $Id: $
+ */
+public interface Coordinate
+{
+ public int getOldCol();
+ public int getOldRow();
+ public int getNewCol();
+ public int getNewRow();
+}
Added: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/PortletPlacementException.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/PortletPlacementException.java?rev=344064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/PortletPlacementException.java (added)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/PortletPlacementException.java Sun Nov 13 23:33:21 2005
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2000-2004 The 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.layout;
+
+/**
+ * Handles portlet placement exceptions
+ *
+ * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
+ * @author <a>David Gurney</a>
+ * @version $Id: $
+ */
+public class PortletPlacementException extends Exception
+{
+ public PortletPlacementException(String message)
+ {
+ super(message);
+ }
+}
Added: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/PortletPlacementManager.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/PortletPlacementManager.java?rev=344064&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/PortletPlacementManager.java (added)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/layout/PortletPlacementManager.java Sun Nov 13 23:33:21 2005
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2000-2004 The 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.layout;
+
+import org.apache.jetspeed.om.page.Fragment;
+
+/**
+ * Handles portlet placement for client such as AJAX client side
+ *
+ * @author <a>David Gurney</a>
+ * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
+ * @version $Id: $
+ */
+public interface PortletPlacementManager
+{
+ public Coordinate moveAbs(Fragment p_oFragment, Coordinate p_oNewCoordinate) throws PortletPlacementException;
+ public Coordinate moveUp(Fragment p_oFragment) throws PortletPlacementException;
+ public Coordinate moveDown(Fragment p_oFragment) throws PortletPlacementException;
+ public Coordinate moveLeft(Fragment p_oFragment) throws PortletPlacementException;
+ public Coordinate moveRight(Fragment p_oFragment) throws PortletPlacementException;
+ public Coordinate add(String p_oPortletDefinitionID, Coordinate p_oNewCoordinate) throws PortletPlacementException;
+ public Coordinate remove(Fragment p_oFragment) throws PortletPlacementException;
+ public int getNumCols() throws PortletPlacementException;
+ public int getNumRows(int p_iCol) throws PortletPlacementException;
+ public Fragment getFragmentAtNewCoordinate(Coordinate p_oCoordinate) throws PortletPlacementException;
+ public Fragment getFragmentAtOldCoordinate(Coordinate p_oCoordinate) throws PortletPlacementException;
+ public Fragment getFragmentById(String p_sId) throws PortletPlacementException;
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org