You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by sc...@apache.org on 2011/04/11 19:34:06 UTC

svn commit: r1091138 - in /incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model: ./ IColumn.java IPage.java IPerson.java IPersonWidget.java IRegion.java IRegionWidget.java ITab.java IWidget.java

Author: scottbw
Date: Mon Apr 11 17:34:06 2011
New Revision: 1091138

URL: http://svn.apache.org/viewvc?rev=1091138&view=rev
Log:
Added "icebreaker" interface models

Added:
    incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/
    incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IColumn.java
    incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IPage.java
    incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IPerson.java
    incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IPersonWidget.java
    incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IRegion.java
    incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IRegionWidget.java
    incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/ITab.java
    incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IWidget.java

Added: incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IColumn.java
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IColumn.java?rev=1091138&view=auto
==============================================================================
--- incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IColumn.java (added)
+++ incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IColumn.java Mon Apr 11 17:34:06 2011
@@ -0,0 +1,26 @@
+/*
+ * 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.rave.portal.web.model;
+
+/**
+ * A region that acts as a column within a multi-column page layout
+ */
+public interface IColumn extends IRegion {
+
+}

Added: incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IPage.java
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IPage.java?rev=1091138&view=auto
==============================================================================
--- incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IPage.java (added)
+++ incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IPage.java Mon Apr 11 17:34:06 2011
@@ -0,0 +1,38 @@
+/*
+ * 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.rave.portal.web.model;
+
+import java.util.Collection;
+
+/**
+ * A page, which consists of regions, and which may be owned by a user
+ */
+public interface IPage {
+	
+	public Collection <IRegion> getRegions();
+	
+	public void addRegion(IRegion region);
+	
+	public void removeRegion(IRegion region);
+	
+	public IPerson getOwner();
+	
+	public void setOwner(IPerson owner);
+
+}

Added: incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IPerson.java
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IPerson.java?rev=1091138&view=auto
==============================================================================
--- incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IPerson.java (added)
+++ incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IPerson.java Mon Apr 11 17:34:06 2011
@@ -0,0 +1,26 @@
+/*
+ * 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.rave.portal.web.model;
+
+/**
+ * A person
+ */
+public interface IPerson {
+
+}

Added: incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IPersonWidget.java
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IPersonWidget.java?rev=1091138&view=auto
==============================================================================
--- incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IPersonWidget.java (added)
+++ incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IPersonWidget.java Mon Apr 11 17:34:06 2011
@@ -0,0 +1,35 @@
+/*
+ * 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.rave.portal.web.model;
+
+/**
+ * An instance of an IWidget for a particular IPerson; for example, the
+ * widget instance for the current viewer
+ */
+public interface IPersonWidget {
+	
+	public IWidget getWidget();
+	
+	public void setWidget(IWidget widget);
+	
+	public IPerson getPerson();
+	
+	public void setPerson(IPerson person);
+
+}

Added: incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IRegion.java
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IRegion.java?rev=1091138&view=auto
==============================================================================
--- incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IRegion.java (added)
+++ incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IRegion.java Mon Apr 11 17:34:06 2011
@@ -0,0 +1,42 @@
+/*
+ * 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.rave.portal.web.model;
+
+import java.util.Collection;
+
+/**
+ * A region of a page, which can contain widgets, or nested regions
+ */
+public interface IRegion {
+	
+	public IPage getPage();
+	
+	public Collection<IRegionWidget> getRegionWidgets();
+	
+	public void addRegionWidget(IRegionWidget widget);
+	
+	public void removeRegionWidget(IRegionWidget widget);
+	
+	public Collection<IRegion> getRegions();
+	
+	public void addRegion(IRegion region);
+	
+	public void removeRegion(IRegion region);
+
+}

Added: incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IRegionWidget.java
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IRegionWidget.java?rev=1091138&view=auto
==============================================================================
--- incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IRegionWidget.java (added)
+++ incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IRegionWidget.java Mon Apr 11 17:34:06 2011
@@ -0,0 +1,34 @@
+/*
+ * 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.rave.portal.web.model;
+
+/**
+ * A widget within a region
+ */
+public interface IRegionWidget {
+	
+	public IWidget getWidget();
+	
+	public void setWidget(IWidget widget);
+	
+	public IRegion getRegion();
+	
+	public void setRegion(IRegion region);
+
+}

Added: incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/ITab.java
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/ITab.java?rev=1091138&view=auto
==============================================================================
--- incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/ITab.java (added)
+++ incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/ITab.java Mon Apr 11 17:34:06 2011
@@ -0,0 +1,26 @@
+/*
+ * 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.rave.portal.web.model;
+
+/**
+ * A region that acts as a tab within a tabbed page layout
+ */
+public interface ITab extends IRegion {
+
+}

Added: incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IWidget.java
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IWidget.java?rev=1091138&view=auto
==============================================================================
--- incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IWidget.java (added)
+++ incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/web/model/IWidget.java Mon Apr 11 17:34:06 2011
@@ -0,0 +1,30 @@
+/*
+ * 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.rave.portal.web.model;
+
+/**
+ * A widget
+ */
+public interface IWidget {
+
+	public String getTitle(String locale);
+	
+	public void setTitle(String title, String locale); 
+	
+}