From portal-commits at lists.jboss.org Sun Nov 25 10:08:35 2007 Content-Type: multipart/mixed; boundary="===============1335479917087802253==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r9090 - in branches/presentation/presentation/src/main/org/jboss/portal/presentation: model and 1 other directory. Date: Sun, 25 Nov 2007 10:08:34 -0500 Message-ID: --===============1335479917087802253== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: julien(a)jboss.com Date: 2007-11-25 10:08:34 -0500 (Sun, 25 Nov 2007) New Revision: 9090 Added: branches/presentation/presentation/src/main/org/jboss/portal/presentatio= n/model/StateScope.java Modified: branches/presentation/presentation/src/main/org/jboss/portal/presentatio= n/impl/model/UIObjectImpl.java branches/presentation/presentation/src/main/org/jboss/portal/presentatio= n/model/UIObject.java Log: added getProperty on UIObject but with no implementation yet (placeholder) Modified: branches/presentation/presentation/src/main/org/jboss/portal/pres= entation/impl/model/UIObjectImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/presentation/presentation/src/main/org/jboss/portal/presentati= on/impl/model/UIObjectImpl.java 2007-11-23 16:40:10 UTC (rev 9089) +++ branches/presentation/presentation/src/main/org/jboss/portal/presentati= on/impl/model/UIObjectImpl.java 2007-11-25 15:08:34 UTC (rev 9090) @@ -22,19 +22,14 @@ *************************************************************************= *****/ package org.jboss.portal.presentation.impl.model; = -import java.util.List; -import java.util.ArrayList; -import java.io.Serializable; - +import org.jboss.portal.common.NotYetImplemented; +import org.jboss.portal.presentation.model.StateScope; import org.jboss.portal.presentation.model.UIObject; -import org.jboss.portal.presentation.model.UIContext; -import org.jboss.portal.presentation.model.UIPortal; -import org.jboss.portal.presentation.model.UIContainer; -import org.jboss.portal.presentation.model.UIWindow; -import org.jboss.portal.presentation.model.UIPage; - import org.jboss.portal.presentation.model.state.ObjectState; = +import java.io.Serializable; +import java.util.List; + /** * @author Sohil Shah * @@ -108,6 +103,11 @@ return this.id; } = + public String getProperty(StateScope scope, String propertyName) + { + throw new NotYetImplemented("Just a place holder for now"); + } + public UIObject getChild(String name) { for (UIObject child : getChildren()) Added: branches/presentation/presentation/src/main/org/jboss/portal/present= ation/model/StateScope.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/presentation/presentation/src/main/org/jboss/portal/presentati= on/model/StateScope.java (rev 0) +++ branches/presentation/presentation/src/main/org/jboss/portal/presentati= on/model/StateScope.java 2007-11-25 15:08:34 UTC (rev 9090) @@ -0,0 +1,45 @@ +/*************************************************************************= ***** + * JBoss, a division of Red Hat = * + * Copyright 2006, Red Hat Middleware, LLC, and individual = * + * contributors as indicated by the @authors tag. See the = * + * copyright.txt in the distribution for a full listing of = * + * individual contributors. = * + * = * + * This is free software; you can redistribute it and/or modify it = * + * under the terms of the GNU Lesser General Public License as = * + * published by the Free Software Foundation; either version 2.1 of = * + * the License, or (at your option) any later version. = * + * = * + * This software is distributed in the hope that it will be useful, = * + * but WITHOUT ANY WARRANTY; without even the implied warranty of = * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU = * + * Lesser General Public License for more details. = * + * = * + * You should have received a copy of the GNU Lesser General Public = * + * License along with this software; if not, write to the Free = * + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA = * + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. = * + *************************************************************************= *****/ +package org.jboss.portal.presentation.model; + +/** + * @author Julien Viet + * @version $Revision: 1.1 $ + */ +public enum StateScope +{ + /** + * The content scope. = + */ + CONTENT, + + /** + * The navigational scope. + */ + NAVIGATIONAL, + + /** + * The server scope. + */ + SERVER +} Modified: branches/presentation/presentation/src/main/org/jboss/portal/pres= entation/model/UIObject.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/presentation/presentation/src/main/org/jboss/portal/presentati= on/model/UIObject.java 2007-11-23 16:40:10 UTC (rev 9089) +++ branches/presentation/presentation/src/main/org/jboss/portal/presentati= on/model/UIObject.java 2007-11-25 15:08:34 UTC (rev 9090) @@ -50,6 +50,9 @@ = UIObject getChild(String name); = + + String getProperty(StateScope scope, String propertyName); + /** * Create a child with a specified type. * --===============1335479917087802253==--