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 we...@apache.org on 2005/11/28 20:33:25 UTC

svn commit: r349472 - in /portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration: DecorationFactory.java Theme.java

Author: weaver
Date: Mon Nov 28 11:33:23 2005
New Revision: 349472

URL: http://svn.apache.org/viewcvs?rev=349472&view=rev
Log:
JS2-398:
- DecorationFactory added.
- Idea of a page "theme" added as an aggregate entity for all fragment decorators for a page.

Added:
    portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/DecorationFactory.java   (with props)
    portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/Theme.java

Added: 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=349472&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/DecorationFactory.java (added)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/DecorationFactory.java Mon Nov 28 11:33:23 2005
@@ -0,0 +1,16 @@
+package org.apache.jetspeed.decoration;
+
+import org.apache.jetspeed.om.page.Fragment;
+import org.apache.jetspeed.om.page.Page;
+import org.apache.jetspeed.request.RequestContext;
+
+public interface DecorationFactory
+{
+    Theme getTheme(Page page, RequestContext requestContext);
+    
+    PortletDecoration getPortletDecoration(String name, RequestContext requestContext);
+    
+    LayoutDecoration getLayoutDecoration(String name, RequestContext requestContext);
+    
+    Decoration getDecoration(Page page, Fragment fragment, RequestContext requestContext);    
+}

Propchange: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/DecorationFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/Theme.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/Theme.java?rev=349472&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/Theme.java (added)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/decoration/Theme.java Mon Nov 28 11:33:23 2005
@@ -0,0 +1,36 @@
+/*
+ * 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;
+
+import java.util.Set;
+
+import org.apache.jetspeed.om.page.Fragment;
+
+/**
+ * Theme provides a simple aggregation of all of the decorations
+ * within the current "page."
+ * 
+ * @author <href a="mailto:weaver@apache.org">Scott T. Weaver</a>
+ *
+ */
+public interface Theme 
+{
+    Set getStyleSheets();
+    
+    Decoration getDecoration(Fragment fragment);
+    
+    LayoutDecoration getPageLayoutDecoration();
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org