Author: julien(a)jboss.com
Date: 2008-02-18 06:31:11 -0500 (Mon, 18 Feb 2008)
New Revision: 10015
Added:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/CacheInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/CapabilitiesInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/EventInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/EventingInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/MetaInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/ModeInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/NavigationInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/ParameterInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PortletInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PreferenceInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PreferencesInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/SecurityInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/SessionInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/TypeInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/WindowStateInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/ClientContextSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/InstanceContextSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/PortletInvocationContextSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/RequestContextSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/SecurityContextSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/UserContextSupport.java
Removed:
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/spi/
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/CacheInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/CapabilitiesInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/EventInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/EventingInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/MetaInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/ModeInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/NavigationInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/ParameterInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PortletInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PreferenceInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PreferencesInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/SecurityInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/SessionInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/TypeInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/WindowStateInfoSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/ClientContextSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/InstanceContextSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/PortletInvocationContextSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/RequestContextSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/SecurityContextSupport.java
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/UserContextSupport.java
Log:
move org.jboss.portal.portlet.support classes to test jar as they are targetted for
writing test cases and should not be used as basis for real implementations
Copied: modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info
(from rev 10000,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info)
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/CacheInfoSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/CacheInfoSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/CacheInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,56 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.info;
-
-import org.jboss.portal.portlet.info.CacheInfo;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 5448 $
- */
-public class CacheInfoSupport implements CacheInfo
-{
-
- /** . */
- private int expirationTimeMillis;
-
- public CacheInfoSupport(int expirationTimeMillis)
- {
- this.expirationTimeMillis = expirationTimeMillis;
- }
-
- public CacheInfoSupport()
- {
- this(0);
- }
-
- public int getExpirationSecs()
- {
- return expirationTimeMillis;
- }
-
- public void setExpirationTimeMillis(int expirationTimeMillis)
- {
- this.expirationTimeMillis = expirationTimeMillis;
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/CacheInfoSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/CacheInfoSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/CacheInfoSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/CacheInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,56 @@
+/******************************************************************************
+ * 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.portlet.support.info;
+
+import org.jboss.portal.portlet.info.CacheInfo;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 5448 $
+ */
+public class CacheInfoSupport implements CacheInfo
+{
+
+ /** . */
+ private int expirationTimeMillis;
+
+ public CacheInfoSupport(int expirationTimeMillis)
+ {
+ this.expirationTimeMillis = expirationTimeMillis;
+ }
+
+ public CacheInfoSupport()
+ {
+ this(0);
+ }
+
+ public int getExpirationSecs()
+ {
+ return expirationTimeMillis;
+ }
+
+ public void setExpirationTimeMillis(int expirationTimeMillis)
+ {
+ this.expirationTimeMillis = expirationTimeMillis;
+ }
+}
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/CapabilitiesInfoSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/CapabilitiesInfoSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/CapabilitiesInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,123 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.info;
-
-import org.jboss.portal.portlet.info.CapabilitiesInfo;
-import org.jboss.portal.portlet.info.ModeInfo;
-import org.jboss.portal.portlet.info.WindowStateInfo;
-import org.jboss.portal.Mode;
-import org.jboss.portal.WindowState;
-
-import java.util.Set;
-import java.util.HashSet;
-import java.util.Locale;
-import java.util.Collections;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
- */
-public class CapabilitiesInfoSupport implements CapabilitiesInfo
-{
-
- /** . */
- private Set<String> mimeTypes;
-
- /** . */
- private Set<ModeInfo> modes;
-
- /** . */
- private Set<WindowStateInfo> windowStates;
-
- /** . */
- private Set<Locale> locales;
-
- public CapabilitiesInfoSupport()
- {
- mimeTypes = new HashSet<String>();
- mimeTypes.add("text/html");
-
- //
- this.modes = new HashSet<ModeInfo>();
- modes.add(new ModeInfoSupport(Mode.VIEW));
- modes.add(new ModeInfoSupport(Mode.EDIT));
- modes.add(new ModeInfoSupport(Mode.HELP));
-
- //
- this.windowStates = new HashSet<WindowStateInfo>();
- windowStates.add(new WindowStateInfoSupport(WindowState.NORMAL));
- windowStates.add(new WindowStateInfoSupport(WindowState.MAXIMIZED));
- windowStates.add(new WindowStateInfoSupport(WindowState.MINIMIZED));
-
- //
- locales = new HashSet<Locale>();
- locales.add(Locale.ENGLISH);
- }
-
- public Set<String> getMimeTypes()
- {
- return mimeTypes;
- }
-
- public Set<ModeInfo> getAllModes()
- {
- return modes;
- }
-
- public Set<ModeInfo> getModes(String mimeType)
- {
- if (mimeTypes.contains(mimeType))
- {
- return modes;
- }
- return Collections.emptySet();
- }
-
- public Set<WindowStateInfo> getAllWindowStates()
- {
- return windowStates;
- }
-
- public Set<WindowStateInfo> getWindowStates(String mimeType)
- {
- if (mimeTypes.contains(mimeType))
- {
- return windowStates;
- }
- return Collections.emptySet();
- }
-
- public Set<Locale> getAllLocales()
- {
- return locales;
- }
-
- public Set<Locale> getLocales(String mimeType)
- {
- if (mimeTypes.contains(mimeType))
- {
- return locales;
- }
- return Collections.emptySet();
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/CapabilitiesInfoSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/CapabilitiesInfoSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/CapabilitiesInfoSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/CapabilitiesInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,123 @@
+/******************************************************************************
+ * 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.portlet.support.info;
+
+import org.jboss.portal.portlet.info.CapabilitiesInfo;
+import org.jboss.portal.portlet.info.ModeInfo;
+import org.jboss.portal.portlet.info.WindowStateInfo;
+import org.jboss.portal.Mode;
+import org.jboss.portal.WindowState;
+
+import java.util.Set;
+import java.util.HashSet;
+import java.util.Locale;
+import java.util.Collections;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 1.1 $
+ */
+public class CapabilitiesInfoSupport implements CapabilitiesInfo
+{
+
+ /** . */
+ private Set<String> mimeTypes;
+
+ /** . */
+ private Set<ModeInfo> modes;
+
+ /** . */
+ private Set<WindowStateInfo> windowStates;
+
+ /** . */
+ private Set<Locale> locales;
+
+ public CapabilitiesInfoSupport()
+ {
+ mimeTypes = new HashSet<String>();
+ mimeTypes.add("text/html");
+
+ //
+ this.modes = new HashSet<ModeInfo>();
+ modes.add(new ModeInfoSupport(Mode.VIEW));
+ modes.add(new ModeInfoSupport(Mode.EDIT));
+ modes.add(new ModeInfoSupport(Mode.HELP));
+
+ //
+ this.windowStates = new HashSet<WindowStateInfo>();
+ windowStates.add(new WindowStateInfoSupport(WindowState.NORMAL));
+ windowStates.add(new WindowStateInfoSupport(WindowState.MAXIMIZED));
+ windowStates.add(new WindowStateInfoSupport(WindowState.MINIMIZED));
+
+ //
+ locales = new HashSet<Locale>();
+ locales.add(Locale.ENGLISH);
+ }
+
+ public Set<String> getMimeTypes()
+ {
+ return mimeTypes;
+ }
+
+ public Set<ModeInfo> getAllModes()
+ {
+ return modes;
+ }
+
+ public Set<ModeInfo> getModes(String mimeType)
+ {
+ if (mimeTypes.contains(mimeType))
+ {
+ return modes;
+ }
+ return Collections.emptySet();
+ }
+
+ public Set<WindowStateInfo> getAllWindowStates()
+ {
+ return windowStates;
+ }
+
+ public Set<WindowStateInfo> getWindowStates(String mimeType)
+ {
+ if (mimeTypes.contains(mimeType))
+ {
+ return windowStates;
+ }
+ return Collections.emptySet();
+ }
+
+ public Set<Locale> getAllLocales()
+ {
+ return locales;
+ }
+
+ public Set<Locale> getLocales(String mimeType)
+ {
+ if (mimeTypes.contains(mimeType))
+ {
+ return locales;
+ }
+ return Collections.emptySet();
+ }
+}
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/EventInfoSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/EventInfoSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/EventInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,111 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.info;
-
-import org.jboss.portal.portlet.info.EventInfo;
-import org.jboss.portal.portlet.info.TypeInfo;
-import org.jboss.portal.common.i18n.LocalizedString;
-
-import javax.xml.namespace.QName;
-import java.util.Collection;
-import java.util.List;
-import java.util.ArrayList;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 630 $
- */
-public class EventInfoSupport implements EventInfo
-{
-
- /** . */
- private QName name;
-
- /** . */
- private TypeInfoSupport type;
-
- /** . */
- private LocalizedString displayName;
-
- /** . */
- private LocalizedString description;
-
- /** . */
- private List<QName> aliases;
-
- public EventInfoSupport(QName name, TypeInfoSupport type)
- {
- this.name = name;
- this.type = type;
- this.aliases = new ArrayList<QName>();
- this.displayName = new LocalizedString("Event " + name);
- this.description = new LocalizedString("Description of event " + name);
- }
-
- public EventInfoSupport(QName name, String type)
- {
- this.name = name;
- this.type = new TypeInfoSupport(type);
- this.aliases = new ArrayList<QName>();
- }
-
- public QName getName()
- {
- return name;
- }
-
- public TypeInfo getType()
- {
- return type;
- }
-
- public LocalizedString getDisplayName()
- {
- return displayName;
- }
-
- public LocalizedString getDescription()
- {
- return description;
- }
-
- public Collection<QName> getAliases()
- {
- return aliases;
- }
-
- public void setDisplayName(LocalizedString displayName)
- {
- this.displayName = displayName;
- }
-
- public void setDescription(LocalizedString description)
- {
- this.description = description;
- }
-
- public void addAlias(QName alias)
- {
- aliases.add(alias);
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/EventInfoSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/EventInfoSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/EventInfoSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/EventInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,120 @@
+/******************************************************************************
+ * 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.portlet.support.info;
+
+import org.jboss.portal.portlet.info.EventInfo;
+import org.jboss.portal.portlet.info.TypeInfo;
+import org.jboss.portal.common.i18n.LocalizedString;
+
+import javax.xml.namespace.QName;
+import java.util.Collection;
+import java.util.List;
+import java.util.ArrayList;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 630 $
+ */
+public class EventInfoSupport implements EventInfo
+{
+
+ /** . */
+ private QName name;
+
+ /** . */
+ private TypeInfoSupport type;
+
+ /** . */
+ private LocalizedString displayName;
+
+ /** . */
+ private LocalizedString description;
+
+ /** . */
+ private List<QName> aliases;
+
+ public EventInfoSupport(QName name)
+ {
+ this.name = name;
+ this.type = null;
+ this.aliases = new ArrayList<QName>();
+ this.displayName = new LocalizedString("Event " + name);
+ this.description = new LocalizedString("Description of event " + name);
+ }
+
+ public EventInfoSupport(QName name, TypeInfoSupport type)
+ {
+ this.name = name;
+ this.type = type;
+ this.aliases = new ArrayList<QName>();
+ this.displayName = new LocalizedString("Event " + name);
+ this.description = new LocalizedString("Description of event " + name);
+ }
+
+ public EventInfoSupport(QName name, String type)
+ {
+ this.name = name;
+ this.type = new TypeInfoSupport(type);
+ this.aliases = new ArrayList<QName>();
+ }
+
+ public QName getName()
+ {
+ return name;
+ }
+
+ public TypeInfo getType()
+ {
+ return type;
+ }
+
+ public LocalizedString getDisplayName()
+ {
+ return displayName;
+ }
+
+ public LocalizedString getDescription()
+ {
+ return description;
+ }
+
+ public Collection<QName> getAliases()
+ {
+ return aliases;
+ }
+
+ public void setDisplayName(LocalizedString displayName)
+ {
+ this.displayName = displayName;
+ }
+
+ public void setDescription(LocalizedString description)
+ {
+ this.description = description;
+ }
+
+ public void addAlias(QName alias)
+ {
+ aliases.add(alias);
+ }
+}
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/EventingInfoSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/EventingInfoSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/EventingInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,70 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.info;
-
-import org.jboss.portal.portlet.info.EventingInfo;
-
-import javax.xml.namespace.QName;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 630 $
- */
-public class EventingInfoSupport implements EventingInfo
-{
-
- /** . */
- private Map<QName, EventInfoSupport> producedEvents;
-
- /** . */
- private Map<QName, EventInfoSupport> consumedEvents;
-
- public EventingInfoSupport()
- {
- producedEvents = new HashMap<QName, EventInfoSupport>();
- consumedEvents = new HashMap<QName, EventInfoSupport>();
- }
-
- public void addProducedEvent(EventInfoSupport event)
- {
- producedEvents.put(event.getName(), event);
- }
-
- public void addConsumedEvent(EventInfoSupport event)
- {
- producedEvents.put(event.getName(), event);
- }
-
- public Map<QName, EventInfoSupport> getProducedEvents()
- {
- return Collections.unmodifiableMap(producedEvents);
- }
-
- public Map<QName, EventInfoSupport> getConsumedEvents()
- {
- return Collections.unmodifiableMap(consumedEvents);
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/EventingInfoSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/EventingInfoSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/EventingInfoSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/EventingInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,70 @@
+/******************************************************************************
+ * 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.portlet.support.info;
+
+import org.jboss.portal.portlet.info.EventingInfo;
+
+import javax.xml.namespace.QName;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 630 $
+ */
+public class EventingInfoSupport implements EventingInfo
+{
+
+ /** . */
+ private Map<QName, EventInfoSupport> producedEvents;
+
+ /** . */
+ private Map<QName, EventInfoSupport> consumedEvents;
+
+ public EventingInfoSupport()
+ {
+ producedEvents = new HashMap<QName, EventInfoSupport>();
+ consumedEvents = new HashMap<QName, EventInfoSupport>();
+ }
+
+ public void addProducedEvent(EventInfoSupport event)
+ {
+ producedEvents.put(event.getName(), event);
+ }
+
+ public void addConsumedEvent(EventInfoSupport event)
+ {
+ consumedEvents.put(event.getName(), event);
+ }
+
+ public Map<QName, EventInfoSupport> getProducedEvents()
+ {
+ return Collections.unmodifiableMap(producedEvents);
+ }
+
+ public Map<QName, EventInfoSupport> getConsumedEvents()
+ {
+ return Collections.unmodifiableMap(consumedEvents);
+ }
+}
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/MetaInfoSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/MetaInfoSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/MetaInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,98 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.info;
-
-import org.jboss.portal.common.i18n.LocalizedString;
-import org.jboss.portal.portlet.info.MetaInfo;
-
-import java.util.HashMap;
-import java.util.Locale;
-import java.util.Map;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
- */
-public class MetaInfoSupport implements MetaInfo
-{
-
- /** . */
- private Map values = new HashMap();
-
- public LocalizedString getMetaValue(String key)
- {
- if (key == null)
- {
- throw new IllegalArgumentException();
- }
- return (LocalizedString)values.get(key);
- }
-
- public void addValue(String key, Locale locale, String value)
- {
- if (key == null)
- {
- throw new IllegalArgumentException();
- }
- LocalizedString string = new LocalizedString(value, locale);
- if (values.put(key, string) != null)
- {
- throw new IllegalStateException("Already existing");
- }
- }
-
- public void setTitle(String name)
- {
- addValue(MetaInfo.TITLE, Locale.ENGLISH, name);
- }
-
- public void setShortTitle(String name)
- {
- addValue(MetaInfo.SHORT_TITLE, Locale.ENGLISH, name);
- }
-
- public void setKeywords(String name)
- {
- addValue(MetaInfo.KEYWORDS, Locale.ENGLISH, name);
- }
-
- public void setDisplayName(String name)
- {
- addValue(MetaInfo.DISPLAY_NAME, Locale.ENGLISH, name);
- }
-
- public void setDescription(String name)
- {
- addValue(MetaInfo.DESCRIPTION, Locale.ENGLISH, name);
- }
-
- public String getDisplayName()
- {
- LocalizedString string = getMetaValue(MetaInfo.DISPLAY_NAME);
- if (string == null)
- {
- throw new IllegalStateException();
- }
- return string.getString(Locale.ENGLISH, true);
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/MetaInfoSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/MetaInfoSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/MetaInfoSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/MetaInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,98 @@
+/******************************************************************************
+ * 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.portlet.support.info;
+
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.portlet.info.MetaInfo;
+
+import java.util.HashMap;
+import java.util.Locale;
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 1.1 $
+ */
+public class MetaInfoSupport implements MetaInfo
+{
+
+ /** . */
+ private Map values = new HashMap();
+
+ public LocalizedString getMetaValue(String key)
+ {
+ if (key == null)
+ {
+ throw new IllegalArgumentException();
+ }
+ return (LocalizedString)values.get(key);
+ }
+
+ public void addValue(String key, Locale locale, String value)
+ {
+ if (key == null)
+ {
+ throw new IllegalArgumentException();
+ }
+ LocalizedString string = new LocalizedString(value, locale);
+ if (values.put(key, string) != null)
+ {
+ throw new IllegalStateException("Already existing");
+ }
+ }
+
+ public void setTitle(String name)
+ {
+ addValue(MetaInfo.TITLE, Locale.ENGLISH, name);
+ }
+
+ public void setShortTitle(String name)
+ {
+ addValue(MetaInfo.SHORT_TITLE, Locale.ENGLISH, name);
+ }
+
+ public void setKeywords(String name)
+ {
+ addValue(MetaInfo.KEYWORDS, Locale.ENGLISH, name);
+ }
+
+ public void setDisplayName(String name)
+ {
+ addValue(MetaInfo.DISPLAY_NAME, Locale.ENGLISH, name);
+ }
+
+ public void setDescription(String name)
+ {
+ addValue(MetaInfo.DESCRIPTION, Locale.ENGLISH, name);
+ }
+
+ public String getDisplayName()
+ {
+ LocalizedString string = getMetaValue(MetaInfo.DISPLAY_NAME);
+ if (string == null)
+ {
+ throw new IllegalStateException();
+ }
+ return string.getString(Locale.ENGLISH, true);
+ }
+}
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/ModeInfoSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/ModeInfoSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/ModeInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,64 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.info;
-
-import org.jboss.portal.Mode;
-import org.jboss.portal.common.i18n.LocalizedString;
-import org.jboss.portal.portlet.info.ModeInfo;
-
-import java.util.Locale;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 5448 $
- */
-public class ModeInfoSupport implements ModeInfo
-{
-
- /** . */
- private final LocalizedString description;
-
- /** . */
- private final Mode mode;
-
- public ModeInfoSupport(Mode mode)
- {
- this.description = new LocalizedString(mode + " mode", Locale.ENGLISH);
- this.mode = mode;
- }
-
- public LocalizedString getDescription()
- {
- return description;
- }
-
- public Mode getMode()
- {
- return mode;
- }
-
- public String getModeName()
- {
- return mode.toString();
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/ModeInfoSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/ModeInfoSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/ModeInfoSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/ModeInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,64 @@
+/******************************************************************************
+ * 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.portlet.support.info;
+
+import org.jboss.portal.Mode;
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.portlet.info.ModeInfo;
+
+import java.util.Locale;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 5448 $
+ */
+public class ModeInfoSupport implements ModeInfo
+{
+
+ /** . */
+ private final LocalizedString description;
+
+ /** . */
+ private final Mode mode;
+
+ public ModeInfoSupport(Mode mode)
+ {
+ this.description = new LocalizedString(mode + " mode", Locale.ENGLISH);
+ this.mode = mode;
+ }
+
+ public LocalizedString getDescription()
+ {
+ return description;
+ }
+
+ public Mode getMode()
+ {
+ return mode;
+ }
+
+ public String getModeName()
+ {
+ return mode.toString();
+ }
+}
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/NavigationInfoSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/NavigationInfoSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/NavigationInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,61 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.info;
-
-import org.jboss.portal.portlet.info.NavigationInfo;
-import org.jboss.portal.portlet.info.ParameterInfo;
-
-import java.util.Collection;
-import java.util.Map;
-import java.util.LinkedHashMap;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 630 $
- */
-public class NavigationInfoSupport implements NavigationInfo
-{
-
- /** . */
- private final Map<String, ParameterInfoSupport> publicParameters;
-
- public NavigationInfoSupport()
- {
- publicParameters = new LinkedHashMap<String, ParameterInfoSupport>();
- }
-
- public void addPublicParameter(ParameterInfoSupport parameter)
- {
- publicParameters.put(parameter.getId(), parameter);
- }
-
- public ParameterInfo getPublicParameter(String id)
- {
- return publicParameters.get(id);
- }
-
- public Collection<? extends ParameterInfo> getPublicParameters()
- {
- return publicParameters.values();
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/NavigationInfoSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/NavigationInfoSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/NavigationInfoSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/NavigationInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,61 @@
+/******************************************************************************
+ * 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.portlet.support.info;
+
+import org.jboss.portal.portlet.info.NavigationInfo;
+import org.jboss.portal.portlet.info.ParameterInfo;
+
+import java.util.Collection;
+import java.util.Map;
+import java.util.LinkedHashMap;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 630 $
+ */
+public class NavigationInfoSupport implements NavigationInfo
+{
+
+ /** . */
+ private final Map<String, ParameterInfoSupport> publicParameters;
+
+ public NavigationInfoSupport()
+ {
+ publicParameters = new LinkedHashMap<String, ParameterInfoSupport>();
+ }
+
+ public void addPublicParameter(ParameterInfoSupport parameter)
+ {
+ publicParameters.put(parameter.getId(), parameter);
+ }
+
+ public ParameterInfo getPublicParameter(String id)
+ {
+ return publicParameters.get(id);
+ }
+
+ public Collection<? extends ParameterInfo> getPublicParameters()
+ {
+ return publicParameters.values();
+ }
+}
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/ParameterInfoSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/ParameterInfoSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/ParameterInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,89 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.info;
-
-import org.jboss.portal.portlet.info.ParameterInfo;
-import org.jboss.portal.common.i18n.LocalizedString;
-
-import javax.xml.namespace.QName;
-import java.util.Collection;
-import java.util.List;
-import java.util.ArrayList;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 630 $
- */
-public class ParameterInfoSupport implements ParameterInfo
-{
-
- /** . */
- private final String id;
-
- /** . */
- private final QName name;
-
- /** . */
- private LocalizedString description;
-
- /** . */
- private List<QName> aliases;
-
- public ParameterInfoSupport(String id, QName name)
- {
- this.id = id;
- this.name = name;
- this.aliases = new ArrayList<QName>();
- this.description = new LocalizedString("Description of event " + name);
- }
-
- public String getId()
- {
- return id;
- }
-
- public QName getName()
- {
- return name;
- }
-
- public LocalizedString getDescription()
- {
- return description;
- }
-
- public Collection<QName> getAliases()
- {
- return aliases;
- }
-
- public void setDescription(LocalizedString description)
- {
- this.description = description;
- }
-
- public void addAlias(QName alias)
- {
- aliases.add(alias);
- }
-}
\ No newline at end of file
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/ParameterInfoSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/ParameterInfoSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/ParameterInfoSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/ParameterInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,89 @@
+/******************************************************************************
+ * 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.portlet.support.info;
+
+import org.jboss.portal.portlet.info.ParameterInfo;
+import org.jboss.portal.common.i18n.LocalizedString;
+
+import javax.xml.namespace.QName;
+import java.util.Collection;
+import java.util.List;
+import java.util.ArrayList;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 630 $
+ */
+public class ParameterInfoSupport implements ParameterInfo
+{
+
+ /** . */
+ private final String id;
+
+ /** . */
+ private final QName name;
+
+ /** . */
+ private LocalizedString description;
+
+ /** . */
+ private List<QName> aliases;
+
+ public ParameterInfoSupport(String id, QName name)
+ {
+ this.id = id;
+ this.name = name;
+ this.aliases = new ArrayList<QName>();
+ this.description = new LocalizedString("Description of event " + name);
+ }
+
+ public String getId()
+ {
+ return id;
+ }
+
+ public QName getName()
+ {
+ return name;
+ }
+
+ public LocalizedString getDescription()
+ {
+ return description;
+ }
+
+ public Collection<QName> getAliases()
+ {
+ return aliases;
+ }
+
+ public void setDescription(LocalizedString description)
+ {
+ this.description = description;
+ }
+
+ public void addAlias(QName alias)
+ {
+ aliases.add(alias);
+ }
+}
\ No newline at end of file
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PortletInfoSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/PortletInfoSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PortletInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,115 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.info;
-
-import org.jboss.portal.portlet.info.CapabilitiesInfo;
-import org.jboss.portal.portlet.info.PortletInfo;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 5448 $
- */
-public class PortletInfoSupport implements PortletInfo
-{
-
- private String name;
- private String applicationName;
- private Boolean remotable;
- private PreferencesInfoSupport preferencesSupport = new PreferencesInfoSupport();
- private SecurityInfoSupport securitySupport = new SecurityInfoSupport();
- private CacheInfoSupport cacheSupport = new CacheInfoSupport();
- private SessionInfoSupport sessionSupport = new SessionInfoSupport();
- private MetaInfoSupport metaSupport = new MetaInfoSupport();
- private EventingInfoSupport eventsSupport = new EventingInfoSupport();
- private NavigationInfoSupport navigationSupport = new NavigationInfoSupport();
-
- public String getName()
- {
- return name;
- }
-
- public void setName(String name)
- {
- this.name = name;
- }
-
- public String getApplicationName()
- {
- return applicationName;
- }
-
- public void setApplicationName(String applicationName)
- {
- this.applicationName = applicationName;
- }
-
- public CapabilitiesInfo getCapabilities()
- {
- throw new UnsupportedOperationException("Implement me");
- }
-
- public PreferencesInfoSupport getPreferences()
- {
- return preferencesSupport;
- }
-
- public MetaInfoSupport getMeta()
- {
- return metaSupport;
- }
-
- public SecurityInfoSupport getSecurity()
- {
- return securitySupport;
- }
-
- public CacheInfoSupport getCache()
- {
- return cacheSupport;
- }
-
- public SessionInfoSupport getSession()
- {
- return sessionSupport;
- }
-
- public Boolean isRemotable()
- {
- return remotable;
- }
-
- public void setRemotable(Boolean remotable)
- {
- this.remotable = remotable;
- }
-
- public EventingInfoSupport getEventing()
- {
- return eventsSupport;
- }
-
- public NavigationInfoSupport getNavigation()
- {
- return navigationSupport;
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PortletInfoSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/PortletInfoSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PortletInfoSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PortletInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,115 @@
+/******************************************************************************
+ * 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.portlet.support.info;
+
+import org.jboss.portal.portlet.info.CapabilitiesInfo;
+import org.jboss.portal.portlet.info.PortletInfo;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 5448 $
+ */
+public class PortletInfoSupport implements PortletInfo
+{
+
+ private String name;
+ private String applicationName;
+ private Boolean remotable;
+ private PreferencesInfoSupport preferencesSupport = new PreferencesInfoSupport();
+ private SecurityInfoSupport securitySupport = new SecurityInfoSupport();
+ private CacheInfoSupport cacheSupport = new CacheInfoSupport();
+ private SessionInfoSupport sessionSupport = new SessionInfoSupport();
+ private MetaInfoSupport metaSupport = new MetaInfoSupport();
+ private EventingInfoSupport eventsSupport = new EventingInfoSupport();
+ private NavigationInfoSupport navigationSupport = new NavigationInfoSupport();
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ public String getApplicationName()
+ {
+ return applicationName;
+ }
+
+ public void setApplicationName(String applicationName)
+ {
+ this.applicationName = applicationName;
+ }
+
+ public CapabilitiesInfo getCapabilities()
+ {
+ throw new UnsupportedOperationException("Implement me");
+ }
+
+ public PreferencesInfoSupport getPreferences()
+ {
+ return preferencesSupport;
+ }
+
+ public MetaInfoSupport getMeta()
+ {
+ return metaSupport;
+ }
+
+ public SecurityInfoSupport getSecurity()
+ {
+ return securitySupport;
+ }
+
+ public CacheInfoSupport getCache()
+ {
+ return cacheSupport;
+ }
+
+ public SessionInfoSupport getSession()
+ {
+ return sessionSupport;
+ }
+
+ public Boolean isRemotable()
+ {
+ return remotable;
+ }
+
+ public void setRemotable(Boolean remotable)
+ {
+ this.remotable = remotable;
+ }
+
+ public EventingInfoSupport getEventing()
+ {
+ return eventsSupport;
+ }
+
+ public NavigationInfoSupport getNavigation()
+ {
+ return navigationSupport;
+ }
+}
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PreferenceInfoSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/PreferenceInfoSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PreferenceInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,99 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.info;
-
-import org.jboss.portal.common.i18n.LocalizedString;
-import org.jboss.portal.portlet.info.PreferenceInfo;
-
-import java.util.Locale;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 5448 $
- */
-public class PreferenceInfoSupport implements PreferenceInfo
-{
-
- /** . */
- private final String key;
-
- /** . */
- private LocalizedString displayName;
-
- /** . */
- private LocalizedString description;
-
- /** . */
- private Boolean readOnly;
-
- public PreferenceInfoSupport(String key)
- {
- this.key = key;
- this.displayName = new LocalizedString("Display name of " + key,
Locale.ENGLISH);
- this.description = new LocalizedString("Description of " + key,
Locale.ENGLISH);
- this.readOnly = null;
- }
-
- public PreferenceInfoSupport(String key, Boolean readOnly)
- {
- this.key = key;
- this.displayName = new LocalizedString("Display name of " + key,
Locale.ENGLISH);
- this.description = new LocalizedString("Description of " + key,
Locale.ENGLISH);
- this.readOnly = readOnly;
- }
-
- public String getKey()
- {
- return key;
- }
-
- public LocalizedString getDisplayName()
- {
- return displayName;
- }
-
- public LocalizedString getDescription()
- {
- return description;
- }
-
- public Boolean isReadOnly()
- {
- return readOnly;
- }
-
- public void setReadOnly(Boolean readOnly)
- {
- this.readOnly = readOnly;
- }
-
- public void setDisplayName(LocalizedString displayName)
- {
- this.displayName = displayName;
- }
-
- public void setDescription(LocalizedString description)
- {
- this.description = description;
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PreferenceInfoSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/PreferenceInfoSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PreferenceInfoSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PreferenceInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,99 @@
+/******************************************************************************
+ * 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.portlet.support.info;
+
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.portlet.info.PreferenceInfo;
+
+import java.util.Locale;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 5448 $
+ */
+public class PreferenceInfoSupport implements PreferenceInfo
+{
+
+ /** . */
+ private final String key;
+
+ /** . */
+ private LocalizedString displayName;
+
+ /** . */
+ private LocalizedString description;
+
+ /** . */
+ private Boolean readOnly;
+
+ public PreferenceInfoSupport(String key)
+ {
+ this.key = key;
+ this.displayName = new LocalizedString("Display name of " + key,
Locale.ENGLISH);
+ this.description = new LocalizedString("Description of " + key,
Locale.ENGLISH);
+ this.readOnly = null;
+ }
+
+ public PreferenceInfoSupport(String key, Boolean readOnly)
+ {
+ this.key = key;
+ this.displayName = new LocalizedString("Display name of " + key,
Locale.ENGLISH);
+ this.description = new LocalizedString("Description of " + key,
Locale.ENGLISH);
+ this.readOnly = readOnly;
+ }
+
+ public String getKey()
+ {
+ return key;
+ }
+
+ public LocalizedString getDisplayName()
+ {
+ return displayName;
+ }
+
+ public LocalizedString getDescription()
+ {
+ return description;
+ }
+
+ public Boolean isReadOnly()
+ {
+ return readOnly;
+ }
+
+ public void setReadOnly(Boolean readOnly)
+ {
+ this.readOnly = readOnly;
+ }
+
+ public void setDisplayName(LocalizedString displayName)
+ {
+ this.displayName = displayName;
+ }
+
+ public void setDescription(LocalizedString description)
+ {
+ this.description = description;
+ }
+}
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PreferencesInfoSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/PreferencesInfoSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PreferencesInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,76 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.info;
-
-import org.jboss.portal.common.value.Value;
-import org.jboss.portal.portlet.info.PreferenceInfo;
-import org.jboss.portal.portlet.info.PreferencesInfo;
-
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 5448 $
- */
-public class PreferencesInfoSupport implements PreferencesInfo
-{
-
- private final Map preferences;
-
- public PreferencesInfoSupport(Map preferences)
- {
- this.preferences = preferences;
- }
-
- public PreferencesInfoSupport()
- {
- this(new HashMap());
- }
-
- public Set getKeys()
- {
- return preferences.keySet();
- }
-
- public PreferenceInfo getPreference(String key) throws IllegalArgumentException
- {
- return (PreferenceInfo)preferences.get(key);
- }
-
- public void addPreference(PreferenceInfoSupport preference)
- {
- preferences.put(preference.getKey(), preference);
- }
-
- public void addPreference(String key)
- {
- preferences.put(key, new PreferenceInfoSupport(key));
- }
-
- public void addPreference(String key, Boolean readOnly)
- {
- preferences.put(key, new PreferenceInfoSupport(key, readOnly));
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PreferencesInfoSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/PreferencesInfoSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PreferencesInfoSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/PreferencesInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,76 @@
+/******************************************************************************
+ * 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.portlet.support.info;
+
+import org.jboss.portal.common.value.Value;
+import org.jboss.portal.portlet.info.PreferenceInfo;
+import org.jboss.portal.portlet.info.PreferencesInfo;
+
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 5448 $
+ */
+public class PreferencesInfoSupport implements PreferencesInfo
+{
+
+ private final Map preferences;
+
+ public PreferencesInfoSupport(Map preferences)
+ {
+ this.preferences = preferences;
+ }
+
+ public PreferencesInfoSupport()
+ {
+ this(new HashMap());
+ }
+
+ public Set getKeys()
+ {
+ return preferences.keySet();
+ }
+
+ public PreferenceInfo getPreference(String key) throws IllegalArgumentException
+ {
+ return (PreferenceInfo)preferences.get(key);
+ }
+
+ public void addPreference(PreferenceInfoSupport preference)
+ {
+ preferences.put(preference.getKey(), preference);
+ }
+
+ public void addPreference(String key)
+ {
+ preferences.put(key, new PreferenceInfoSupport(key));
+ }
+
+ public void addPreference(String key, Boolean readOnly)
+ {
+ preferences.put(key, new PreferenceInfoSupport(key, readOnly));
+ }
+}
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/SecurityInfoSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/SecurityInfoSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/SecurityInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,60 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.info;
-
-import org.jboss.portal.common.util.Tools;
-import org.jboss.portal.portlet.TransportGuarantee;
-import org.jboss.portal.portlet.info.SecurityInfo;
-
-import java.util.Set;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 5448 $
- */
-public class SecurityInfoSupport implements SecurityInfo
-{
-
- /** . */
- private final Set<TransportGuarantee> transportGuarantees;
-
- public SecurityInfoSupport(Set<TransportGuarantee> transportGuarantees)
- {
- this.transportGuarantees = transportGuarantees;
- }
-
- public SecurityInfoSupport()
- {
- this(Tools.toSet(TransportGuarantee.NONE));
- }
-
- public boolean containsTransportGuarantee(TransportGuarantee transportGuarantee)
- {
- return transportGuarantees.contains(transportGuarantee);
- }
-
- public Set<TransportGuarantee> getTransportGuarantees()
- {
- return transportGuarantees;
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/SecurityInfoSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/SecurityInfoSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/SecurityInfoSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/SecurityInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,60 @@
+/******************************************************************************
+ * 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.portlet.support.info;
+
+import org.jboss.portal.common.util.Tools;
+import org.jboss.portal.portlet.TransportGuarantee;
+import org.jboss.portal.portlet.info.SecurityInfo;
+
+import java.util.Set;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 5448 $
+ */
+public class SecurityInfoSupport implements SecurityInfo
+{
+
+ /** . */
+ private final Set<TransportGuarantee> transportGuarantees;
+
+ public SecurityInfoSupport(Set<TransportGuarantee> transportGuarantees)
+ {
+ this.transportGuarantees = transportGuarantees;
+ }
+
+ public SecurityInfoSupport()
+ {
+ this(Tools.toSet(TransportGuarantee.NONE));
+ }
+
+ public boolean containsTransportGuarantee(TransportGuarantee transportGuarantee)
+ {
+ return transportGuarantees.contains(transportGuarantee);
+ }
+
+ public Set<TransportGuarantee> getTransportGuarantees()
+ {
+ return transportGuarantees;
+ }
+}
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/SessionInfoSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/SessionInfoSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/SessionInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,56 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.info;
-
-import org.jboss.portal.portlet.info.SessionInfo;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 5448 $
- */
-public class SessionInfoSupport implements SessionInfo
-{
-
- /** . */
- private Boolean distributed;
-
- public SessionInfoSupport(Boolean distributed)
- {
- this.distributed = distributed;
- }
-
- public SessionInfoSupport()
- {
- this(null);
- }
-
- public Boolean getDistributed()
- {
- return distributed;
- }
-
- public void setDistributed(Boolean distributed)
- {
- this.distributed = distributed;
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/SessionInfoSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/SessionInfoSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/SessionInfoSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/SessionInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,56 @@
+/******************************************************************************
+ * 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.portlet.support.info;
+
+import org.jboss.portal.portlet.info.SessionInfo;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 5448 $
+ */
+public class SessionInfoSupport implements SessionInfo
+{
+
+ /** . */
+ private Boolean distributed;
+
+ public SessionInfoSupport(Boolean distributed)
+ {
+ this.distributed = distributed;
+ }
+
+ public SessionInfoSupport()
+ {
+ this(null);
+ }
+
+ public Boolean getDistributed()
+ {
+ return distributed;
+ }
+
+ public void setDistributed(Boolean distributed)
+ {
+ this.distributed = distributed;
+ }
+}
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/TypeInfoSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/TypeInfoSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/TypeInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,53 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.info;
-
-import org.jboss.portal.portlet.info.TypeInfo;
-
-import javax.xml.bind.annotation.XmlRootElement;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 630 $
- */
-public class TypeInfoSupport implements TypeInfo
-{
-
- /** . */
- private final String name;
-
- public TypeInfoSupport(String name)
- {
- this.name = name;
- }
-
- public String getName()
- {
- return name;
- }
-
- public XmlRootElement getXMLBinding()
- {
- return null;
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/TypeInfoSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/TypeInfoSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/TypeInfoSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/TypeInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,53 @@
+/******************************************************************************
+ * 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.portlet.support.info;
+
+import org.jboss.portal.portlet.info.TypeInfo;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 630 $
+ */
+public class TypeInfoSupport implements TypeInfo
+{
+
+ /** . */
+ private final String name;
+
+ public TypeInfoSupport(String name)
+ {
+ this.name = name;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public XmlRootElement getXMLBinding()
+ {
+ return null;
+ }
+}
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/WindowStateInfoSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/WindowStateInfoSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/WindowStateInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,64 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.info;
-
-import org.jboss.portal.WindowState;
-import org.jboss.portal.common.i18n.LocalizedString;
-import org.jboss.portal.portlet.info.WindowStateInfo;
-
-import java.util.Locale;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 5448 $
- */
-public class WindowStateInfoSupport implements WindowStateInfo
-{
-
- /** . */
- private final LocalizedString description;
-
- /** . */
- private final WindowState windowState;
-
- public WindowStateInfoSupport(WindowState mode)
- {
- this.description = new LocalizedString(mode + " window state",
Locale.ENGLISH);
- this.windowState = mode;
- }
-
- public LocalizedString getDescription()
- {
- return description;
- }
-
- public WindowState getWindowState()
- {
- return windowState;
- }
-
- public String getWindowStateName()
- {
- return windowState.toString();
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/WindowStateInfoSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/info/WindowStateInfoSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/WindowStateInfoSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/info/WindowStateInfoSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,64 @@
+/******************************************************************************
+ * 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.portlet.support.info;
+
+import org.jboss.portal.WindowState;
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.portlet.info.WindowStateInfo;
+
+import java.util.Locale;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 5448 $
+ */
+public class WindowStateInfoSupport implements WindowStateInfo
+{
+
+ /** . */
+ private final LocalizedString description;
+
+ /** . */
+ private final WindowState windowState;
+
+ public WindowStateInfoSupport(WindowState mode)
+ {
+ this.description = new LocalizedString(mode + " window state",
Locale.ENGLISH);
+ this.windowState = mode;
+ }
+
+ public LocalizedString getDescription()
+ {
+ return description;
+ }
+
+ public WindowState getWindowState()
+ {
+ return windowState;
+ }
+
+ public String getWindowStateName()
+ {
+ return windowState.toString();
+ }
+}
Copied: modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi
(from rev 10000,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/spi)
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/ClientContextSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/spi/ClientContextSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/ClientContextSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,52 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.spi;
-
-import org.jboss.portal.portlet.spi.ClientContext;
-import org.jboss.portal.common.util.MultiValuedPropertyMap;
-
-import javax.servlet.http.Cookie;
-import java.util.List;
-import java.util.Set;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 630 $
- */
-public class ClientContextSupport implements ClientContext
-{
- public String getMethod()
- {
- throw new UnsupportedOperationException();
- }
-
- public MultiValuedPropertyMap<String> getProperties()
- {
- throw new UnsupportedOperationException();
- }
-
- public List<Cookie> getCookies()
- {
- throw new UnsupportedOperationException();
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/ClientContextSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/spi/ClientContextSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/ClientContextSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/ClientContextSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,52 @@
+/******************************************************************************
+ * 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.portlet.support.spi;
+
+import org.jboss.portal.portlet.spi.ClientContext;
+import org.jboss.portal.common.util.MultiValuedPropertyMap;
+
+import javax.servlet.http.Cookie;
+import java.util.List;
+import java.util.Set;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 630 $
+ */
+public class ClientContextSupport implements ClientContext
+{
+ public String getMethod()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public MultiValuedPropertyMap<String> getProperties()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public List<Cookie> getCookies()
+ {
+ throw new UnsupportedOperationException();
+ }
+}
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/InstanceContextSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/spi/InstanceContextSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/InstanceContextSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,49 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.spi;
-
-import org.jboss.portal.portlet.StateEvent;
-import org.jboss.portal.portlet.spi.InstanceContext;
-import org.jboss.portal.portlet.state.AccessMode;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 5448 $
- */
-public class InstanceContextSupport implements InstanceContext
-{
- public String getId()
- {
- throw new UnsupportedOperationException();
- }
-
- public AccessMode getAccessMode()
- {
- throw new UnsupportedOperationException();
- }
-
- public void onStateEvent(StateEvent event)
- {
- throw new UnsupportedOperationException();
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/InstanceContextSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/spi/InstanceContextSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/InstanceContextSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/InstanceContextSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,49 @@
+/******************************************************************************
+ * 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.portlet.support.spi;
+
+import org.jboss.portal.portlet.StateEvent;
+import org.jboss.portal.portlet.spi.InstanceContext;
+import org.jboss.portal.portlet.state.AccessMode;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 5448 $
+ */
+public class InstanceContextSupport implements InstanceContext
+{
+ public String getId()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public AccessMode getAccessMode()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public void onStateEvent(StateEvent event)
+ {
+ throw new UnsupportedOperationException();
+ }
+}
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/PortletInvocationContextSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/spi/PortletInvocationContextSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/PortletInvocationContextSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,55 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.spi;
-
-import org.jboss.portal.Mode;
-import org.jboss.portal.WindowState;
-import org.jboss.portal.common.invocation.AbstractInvocationContext;
-import org.jboss.portal.common.util.MarkupInfo;
-import org.jboss.portal.common.util.ParameterMap;
-import org.jboss.portal.portlet.StateString;
-import org.jboss.portal.portlet.ContainerURL;
-import org.jboss.portal.portlet.spi.PortletInvocationContext;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 5064 $
- */
-public class PortletInvocationContextSupport extends AbstractInvocationContext implements
PortletInvocationContext
-{
-
- public MarkupInfo getMarkupInfo()
- {
- throw new UnsupportedOperationException();
- }
-
- public String encodeResourceURL(String url) throws IllegalArgumentException
- {
- throw new UnsupportedOperationException();
- }
-
- public String renderURL(ContainerURL containerURL, Boolean wantSecure, Boolean
wantAuthenticated, boolean relative)
- {
- throw new UnsupportedOperationException();
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/PortletInvocationContextSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/spi/PortletInvocationContextSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/PortletInvocationContextSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/PortletInvocationContextSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,55 @@
+/******************************************************************************
+ * 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.portlet.support.spi;
+
+import org.jboss.portal.Mode;
+import org.jboss.portal.WindowState;
+import org.jboss.portal.common.invocation.AbstractInvocationContext;
+import org.jboss.portal.common.util.MarkupInfo;
+import org.jboss.portal.common.util.ParameterMap;
+import org.jboss.portal.portlet.StateString;
+import org.jboss.portal.portlet.ContainerURL;
+import org.jboss.portal.portlet.spi.PortletInvocationContext;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 5064 $
+ */
+public class PortletInvocationContextSupport extends AbstractInvocationContext implements
PortletInvocationContext
+{
+
+ public MarkupInfo getMarkupInfo()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public String encodeResourceURL(String url) throws IllegalArgumentException
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public String renderURL(ContainerURL containerURL, Boolean wantSecure, Boolean
wantAuthenticated, boolean relative)
+ {
+ throw new UnsupportedOperationException();
+ }
+}
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/RequestContextSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/spi/RequestContextSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/RequestContextSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,61 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.spi;
-
-import org.jboss.portal.portlet.spi.RequestContext;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 630 $
- */
-public class RequestContextSupport implements RequestContext
-{
- public String getCharacterEncoding()
- {
- throw new UnsupportedOperationException();
- }
-
- public int getContentLength()
- {
- throw new UnsupportedOperationException();
- }
-
- public String getContentType()
- {
- throw new UnsupportedOperationException();
- }
-
- public BufferedReader getReader() throws IOException
- {
- throw new UnsupportedOperationException();
- }
-
- public InputStream getInputStream() throws IOException, IllegalStateException
- {
- throw new UnsupportedOperationException();
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/RequestContextSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/spi/RequestContextSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/RequestContextSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/RequestContextSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,61 @@
+/******************************************************************************
+ * 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.portlet.support.spi;
+
+import org.jboss.portal.portlet.spi.RequestContext;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 630 $
+ */
+public class RequestContextSupport implements RequestContext
+{
+ public String getCharacterEncoding()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public int getContentLength()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public String getContentType()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public BufferedReader getReader() throws IOException
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public InputStream getInputStream() throws IOException, IllegalStateException
+ {
+ throw new UnsupportedOperationException();
+ }
+}
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/SecurityContextSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/spi/SecurityContextSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/SecurityContextSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,67 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.spi;
-
-import org.jboss.portal.portlet.spi.SecurityContext;
-
-import java.security.Principal;
-
-/**
- * @author <a
href="mailto:chris.laprun@jboss.com?subject=org.jboss.portal.portlet.support.spi.SecurityContextSupport">Chris
- * Laprun</a>
- * @version $Revision: 5448 $
- * @since 2.4
- */
-public class SecurityContextSupport implements SecurityContext
-{
- public boolean isSecure()
- {
- throw new UnsupportedOperationException();
- }
-
- public String getAuthType()
- {
- throw new UnsupportedOperationException();
- }
-
- public String getRemoteUser()
- {
- throw new UnsupportedOperationException();
- }
-
- public Principal getUserPrincipal()
- {
- throw new UnsupportedOperationException();
- }
-
- public boolean isUserInRole(String roleName)
- {
- throw new UnsupportedOperationException();
- }
-
- public boolean isAuthenticated()
- {
- throw new UnsupportedOperationException();
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/SecurityContextSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/spi/SecurityContextSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/SecurityContextSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/SecurityContextSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,67 @@
+/******************************************************************************
+ * 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.portlet.support.spi;
+
+import org.jboss.portal.portlet.spi.SecurityContext;
+
+import java.security.Principal;
+
+/**
+ * @author <a
href="mailto:chris.laprun@jboss.com?subject=org.jboss.portal.portlet.support.spi.SecurityContextSupport">Chris
+ * Laprun</a>
+ * @version $Revision: 5448 $
+ * @since 2.4
+ */
+public class SecurityContextSupport implements SecurityContext
+{
+ public boolean isSecure()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public String getAuthType()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public String getRemoteUser()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public Principal getUserPrincipal()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public boolean isUserInRole(String roleName)
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public boolean isAuthenticated()
+ {
+ throw new UnsupportedOperationException();
+ }
+}
Deleted:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/UserContextSupport.java
===================================================================
---
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/spi/UserContextSupport.java 2008-02-16
06:20:27 UTC (rev 10000)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/UserContextSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -1,58 +0,0 @@
-/******************************************************************************
- * 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.portlet.support.spi;
-
-import org.jboss.portal.portlet.spi.UserContext;
-
-import java.util.List;
-import java.util.Locale;
-import java.util.Map;
-import java.util.Collections;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 6195 $
- */
-public class UserContextSupport implements UserContext
-{
-
- public String getId()
- {
- throw new UnsupportedOperationException();
- }
-
- public Map<String, String> getInformations()
- {
- throw new UnsupportedOperationException();
- }
-
- public Locale getLocale()
- {
- throw new UnsupportedOperationException();
- }
-
- public List<Locale> getLocales()
- {
- throw new UnsupportedOperationException();
- }
-}
Copied:
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/UserContextSupport.java
(from rev 10014,
modules/portlet/trunk/portlet/src/main/java/org/jboss/portal/portlet/support/spi/UserContextSupport.java)
===================================================================
---
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/UserContextSupport.java
(rev 0)
+++
modules/portlet/trunk/portlet/src/test/java/org/jboss/portal/portlet/support/spi/UserContextSupport.java 2008-02-18
11:31:11 UTC (rev 10015)
@@ -0,0 +1,58 @@
+/******************************************************************************
+ * 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.portlet.support.spi;
+
+import org.jboss.portal.portlet.spi.UserContext;
+
+import java.util.List;
+import java.util.Locale;
+import java.util.Map;
+import java.util.Collections;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 6195 $
+ */
+public class UserContextSupport implements UserContext
+{
+
+ public String getId()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public Map<String, String> getInformations()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public Locale getLocale()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public List<Locale> getLocales()
+ {
+ throw new UnsupportedOperationException();
+ }
+}