[jboss-svn-commits] JBoss Portal SVN: r5643 - in trunk/wsrp/src/main/org/jboss/portal: test/wsrp/framework test/wsrp/other test/wsrp/v1/producer wsrp wsrp/producer wsrp/producer/registration wsrp/producer/registration/api wsrp/producer/registration/impl wsrp/producer/registration/policies

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Nov 14 02:03:33 EST 2006


Author: chris.laprun at jboss.com
Date: 2006-11-14 02:03:26 -0500 (Tue, 14 Nov 2006)
New Revision: 5643

Added:
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/Consumer.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/ConsumerCapabilities.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/ConsumerGroup.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/DuplicateRegistrationException.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/InvalidConsumerDataException.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/LocalizedString.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/NoSuchConsumerException.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/NoSuchRegistrationException.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/Registration.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationException.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationFailedException.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationManager.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationMetaData.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationPolicy.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationPropertyDescription.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationStatus.java
Removed:
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/Consumer.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/DuplicateRegistrationException.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/NoSuchRegistrationException.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/Registration.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/RegistrationException.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/RegistrationFailedException.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/RegistrationStatus.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/LocalizedString.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationMetaData.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationPolicy.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationPropertyDescription.java
Modified:
   trunk/wsrp/src/main/org/jboss/portal/test/wsrp/framework/TestWSRPProducerImpl.java
   trunk/wsrp/src/main/org/jboss/portal/test/wsrp/other/ConsumerRegistryTestCase.java
   trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/producer/RegistrationTestCase.java
   trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/producer/V1ProducerBaseTest.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/WSRPProducer.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/WSRPUtils.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/RegistrationHandler.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/ServiceDescriptionHandler.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/WSRPProducerImpl.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/ConsumerRegistry.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/impl/ConsumerImpl.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/impl/ConsumerRegistryImpl.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/impl/RegistrationImpl.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/BasicRegistrationPolicy.java
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationMetaDataImpl.java
Log:
- Created api package for classes expected to move to the api module.
- Added some ideas for design so that I can get feedback:
  + Added RegistrationManager first implementation
  + Re-did RegistrationPolicy (impl does not implement the new interface)



Modified: trunk/wsrp/src/main/org/jboss/portal/test/wsrp/framework/TestWSRPProducerImpl.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/test/wsrp/framework/TestWSRPProducerImpl.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/test/wsrp/framework/TestWSRPProducerImpl.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -70,7 +70,7 @@
 import org.jboss.portal.wsrp.core.UnsupportedMimeTypeFault;
 import org.jboss.portal.wsrp.core.UnsupportedModeFault;
 import org.jboss.portal.wsrp.core.UnsupportedWindowStateFault;
-import org.jboss.portal.wsrp.producer.registration.policies.RegistrationMetaData;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationMetaData;
 
 import javax.servlet.http.Cookie;
 import javax.servlet.http.HttpServletResponse;

Modified: trunk/wsrp/src/main/org/jboss/portal/test/wsrp/other/ConsumerRegistryTestCase.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/test/wsrp/other/ConsumerRegistryTestCase.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/test/wsrp/other/ConsumerRegistryTestCase.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -27,11 +27,11 @@
 import org.jboss.portal.wsrp.core.Extension;
 import org.jboss.portal.wsrp.core.Property;
 import org.jboss.portal.wsrp.core.RegistrationData;
-import org.jboss.portal.wsrp.producer.registration.Consumer;
 import org.jboss.portal.wsrp.producer.registration.ConsumerRegistry;
-import org.jboss.portal.wsrp.producer.registration.DuplicateRegistrationException;
-import org.jboss.portal.wsrp.producer.registration.NoSuchRegistrationException;
-import org.jboss.portal.wsrp.producer.registration.Registration;
+import org.jboss.portal.wsrp.producer.registration.api.Consumer;
+import org.jboss.portal.wsrp.producer.registration.api.DuplicateRegistrationException;
+import org.jboss.portal.wsrp.producer.registration.api.NoSuchRegistrationException;
+import org.jboss.portal.wsrp.producer.registration.api.Registration;
 import org.jboss.portal.wsrp.producer.registration.impl.ConsumerRegistryImpl;
 
 import javax.xml.soap.SOAPElement;

Modified: trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/producer/RegistrationTestCase.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/producer/RegistrationTestCase.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/producer/RegistrationTestCase.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -35,7 +35,7 @@
 import org.jboss.portal.wsrp.core.RegistrationContext;
 import org.jboss.portal.wsrp.core.RegistrationData;
 import org.jboss.portal.wsrp.core.ServiceDescription;
-import org.jboss.portal.wsrp.producer.registration.policies.RegistrationPropertyDescription;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationPropertyDescription;
 
 import javax.xml.namespace.QName;
 

Modified: trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/producer/V1ProducerBaseTest.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/producer/V1ProducerBaseTest.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/producer/V1ProducerBaseTest.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -40,7 +40,7 @@
 import org.jboss.portal.wsrp.core.WSRP_v1_PortletManagement_PortType;
 import org.jboss.portal.wsrp.core.WSRP_v1_Registration_PortType;
 import org.jboss.portal.wsrp.core.WSRP_v1_ServiceDescription_PortType;
-import org.jboss.portal.wsrp.producer.registration.policies.RegistrationPropertyDescription;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationPropertyDescription;
 
 import javax.xml.namespace.QName;
 

Modified: trunk/wsrp/src/main/org/jboss/portal/wsrp/WSRPProducer.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/WSRPProducer.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/WSRPProducer.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -28,7 +28,7 @@
 import org.jboss.portal.wsrp.core.WSRP_v1_PortletManagement_PortType;
 import org.jboss.portal.wsrp.core.WSRP_v1_Registration_PortType;
 import org.jboss.portal.wsrp.core.WSRP_v1_ServiceDescription_PortType;
-import org.jboss.portal.wsrp.producer.registration.policies.RegistrationMetaData;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationMetaData;
 
 /**
  * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>

Modified: trunk/wsrp/src/main/org/jboss/portal/wsrp/WSRPUtils.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/WSRPUtils.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/WSRPUtils.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -39,8 +39,8 @@
 import org.jboss.portal.wsrp.core.OperationFailedFault;
 import org.jboss.portal.wsrp.core.PropertyDescription;
 import org.jboss.portal.wsrp.core.StateChange;
-import org.jboss.portal.wsrp.producer.registration.policies.LocalizedString;
-import org.jboss.portal.wsrp.producer.registration.policies.RegistrationPropertyDescription;
+import org.jboss.portal.wsrp.producer.registration.api.LocalizedString;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationPropertyDescription;
 
 import javax.servlet.http.HttpServletRequest;
 import java.util.HashMap;

Modified: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/RegistrationHandler.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/RegistrationHandler.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/RegistrationHandler.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -35,9 +35,9 @@
 import org.jboss.portal.wsrp.core.RegistrationState;
 import org.jboss.portal.wsrp.core.ReturnAny;
 import org.jboss.portal.wsrp.core.WSRP_v1_Registration_PortType;
-import org.jboss.portal.wsrp.producer.registration.Registration;
-import org.jboss.portal.wsrp.producer.registration.RegistrationException;
-import org.jboss.portal.wsrp.producer.registration.policies.RegistrationPolicy;
+import org.jboss.portal.wsrp.producer.registration.api.Registration;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationException;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationPolicy;
 
 import java.rmi.RemoteException;
 

Modified: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/ServiceDescriptionHandler.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/ServiceDescriptionHandler.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/ServiceDescriptionHandler.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -44,8 +44,8 @@
 import org.jboss.portal.wsrp.core.PortletDescription;
 import org.jboss.portal.wsrp.core.ServiceDescription;
 import org.jboss.portal.wsrp.core.WSRP_v1_ServiceDescription_PortType;
-import org.jboss.portal.wsrp.producer.registration.policies.RegistrationMetaData;
-import org.jboss.portal.wsrp.producer.registration.policies.RegistrationPolicy;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationMetaData;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationPolicy;
 
 import java.rmi.RemoteException;
 import java.util.Collection;

Modified: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/WSRPProducerImpl.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/WSRPProducerImpl.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/WSRPProducerImpl.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -74,8 +74,8 @@
 import org.jboss.portal.wsrp.core.UnsupportedMimeTypeFault;
 import org.jboss.portal.wsrp.core.UnsupportedModeFault;
 import org.jboss.portal.wsrp.core.UnsupportedWindowStateFault;
-import org.jboss.portal.wsrp.producer.registration.policies.RegistrationMetaData;
-import org.jboss.portal.wsrp.producer.registration.policies.RegistrationPolicy;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationMetaData;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationPolicy;
 import org.jboss.portal.wsrp.servlet.ServletAccess;
 
 import javax.servlet.http.HttpSession;

Deleted: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/Consumer.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/Consumer.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/Consumer.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -1,77 +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.wsrp.producer.registration;
-
-import org.jboss.portal.wsrp.core.RegistrationData;
-
-import java.util.Collection;
-
-/**
- * A well known consumer (a business entity) in the portal.
- *
- * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
- * @author @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
- * @version $Revision: 1.1 $
- * @since 2.6
- */
-public interface Consumer
-{
-
-   /**
-    * Return the consumer name.
-    *
-    * @return the consumer name
-    */
-   String getName();
-
-   /**
-    * Return the registration status of the consumer entity.
-    *
-    * @return the registration stats.
-    */
-   RegistrationStatus getStatus();
-
-   /**
-    * Set the registration status of the consumer entity.
-    *
-    * @param status the registration status
-    */
-   void setStatus(RegistrationStatus status);
-
-   /**
-    * Return all the registrations for the specified consumer.
-    *
-    * @return the consumer registrations
-    * @throws RegistrationException
-    */
-   Collection getRegistrations() throws RegistrationException;
-
-   /**
-    * Add the given Registration to this Consumer.
-    *
-    * @param registration the Registration to be added
-    * @throws IllegalArgumentException if the registration data is null
-    * @throws RegistrationException
-    */
-   Registration addRegistration(RegistrationData registration) throws IllegalArgumentException, RegistrationException;
-}

Modified: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/ConsumerRegistry.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/ConsumerRegistry.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/ConsumerRegistry.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -22,6 +22,12 @@
  ******************************************************************************/
 package org.jboss.portal.wsrp.producer.registration;
 
+import org.jboss.portal.wsrp.producer.registration.api.Consumer;
+import org.jboss.portal.wsrp.producer.registration.api.DuplicateRegistrationException;
+import org.jboss.portal.wsrp.producer.registration.api.NoSuchRegistrationException;
+import org.jboss.portal.wsrp.producer.registration.api.Registration;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationException;
+
 import java.util.Collection;
 
 /**

Deleted: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/DuplicateRegistrationException.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/DuplicateRegistrationException.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/DuplicateRegistrationException.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -1,50 +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.wsrp.producer.registration;
-
-/**
- * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
- */
-public class DuplicateRegistrationException extends RegistrationException
-{
-   public DuplicateRegistrationException()
-   {
-   }
-
-   public DuplicateRegistrationException(String message)
-   {
-      super(message);
-   }
-
-   public DuplicateRegistrationException(String message, Throwable cause)
-   {
-      super(message, cause);
-   }
-
-   public DuplicateRegistrationException(Throwable cause)
-   {
-      super(cause);
-   }
-}

Deleted: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/NoSuchRegistrationException.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/NoSuchRegistrationException.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/NoSuchRegistrationException.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -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.wsrp.producer.registration;
-
-/**
- * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
- */
-public class NoSuchRegistrationException extends RegistrationException
-{
-   public NoSuchRegistrationException()
-   {
-   }
-
-   public NoSuchRegistrationException(String message)
-   {
-      super(message);
-   }
-
-   public NoSuchRegistrationException(String message, Throwable cause)
-   {
-      super(message, cause);
-   }
-
-   public NoSuchRegistrationException(Throwable cause)
-   {
-      super(cause);
-   }
-}

Deleted: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/Registration.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/Registration.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/Registration.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -1,81 +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.wsrp.producer.registration;
-
-import javax.xml.namespace.QName;
-import java.util.Map;
-
-/**
- * A class representing an association between a consumer and a producer.
- *
- * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
- * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
- * @version $Revision$
- * @since 2.6
- */
-public interface Registration
-{
-   /**
-    * Retrieve the handle associated with this Registration
-    *
-    * @return the registration handle
-    */
-   String getId();
-
-   /**
-    * Return the consumer owning this registration.
-    *
-    * @return the owning consumer
-    */
-   Consumer getConsumer();
-
-   /**
-    * Retrieve the properties associated with this Registration.
-    *
-    * @return a Map containing the associated properties
-    */
-   Map getProperties();
-
-   void setPropertyValueFor(QName propertyName, Object value);
-
-   void setPropertyValueFor(String propertyName, Object value);
-
-   boolean hasEqualProperties(Registration registration);
-
-   boolean hasEqualProperties(Map properties);
-
-   /**
-    * Return the status of this specific registration.
-    *
-    * @return the status
-    */
-   RegistrationStatus getStatus();
-
-   /**
-    * Update the registration status
-    *
-    * @param status the new status
-    */
-   void setStatus(RegistrationStatus status);
-}

Deleted: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/RegistrationException.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/RegistrationException.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/RegistrationException.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -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.wsrp.producer.registration;
-
-/**
- * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
- */
-public class RegistrationException extends Exception
-{
-   public RegistrationException()
-   {
-   }
-
-   public RegistrationException(String message)
-   {
-      super(message);
-   }
-
-   public RegistrationException(String message, Throwable cause)
-   {
-      super(message, cause);
-   }
-
-   public RegistrationException(Throwable cause)
-   {
-      super(cause);
-   }
-}

Deleted: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/RegistrationFailedException.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/RegistrationFailedException.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/RegistrationFailedException.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -1,31 +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.wsrp.producer.registration;
-
-/**
- * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
- */
-public class RegistrationFailedException
-{
-}

Deleted: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/RegistrationStatus.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/RegistrationStatus.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/RegistrationStatus.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -1,45 +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.wsrp.producer.registration;
-
-/**
- * Type safe enumeration that describes the status of a registration.
- *
- * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
- */
-public class RegistrationStatus
-{
-   /** The registration is valid. */
-   public static final RegistrationStatus VALID = new RegistrationStatus();
-
-   /** The registration is waiting for validation. */
-   public static final RegistrationStatus PENDING = new RegistrationStatus();
-
-   /** The registration is not valid. */
-   public static final RegistrationStatus INVALID = new RegistrationStatus();
-
-   private RegistrationStatus()
-   {
-   }
-}

Copied: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/Consumer.java (from rev 5641, trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/Consumer.java)
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/Consumer.java	2006-11-14 04:50:05 UTC (rev 5641)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/Consumer.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -0,0 +1,77 @@
+/******************************************************************************
+ * 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.wsrp.producer.registration.api;
+
+import org.jboss.portal.wsrp.core.RegistrationData;
+
+import java.util.Collection;
+
+/**
+ * A well known consumer (a business entity) in the portal.
+ *
+ * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
+ * @author @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
+ * @version $Revision:5641 $
+ * @since 2.6
+ */
+public interface Consumer
+{
+
+   /**
+    * Return the consumer name.
+    *
+    * @return the consumer name
+    */
+   String getName();
+
+   /**
+    * Return the registration status of the consumer entity.
+    *
+    * @return the registration stats.
+    */
+   RegistrationStatus getStatus();
+
+   /**
+    * Set the registration status of the consumer entity.
+    *
+    * @param status the registration status
+    */
+   void setStatus(RegistrationStatus status);
+
+   /**
+    * Return all the registrations for the specified consumer.
+    *
+    * @return the consumer registrations
+    * @throws RegistrationException
+    */
+   Collection getRegistrations() throws RegistrationException;
+
+   /**
+    * Add the given Registration to this Consumer.
+    *
+    * @param registration the Registration to be added
+    * @throws IllegalArgumentException if the registration data is null
+    * @throws RegistrationException
+    */
+   Registration addRegistration(RegistrationData registration) throws IllegalArgumentException, RegistrationException;
+}


Property changes on: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/Consumer.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/ConsumerCapabilities.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/ConsumerCapabilities.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/ConsumerCapabilities.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -0,0 +1,46 @@
+/******************************************************************************
+ * 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.wsrp.producer.registration.api;
+
+import java.util.List;
+
+/**
+ * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
+ * @version $Revision$
+ * @since 2.6
+ */
+public interface ConsumerCapabilities
+{
+   String getConsumerAgent();
+
+   boolean supportsGetMethod();
+
+   List getSupportedModes();
+
+   List getSupportedWindowStates();
+
+   List getSupportedUserScopes();
+
+   List getSupportedUserProfileData();
+}

Added: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/ConsumerGroup.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/ConsumerGroup.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/ConsumerGroup.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -0,0 +1,33 @@
+/******************************************************************************
+ * 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.wsrp.producer.registration.api;
+
+/**
+ * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
+ * @version $Revision$
+ * @since 2.6
+ */
+public interface ConsumerGroup
+{
+}

Copied: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/DuplicateRegistrationException.java (from rev 5641, trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/DuplicateRegistrationException.java)
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/DuplicateRegistrationException.java	2006-11-14 04:50:05 UTC (rev 5641)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/DuplicateRegistrationException.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -0,0 +1,50 @@
+/******************************************************************************
+ * 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.wsrp.producer.registration.api;
+
+/**
+ * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
+ * @version $Revision:5641 $
+ */
+public class DuplicateRegistrationException extends RegistrationException
+{
+   public DuplicateRegistrationException()
+   {
+   }
+
+   public DuplicateRegistrationException(String message)
+   {
+      super(message);
+   }
+
+   public DuplicateRegistrationException(String message, Throwable cause)
+   {
+      super(message, cause);
+   }
+
+   public DuplicateRegistrationException(Throwable cause)
+   {
+      super(cause);
+   }
+}


Property changes on: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/DuplicateRegistrationException.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/InvalidConsumerDataException.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/InvalidConsumerDataException.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/InvalidConsumerDataException.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -0,0 +1,33 @@
+/******************************************************************************
+ * 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.wsrp.producer.registration.api;
+
+/**
+ * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
+ * @version $Revision$
+ * @since 2.6
+ */
+public class InvalidConsumerDataException extends RegistrationException
+{
+}

Copied: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/LocalizedString.java (from rev 5641, trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/LocalizedString.java)
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/LocalizedString.java	2006-11-14 04:50:05 UTC (rev 5641)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/LocalizedString.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -0,0 +1,82 @@
+/******************************************************************************
+ * 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.wsrp.producer.registration.api;
+
+import java.util.Locale;
+
+/**
+ * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
+ * @version $Revision$
+ * @since 2.6
+ */
+public class LocalizedString
+{
+   private String value;
+   private Locale locale;
+   private String resourceName;
+
+
+   public LocalizedString(String value, Locale locale)
+   {
+      this.value = value;
+      this.locale = locale;
+   }
+
+
+   public LocalizedString(String value)
+   {
+      this.value = value;
+      this.locale = Locale.getDefault();
+   }
+
+   public String getValue()
+   {
+      return value;
+   }
+
+   public void setValue(String value)
+   {
+      this.value = value;
+   }
+
+   public Locale getLocale()
+   {
+      return locale;
+   }
+
+   public void setLocale(Locale locale)
+   {
+      this.locale = locale;
+   }
+
+   public String getResourceName()
+   {
+      return resourceName;
+   }
+
+   public void setResourceName(String resourceName)
+   {
+      this.resourceName = resourceName;
+   }
+}


Property changes on: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/LocalizedString.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/NoSuchConsumerException.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/NoSuchConsumerException.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/NoSuchConsumerException.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -0,0 +1,33 @@
+/******************************************************************************
+ * 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.wsrp.producer.registration.api;
+
+/**
+ * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
+ * @version $Revision$
+ * @since 2.6
+ */
+public class NoSuchConsumerException extends Exception
+{
+}

Copied: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/NoSuchRegistrationException.java (from rev 5641, trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/NoSuchRegistrationException.java)
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/NoSuchRegistrationException.java	2006-11-14 04:50:05 UTC (rev 5641)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/NoSuchRegistrationException.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -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.wsrp.producer.registration.api;
+
+/**
+ * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
+ * @version $Revision:5641 $
+ */
+public class NoSuchRegistrationException extends RegistrationException
+{
+   public NoSuchRegistrationException()
+   {
+   }
+
+   public NoSuchRegistrationException(String message)
+   {
+      super(message);
+   }
+
+   public NoSuchRegistrationException(String message, Throwable cause)
+   {
+      super(message, cause);
+   }
+
+   public NoSuchRegistrationException(Throwable cause)
+   {
+      super(cause);
+   }
+}


Property changes on: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/NoSuchRegistrationException.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Copied: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/Registration.java (from rev 5641, trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/Registration.java)
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/Registration.java	2006-11-14 04:50:05 UTC (rev 5641)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/Registration.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -0,0 +1,81 @@
+/******************************************************************************
+ * 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.wsrp.producer.registration.api;
+
+import javax.xml.namespace.QName;
+import java.util.Map;
+
+/**
+ * A class representing an association between a consumer and a producer.
+ *
+ * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
+ * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
+ * @version $Revision$
+ * @since 2.6
+ */
+public interface Registration
+{
+   /**
+    * Retrieve the handle associated with this Registration
+    *
+    * @return the registration handle
+    */
+   String getId();
+
+   /**
+    * Return the consumer owning this registration.
+    *
+    * @return the owning consumer
+    */
+   Consumer getConsumer();
+
+   /**
+    * Retrieve the properties associated with this Registration.
+    *
+    * @return a Map containing the associated properties
+    */
+   Map getProperties();
+
+   void setPropertyValueFor(QName propertyName, Object value);
+
+   void setPropertyValueFor(String propertyName, Object value);
+
+   boolean hasEqualProperties(Registration registration);
+
+   boolean hasEqualProperties(Map properties);
+
+   /**
+    * Return the status of this specific registration.
+    *
+    * @return the status
+    */
+   RegistrationStatus getStatus();
+
+   /**
+    * Update the registration status
+    *
+    * @param status the new status
+    */
+   void setStatus(RegistrationStatus status);
+}


Property changes on: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/Registration.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Copied: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationException.java (from rev 5641, trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/RegistrationException.java)
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/RegistrationException.java	2006-11-14 04:50:05 UTC (rev 5641)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationException.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -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.wsrp.producer.registration.api;
+
+/**
+ * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
+ * @version $Revision:5641 $
+ */
+public class RegistrationException extends Exception
+{
+   public RegistrationException()
+   {
+   }
+
+   public RegistrationException(String message)
+   {
+      super(message);
+   }
+
+   public RegistrationException(String message, Throwable cause)
+   {
+      super(message, cause);
+   }
+
+   public RegistrationException(Throwable cause)
+   {
+      super(cause);
+   }
+}


Property changes on: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationException.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Copied: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationFailedException.java (from rev 5641, trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/RegistrationFailedException.java)
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/RegistrationFailedException.java	2006-11-14 04:50:05 UTC (rev 5641)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationFailedException.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -0,0 +1,31 @@
+/******************************************************************************
+ * 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.wsrp.producer.registration.api;
+
+/**
+ * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
+ * @version $Revision:5641 $
+ */
+public class RegistrationFailedException
+{
+}


Property changes on: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationFailedException.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationManager.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationManager.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationManager.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -0,0 +1,109 @@
+/******************************************************************************
+ * 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.wsrp.producer.registration.api;
+
+import org.jboss.portal.wsrp.producer.registration.ConsumerRegistry;
+
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
+ * @version $Revision$
+ * @since 2.6
+ */
+public class RegistrationManager
+{
+   private RegistrationPolicy policy;
+   private ConsumerRegistry registry; // todo: rename?
+
+   public Registration addRegistration(String consumerName, ConsumerCapabilities capabilities, Map registrationProperties)
+      throws RegistrationException
+   {
+      String id = policy.getOrCreateIdentifierForConsumerWith(consumerName, capabilities);
+      
+      Consumer consumer = registry.getConsumer(id);
+
+      // if the consumer doesn't exist already create it
+      boolean justCreated = false;
+      if(consumer == null)
+      {
+         consumer = createConsumer(consumerName, capabilities);
+         justCreated = true;
+      }
+
+      try
+      {
+         // todo: maybe should validate before creating the consumer? pb is this would cause the validation method to be more complex...
+         policy.validateRegistrationDataFor(registrationProperties, consumer);
+      }
+      catch (Exception e)
+      {
+         if(justCreated)
+         {
+            registry.removeConsumer(id);
+         }
+
+         throw new RegistrationException("Registration data not valid" + (justCreated ? "." : " for consumer '"
+            + consumerName + "' (id: '" + id + "')"), e);
+      }
+
+      Registration registration = consumer.addRegistration(null); // todo: replace by registrationProperties
+
+      String handle = policy.createRegistrationHandleFor(registration.getId());
+      // registration.setRegistrationHandle(handle); // todo: add registration handle support to Registration
+      return registration;
+   }
+
+   public Consumer createConsumer(String name, ConsumerCapabilities capabilities) throws RegistrationException, InvalidConsumerDataException
+   {
+      String id = policy.getOrCreateIdentifierForConsumerWith(name, capabilities);
+
+      String groupId = policy.getGroupIdentifierFor(id); // todo: retrieve group from id and add the consumer to the group
+
+      return registry.addConsumer(id); // todo: add capabilities and group?
+   }
+
+   public void removeConsumer(String id) throws RegistrationException, NoSuchConsumerException
+   {
+      // todo: add group support
+      registry.removeConsumer(id);
+   }
+
+   public Consumer getConsumer(String id) throws RegistrationException
+   {
+      return registry.getConsumer(id);
+   }
+
+   public Consumer getConsumerFor(String registrationHandle) throws RegistrationException
+   {
+      // chris: don't think that the registration id should actually be exposed...
+      return registry.getRegistration(registrationHandle).getConsumer();
+   }
+
+   public void removeRegistration(String registrationHandle) throws RegistrationException, NoSuchRegistrationException
+   {
+      // chris: don't think that the registration id should actually be exposed...
+      registry.removeRegistration(registrationHandle);
+   }
+}

Copied: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationMetaData.java (from rev 5641, trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationMetaData.java)
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationMetaData.java	2006-11-14 04:50:05 UTC (rev 5641)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationMetaData.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -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.wsrp.producer.registration.api;
+
+import javax.xml.namespace.QName;
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
+ * @version $Revision$
+ * @since 2.6
+ */
+public interface RegistrationMetaData
+{
+
+   boolean requiresRegistration();
+
+   void setRequiresRegistration(boolean requiresRegistration);
+
+   boolean fullServiceDescriptionRequiresRegistration();
+
+   void setFullServiceDescriptionRequiresRegistration(boolean fullServiceDescriptionRequiresRegistration);
+
+   Map getRegistrationProperties();
+
+   void addRegistrationProperty(RegistrationPropertyDescription propertyDescription);
+
+   void removeRegistrationProperty(String propertyName);
+
+   void removeRegistrationProperty(QName propertyName);
+
+   void clearRegistrationProperties();
+
+   boolean acceptValueFor(Object value, QName propertyName);
+
+   boolean acceptValueFor(Object value, String propertyName);
+}


Property changes on: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationMetaData.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Copied: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationPolicy.java (from rev 5641, trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationPolicy.java)
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationPolicy.java	2006-11-14 04:50:05 UTC (rev 5641)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationPolicy.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -0,0 +1,44 @@
+/******************************************************************************
+ * 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.wsrp.producer.registration.api;
+
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
+ * @version $Revision$
+ * @since 2.6
+ */
+public interface RegistrationPolicy
+{
+   String getOrCreateIdentifierForConsumerWith(String name, ConsumerCapabilities capabilities)
+      throws IllegalArgumentException, InvalidConsumerDataException;
+
+   void validateRegistrationDataFor(Map registrationProperties, Consumer consumer)
+      throws IllegalArgumentException, InvalidConsumerDataException, DuplicateRegistrationException;
+
+   String createRegistrationHandleFor(String registrationId);
+
+   String getGroupIdentifierFor(String consumerIdentifier);
+}


Property changes on: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationPolicy.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Copied: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationPropertyDescription.java (from rev 5641, trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationPropertyDescription.java)
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationPropertyDescription.java	2006-11-14 04:50:05 UTC (rev 5641)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationPropertyDescription.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -0,0 +1,151 @@
+/******************************************************************************
+ * 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.wsrp.producer.registration.api;
+
+import javax.xml.namespace.QName;
+import java.net.URI;
+
+/**
+ * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
+ * @version $Revision$
+ * @since 2.6
+ */
+public class RegistrationPropertyDescription
+{
+   private QName name;
+   private QName type;
+   private URI schemaLocation;
+   private LocalizedString description;
+   private LocalizedString hint;
+   private LocalizedString label;
+   private String[] usages;
+   private QName[] aliases;
+
+
+   public RegistrationPropertyDescription(QName name, QName type)
+   {
+      this.name = name;
+      this.type = type;
+   }
+
+   public RegistrationPropertyDescription(String name, QName type)
+   {
+      this(new QName(name), type);
+   }
+
+   public QName getName()
+   {
+      return name;
+   }
+
+   public void setName(QName name)
+   {
+      this.name = name;
+   }
+
+   public QName getType()
+   {
+      return type;
+   }
+
+   public void setType(QName type)
+   {
+      this.type = type;
+   }
+
+   public URI getSchemaLocation()
+   {
+      return schemaLocation;
+   }
+
+   public void setSchemaLocation(URI schemaLocation)
+   {
+      this.schemaLocation = schemaLocation;
+   }
+
+   public LocalizedString getDescription()
+   {
+      return description;
+   }
+
+   public void setDescription(LocalizedString description)
+   {
+      this.description = description;
+   }
+
+   public void setDefaultDescription(String value)
+   {
+      setDescription(new LocalizedString(value));
+   }
+
+   public LocalizedString getHint()
+   {
+      return hint;
+   }
+
+   public void setHint(LocalizedString hint)
+   {
+      this.hint = hint;
+   }
+
+   public void setDefaultHint(String value)
+   {
+      setHint(new LocalizedString(value));
+   }
+
+   public LocalizedString getLabel()
+   {
+      return label;
+   }
+
+   public void setLabel(LocalizedString label)
+   {
+      this.label = label;
+   }
+
+   public void setDefaultLabel(String value)
+   {
+      setLabel(new LocalizedString(value));
+   }
+
+   public String[] getUsages()
+   {
+      return usages;
+   }
+
+   public void setUsages(String[] usages)
+   {
+      this.usages = usages;
+   }
+
+   public QName[] getAliases()
+   {
+      return aliases;
+   }
+
+   public void setAliases(QName[] aliases)
+   {
+      this.aliases = aliases;
+   }
+}


Property changes on: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationPropertyDescription.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Copied: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationStatus.java (from rev 5641, trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/RegistrationStatus.java)
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/RegistrationStatus.java	2006-11-14 04:50:05 UTC (rev 5641)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationStatus.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -0,0 +1,45 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat                                               *
+ * Copyright 2006, Red Hat Middleware, LLC, and individual                    *
+ * contributors as indicated by the @authors tag. See the                     *
+ * copyright.txt in the distribution for a full listing of                    *
+ * individual contributors.                                                   *
+ *                                                                            *
+ * This is free software; you can redistribute it and/or modify it            *
+ * under the terms of the GNU Lesser General Public License as                *
+ * published by the Free Software Foundation; either version 2.1 of           *
+ * the License, or (at your option) any later version.                        *
+ *                                                                            *
+ * This software is distributed in the hope that it will be useful,           *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU           *
+ * Lesser General Public License for more details.                            *
+ *                                                                            *
+ * You should have received a copy of the GNU Lesser General Public           *
+ * License along with this software; if not, write to the Free                *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA         *
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.                   *
+ ******************************************************************************/
+package org.jboss.portal.wsrp.producer.registration.api;
+
+/**
+ * Type safe enumeration that describes the status of a registration.
+ *
+ * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
+ * @version $Revision:5641 $
+ */
+public class RegistrationStatus
+{
+   /** The registration is valid. */
+   public static final RegistrationStatus VALID = new RegistrationStatus();
+
+   /** The registration is waiting for validation. */
+   public static final RegistrationStatus PENDING = new RegistrationStatus();
+
+   /** The registration is not valid. */
+   public static final RegistrationStatus INVALID = new RegistrationStatus();
+
+   private RegistrationStatus()
+   {
+   }
+}


Property changes on: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/api/RegistrationStatus.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Modified: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/impl/ConsumerImpl.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/impl/ConsumerImpl.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/impl/ConsumerImpl.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -25,10 +25,10 @@
 
 import org.jboss.portal.common.util.ParameterValidation;
 import org.jboss.portal.wsrp.core.RegistrationData;
-import org.jboss.portal.wsrp.producer.registration.Consumer;
-import org.jboss.portal.wsrp.producer.registration.Registration;
-import org.jboss.portal.wsrp.producer.registration.RegistrationException;
-import org.jboss.portal.wsrp.producer.registration.RegistrationStatus;
+import org.jboss.portal.wsrp.producer.registration.api.Consumer;
+import org.jboss.portal.wsrp.producer.registration.api.Registration;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationException;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationStatus;
 
 import java.util.Collection;
 import java.util.HashSet;

Modified: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/impl/ConsumerRegistryImpl.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/impl/ConsumerRegistryImpl.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/impl/ConsumerRegistryImpl.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -26,13 +26,13 @@
 import org.jboss.portal.common.util.ParameterValidation;
 import org.jboss.portal.jems.as.system.AbstractJBossService;
 import org.jboss.portal.wsrp.core.RegistrationData;
-import org.jboss.portal.wsrp.producer.registration.Consumer;
 import org.jboss.portal.wsrp.producer.registration.ConsumerRegistry;
-import org.jboss.portal.wsrp.producer.registration.DuplicateRegistrationException;
-import org.jboss.portal.wsrp.producer.registration.NoSuchRegistrationException;
-import org.jboss.portal.wsrp.producer.registration.Registration;
-import org.jboss.portal.wsrp.producer.registration.RegistrationException;
-import org.jboss.portal.wsrp.producer.registration.RegistrationStatus;
+import org.jboss.portal.wsrp.producer.registration.api.Consumer;
+import org.jboss.portal.wsrp.producer.registration.api.DuplicateRegistrationException;
+import org.jboss.portal.wsrp.producer.registration.api.NoSuchRegistrationException;
+import org.jboss.portal.wsrp.producer.registration.api.Registration;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationException;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationStatus;
 
 import java.util.Collection;
 import java.util.Collections;

Modified: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/impl/RegistrationImpl.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/impl/RegistrationImpl.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/impl/RegistrationImpl.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -26,9 +26,9 @@
 import org.jboss.portal.common.util.ParameterValidation;
 import org.jboss.portal.wsrp.core.Property;
 import org.jboss.portal.wsrp.core.RegistrationData;
-import org.jboss.portal.wsrp.producer.registration.Consumer;
-import org.jboss.portal.wsrp.producer.registration.Registration;
-import org.jboss.portal.wsrp.producer.registration.RegistrationStatus;
+import org.jboss.portal.wsrp.producer.registration.api.Consumer;
+import org.jboss.portal.wsrp.producer.registration.api.Registration;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationStatus;
 
 import javax.xml.namespace.QName;
 import java.util.Collections;

Modified: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/BasicRegistrationPolicy.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/BasicRegistrationPolicy.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/BasicRegistrationPolicy.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -27,10 +27,11 @@
 import org.jboss.portal.jems.as.system.AbstractJBossService;
 import org.jboss.portal.wsrp.core.Property;
 import org.jboss.portal.wsrp.core.RegistrationData;
-import org.jboss.portal.wsrp.producer.registration.Consumer;
 import org.jboss.portal.wsrp.producer.registration.ConsumerRegistry;
-import org.jboss.portal.wsrp.producer.registration.Registration;
-import org.jboss.portal.wsrp.producer.registration.RegistrationException;
+import org.jboss.portal.wsrp.producer.registration.api.Consumer;
+import org.jboss.portal.wsrp.producer.registration.api.Registration;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationException;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationMetaData;
 import org.jboss.portal.wsrp.producer.registration.impl.ConsumerRegistryImpl;
 
 import javax.xml.namespace.QName;
@@ -41,12 +42,11 @@
 import java.util.Map;
 
 /**
- * @author <a href="mailto:chris.laprun at jboss.com?subject=org.jboss.portal.wsrp.producer.registration.policies.BasicRegistrationPolicy">Chris
- *         Laprun</a>
+ * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
  * @version $Revision$
  * @since 2.6
  */
-public class BasicRegistrationPolicy extends AbstractJBossService implements RegistrationPolicy
+public class BasicRegistrationPolicy extends AbstractJBossService
 {
 
    protected ConsumerRegistry consumerRegistry;

Deleted: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/LocalizedString.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/LocalizedString.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/LocalizedString.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -1,82 +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.wsrp.producer.registration.policies;
-
-import java.util.Locale;
-
-/**
- * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
- * @version $Revision$
- * @since 2.6
- */
-public class LocalizedString
-{
-   private String value;
-   private Locale locale;
-   private String resourceName;
-
-
-   public LocalizedString(String value, Locale locale)
-   {
-      this.value = value;
-      this.locale = locale;
-   }
-
-
-   public LocalizedString(String value)
-   {
-      this.value = value;
-      this.locale = Locale.getDefault();
-   }
-
-   public String getValue()
-   {
-      return value;
-   }
-
-   public void setValue(String value)
-   {
-      this.value = value;
-   }
-
-   public Locale getLocale()
-   {
-      return locale;
-   }
-
-   public void setLocale(Locale locale)
-   {
-      this.locale = locale;
-   }
-
-   public String getResourceName()
-   {
-      return resourceName;
-   }
-
-   public void setResourceName(String resourceName)
-   {
-      this.resourceName = resourceName;
-   }
-}

Deleted: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationMetaData.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationMetaData.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationMetaData.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -1,59 +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.wsrp.producer.registration.policies;
-
-import javax.xml.namespace.QName;
-import java.util.Map;
-
-/**
- * @author <a href="mailto:chris.laprun at jboss.com?subject=org.jboss.portal.wsrp.producer.registration.RegistrationMetadata">Chris
- *         Laprun</a>
- * @version $Revision$
- * @since 2.6
- */
-public interface RegistrationMetaData
-{
-
-   boolean requiresRegistration();
-
-   void setRequiresRegistration(boolean requiresRegistration);
-
-   boolean fullServiceDescriptionRequiresRegistration();
-
-   void setFullServiceDescriptionRequiresRegistration(boolean fullServiceDescriptionRequiresRegistration);
-
-   Map getRegistrationProperties();
-
-   void addRegistrationProperty(RegistrationPropertyDescription propertyDescription);
-
-   void removeRegistrationProperty(String propertyName);
-
-   void removeRegistrationProperty(QName propertyName);
-
-   void clearRegistrationProperties();
-
-   boolean acceptValueFor(Object value, QName propertyName);
-
-   boolean acceptValueFor(Object value, String propertyName);
-}

Modified: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationMetaDataImpl.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationMetaDataImpl.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationMetaDataImpl.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -24,6 +24,8 @@
 package org.jboss.portal.wsrp.producer.registration.policies;
 
 import org.jboss.portal.common.util.ParameterValidation;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationMetaData;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationPropertyDescription;
 
 import javax.xml.namespace.QName;
 import java.util.Collections;

Deleted: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationPolicy.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationPolicy.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationPolicy.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -1,57 +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.wsrp.producer.registration.policies;
-
-import org.jboss.portal.wsrp.core.RegistrationData;
-import org.jboss.portal.wsrp.producer.registration.ConsumerRegistry;
-import org.jboss.portal.wsrp.producer.registration.Registration;
-import org.jboss.portal.wsrp.producer.registration.RegistrationException;
-
-/**
- * @author <a href="mailto:chris.laprun at jboss.com?subject=org.jboss.portal.wsrp.producer.registration.RegistrationPolicy">Chris
- *         Laprun</a>
- * @version $Revision$
- * @since 2.6
- */
-public interface RegistrationPolicy
-{
-   /**
-    * Registers the consumer with the given registration data if it is acceptable according to the specific registration
-    * rules defined by this RegistrationPolicy. This method is responsible for creating a Consumer object associated
-    * with this registration data (if needed), adding it to the associated ConsumerRegistry andadding the new
-    * registration to the associated RegistrationRegistry and to the Consumer.
-    *
-    * @param registrationData the registration data upon which a registration decision will be made
-    * @return a Registration describing the association between the given Consumer and the producer
-    * @throws org.jboss.portal.wsrp.producer.registration.RegistrationException
-    *          if something went wrong during the registration process
-    */
-   Registration registerConsumerWith(RegistrationData registrationData) throws RegistrationException;
-
-   ConsumerRegistry getConsumerRegistry();
-
-   void setConsumerRegistry(ConsumerRegistry consumerRegistry);
-
-   RegistrationMetaData getMetaData();
-}

Deleted: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationPropertyDescription.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationPropertyDescription.java	2006-11-14 05:13:06 UTC (rev 5642)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/RegistrationPropertyDescription.java	2006-11-14 07:03:26 UTC (rev 5643)
@@ -1,151 +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.wsrp.producer.registration.policies;
-
-import javax.xml.namespace.QName;
-import java.net.URI;
-
-/**
- * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
- * @version $Revision$
- * @since 2.6
- */
-public class RegistrationPropertyDescription
-{
-   private QName name;
-   private QName type;
-   private URI schemaLocation;
-   private LocalizedString description;
-   private LocalizedString hint;
-   private LocalizedString label;
-   private String[] usages;
-   private QName[] aliases;
-
-
-   public RegistrationPropertyDescription(QName name, QName type)
-   {
-      this.name = name;
-      this.type = type;
-   }
-
-   public RegistrationPropertyDescription(String name, QName type)
-   {
-      this(new QName(name), type);
-   }
-
-   public QName getName()
-   {
-      return name;
-   }
-
-   public void setName(QName name)
-   {
-      this.name = name;
-   }
-
-   public QName getType()
-   {
-      return type;
-   }
-
-   public void setType(QName type)
-   {
-      this.type = type;
-   }
-
-   public URI getSchemaLocation()
-   {
-      return schemaLocation;
-   }
-
-   public void setSchemaLocation(URI schemaLocation)
-   {
-      this.schemaLocation = schemaLocation;
-   }
-
-   public LocalizedString getDescription()
-   {
-      return description;
-   }
-
-   public void setDescription(LocalizedString description)
-   {
-      this.description = description;
-   }
-
-   public void setDefaultDescription(String value)
-   {
-      setDescription(new LocalizedString(value));
-   }
-
-   public LocalizedString getHint()
-   {
-      return hint;
-   }
-
-   public void setHint(LocalizedString hint)
-   {
-      this.hint = hint;
-   }
-
-   public void setDefaultHint(String value)
-   {
-      setHint(new LocalizedString(value));
-   }
-
-   public LocalizedString getLabel()
-   {
-      return label;
-   }
-
-   public void setLabel(LocalizedString label)
-   {
-      this.label = label;
-   }
-
-   public void setDefaultLabel(String value)
-   {
-      setLabel(new LocalizedString(value));
-   }
-
-   public String[] getUsages()
-   {
-      return usages;
-   }
-
-   public void setUsages(String[] usages)
-   {
-      this.usages = usages;
-   }
-
-   public QName[] getAliases()
-   {
-      return aliases;
-   }
-
-   public void setAliases(QName[] aliases)
-   {
-      this.aliases = aliases;
-   }
-}




More information about the jboss-svn-commits mailing list