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/12/06 09:54:33 UTC
svn commit: r354370 - in
/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration:
DecorationFactory.java LayoutInfo.java
Author: taylor
Date: Tue Dec 6 00:54:31 2005
New Revision: 354370
URL: http://svn.apache.org/viewcvs?rev=354370&view=rev
Log:
adding theme-engine (decorator factory) assembly and service
Added:
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/LayoutInfo.java
Modified:
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/DecorationFactory.java
Modified: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/DecorationFactory.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/DecorationFactory.java?rev=354370&r1=354369&r2=354370&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/DecorationFactory.java (original)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/DecorationFactory.java Tue Dec 6 00:54:31 2005
@@ -1,5 +1,7 @@
package org.apache.jetspeed.decoration;
+import java.util.List;
+
import org.apache.jetspeed.om.page.Fragment;
import org.apache.jetspeed.om.page.Page;
import org.apache.jetspeed.request.RequestContext;
@@ -12,5 +14,27 @@
LayoutDecoration getLayoutDecoration(String name, RequestContext requestContext);
- Decoration getDecoration(Page page, Fragment fragment, RequestContext requestContext);
+ Decoration getDecoration(Page page, Fragment fragment, RequestContext requestContext);
+
+ /**
+ * Get the portal-wide list of page decorations.
+ *
+ * @return A list of page decorations of type <code>String</code>
+ */
+ List getPageDecorations(RequestContext request);
+
+ /**
+ * Get the portal-wide list of portlet decorations.
+ *
+ * @return A list of portlet decorations of type <code>String</code>
+ */
+ List getPortletDecorations(RequestContext request);
+
+ /**
+ * Get the portal-wide list of available layouts.
+ *
+ * @return A list of layout portlets of type <code>LayoutInfo</code>
+ */
+ List getLayouts(RequestContext request);
+
}
Added: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/LayoutInfo.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/LayoutInfo.java?rev=354370&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/LayoutInfo.java (added)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/LayoutInfo.java Tue Dec 6 00:54:31 2005
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2000-2001,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.decoration;
+
+public interface LayoutInfo
+{
+ String getName();
+
+ String getDescription();
+
+ String getDisplayName();
+}
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org